Check x-api-signature

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

Check x-api-signature

post
Header parameters
x-api-public-keystringOptional

Public API-key

x-api-signaturestringOptional

Signing the request body with a private API-key

Content-typestringOptional

Request content type

Example: application/json
Body
anyOptional
Responses
200Success
application/json
post
POST /api-gateway/test-signature HTTP/1.1
Host: ocp.onchainpay.io
Content-Type: application/json
Accept: */*
200Success
{
  "success": true,
  "response": {
    "errors": [
      "No public key passed."
    ],
    "checkSignatureResult": true,
    "signature": "9c9e5ea12eac16a2d24979e825bbb84cc6cbfc4797222153f3fe5313618ca9d6",
    "receivedBody": "{\"some\":\"param\",\"another\":\"param\",\"nonce\":\"69c17a1f-b1b5-4b2d-9389-6d166de3941b\"}"
  }
}

Last updated