Check x-api-signature
You can test your signature in x-api-signature within this method.
Header parameters
x-api-public-keystringOptional
Public API-key
x-api-signaturestringOptional
Signing the request body with a private API-key
Content-typestringOptionalExample:
Request content type
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": "4f84fbe28fba064e02bde04161ef9cfe2d1a76b8424d609e58380d804de89534",
"receivedBody": "{\"some\":\"param\",\"another\":\"param\",\"nonce\":\"dbe834b7-aa27-4554-9c25-95cd542a7efe\"}"
}
}
Last updated