Signature
To enhance the security of our API interactions, we mandate the use of a Signature header. This additional security measure ensures that all requests are authenticated and verified, safeguarding sensitive data and preventing unauthorized access.
Prerequisites
- API_SECRET_KEY: Munify will provide this to the customer.
- CUSTOMER_ID: Munify’s Customer Identifier.
Steps
Concatenate the values of the following request body fields in sequence, omitting spaces and quotation marks
customer_id
request_timestamp
customer_reference
amount
currency
bank_code
payout_type
receiver_identifier
Customer json
Output result
- Sign the concatenated string with the
API_SECRET_KEY
- Method:
HMAC
- Hash Function:
SHA-256
- Method:
Since the API_SECRET_KEY
is hex-encoded, you must convert it to its binary
form before using it in the HMAC algorithm.
- Convert the signature to a hexadecimal string.
Complete example of signature generation (in Python)
Useful links:
- What is HMAC (Hash based Message Authentication Code)?
- Online HMAC Signature Generator
Utilize this Online HMAC Signature Generator to verify your generated signature against the expected outcome.
To replicate the example provided above, please use the following inputs- Concatenated String, TEXT
- API Secret Key, HEX
- SHA-256, HEX