Skip to main content

Add Customer

Create a withdrawal customer and generate a customer token.

Endpoint Information

Name: Add Customer (Create Customer Token)
Method: POST
URL: {{base_url}}/api/v1/add-customer

Description

Before processing withdrawals with a card token, you must first create a customer token. The token will only be visible once during creation — store it securely. If lost, you can regenerate it using the customer’s email.

Authentication

Type: Basic Auth

  • Username: App Key
  • Password: Secret Key

Request Body

Content-Type: application/json

{
"firstName": "Don",
"middleName": "",
"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"
}
}