curl --request POST \
--url https://sandbox.dollarpe.xyz/cms/api/v1/customer/create \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-SIGNATURE: <api-key>' \
--header 'X-TIMESTAMP: <api-key>' \
--data '
{
"full_name": "John Doe",
"email": "john@example.com",
"phone": "9911002211",
"alpha_3_country_code": "IND",
"client_reference_id": "test123",
"non_residence_status": true,
"residence_alpha_3_country_code": "USA"
}
'{
"status": true,
"message": "Success",
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"client_reference_id": "test123",
"full_name": "John Doe",
"email": "john.doe@example.com",
"phone": "+1234567890",
"country": "USA",
"type": "INDIVIDUAL",
"status": "UNVERIFIED",
"failure_reason": null,
"document_type": "AADHAAR"
}
}Create a new customer
curl --request POST \
--url https://sandbox.dollarpe.xyz/cms/api/v1/customer/create \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-SIGNATURE: <api-key>' \
--header 'X-TIMESTAMP: <api-key>' \
--data '
{
"full_name": "John Doe",
"email": "john@example.com",
"phone": "9911002211",
"alpha_3_country_code": "IND",
"client_reference_id": "test123",
"non_residence_status": true,
"residence_alpha_3_country_code": "USA"
}
'{
"status": true,
"message": "Success",
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"client_reference_id": "test123",
"full_name": "John Doe",
"email": "john.doe@example.com",
"phone": "+1234567890",
"country": "USA",
"type": "INDIVIDUAL",
"status": "UNVERIFIED",
"failure_reason": null,
"document_type": "AADHAAR"
}
}| API Status Code | Response | Reason |
|---|---|---|
| 400 | Email already in use | Email already in use |
| 400 | Phone already in use | Phone already in use |
| 400 | Invalid country code | Invalid country code |
| 400 | Client Reference ID already exists | Client Reference ID already exists |
| 500 | Internal Server Error | Internal Server Error |
API Key for authentication
Current timestamp in seconds since epoch
HMAC SHA256 signature of the request encoded in Base64
Full name of the customer
"John Doe"
Email address of the customer
"john@example.com"
Phone number of the customer
"9911002211"
Country code (based on nationality)
"IND"
Optional customer reference ID
"test123"
Boolean to define if the customer is a non-resident
true
Country code (based on country of residence)
"USA"