Calculating the Signature
All calls to our Cashouts APIs must contain aPayload-Signature field on the header used to ensure request integrity and to authenticate yourself since you will use your own API Signature (secret key) to generate and encrypt a hash.
It has to be created using HMAC-SHA-256 (RFC 2104) encoding and the payload is made of the entire JSON Payload sent in the body of the requests and notifications.
Use your API Signature to create the HASH
Payload-Signature field on the header of the requests will contain the hash generated from hashing the entire JSON Payload:
Notes
- The
Payload-Signaturevalue is case sensitive and must be sent in lower case. - In case the
jsonPayloadvalue is empty, use an empty string instead. - The
jsonPayloadshould be converted to UTF-8 before hashing it to preventInvalid Signatureerror when sending characters with different encodings.
Examples
Check the examples below on how to calculate thePayload-Signature.
- Java
- PHP
- C#