Step 1: Add Customer
Create a customer to generate a secure customer token.
Endpoint Information
Name: Add Customer
Method: POST
URL: {{base_url}}/api/v1/add-customer
Description
Before processing withdrawals, you must create a customer profile. This returns a customer_reference_id and a token.
Important: The customer token is only shown once during creation. Store it securely. If lost, you must regenerate it using the customer's email.
Request Body
Content-Type: application/json
{
"firstName": "Don",
"lastName": "Danny",
"email": "[email protected]",
"dob": "1995-01-10",
"contactNumber": "+1234567890",
"merchantAccountId": "{{your_account_no}}",
"addressDetails": {
"country": "Sweden",
"state": "Stockholm",
"city": "Dhaka",
"address": "16/A, Stockholm",
"zipCode": "11234"
}
}
Response
Success Response
{
"success": true,
"message": "Success",
"data": {
"customer_reference_id": "b86c68e5-9a14-4e49-b55e-e7f2285110a9",
"token": "56f74d8274c1cb387e1ad24895905c18",
"expire_at": "2026-03-02"
}
}