Ensure you have your API credentials (API Key and API Secret) before proceeding.
Contact our support team if you need assistance obtaining these credentials.
Contact our support team if you need assistance obtaining these credentials.
Required Headers
Your unique API key provided by DollarPe. This key identifies your application.
The current Unix timestamp in seconds. This helps prevent replay attacks.
An HMAC SHA256 signature of the request, encoded in Base64. This signature verifies the integrity and authenticity of the request.
Generating the Signature
The signature is a critical component of the authentication process. Follow these steps to generate it:1
Create Message String
Concatenate the API key, timestamp, and a sorted JSON string of the request body using a pipe (
|) separator.2
Generate Hash
Use your API secret to create an HMAC SHA256 hash of the message string.
3
Encode
Convert the resulting hash to Base64 format. This encoded string is your signature.
Code Examples
Below are examples in various programming languages to generate the required headers:- Node.js
- Python
- Java

