Check x-api-signature

You can test your signature in x-api-signature within this method.

Check x-api-signature

POSThttps://ocp.payonchain.org/api-gateway/test-signature
Header parameters
Body
any
Response
Body
success*boolean

Request success indicator

response*TestSignatureResponse (object)

Response body when verifying signature

Request
const response = await fetch('https://ocp.payonchain.org/api-gateway/test-signature', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
});
const data = await response.json();
Response
{
  "success": false,
  "response": {
    "errors": [
      "No public key passed."
    ],
    "checkSignatureResult": false,
    "signature": "0b050345dd730bea382f8e38282638ffc25e72dce481f0074031654ab837eb25",
    "receivedBody": "{\"some\":\"param\",\"another\":\"param\",\"nonce\":\"7fb752d2-4015-4166-a383-7825b43e0888\"}"
  }
}

Last updated