Skip to main content
POST
/
customer
/
create
cURL
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"
  }
}

Error Codes and Messages

API Status CodeResponseReason
400Email already in useEmail already in use
400Phone already in usePhone already in use
400Invalid country codeInvalid country code
400Client Reference ID already existsClient Reference ID already exists
500Internal Server ErrorInternal Server Error

Authorizations

X-API-KEY
string
header
required

API Key for authentication

X-TIMESTAMP
string
header
required

Current timestamp in seconds since epoch

X-SIGNATURE
string
header
required

HMAC SHA256 signature of the request encoded in Base64

Body

application/json
full_name
string
required

Full name of the customer

Example:

"John Doe"

email
string
required

Email address of the customer

Example:

"john@example.com"

phone
string
required

Phone number of the customer

Example:

"9911002211"

alpha_3_country_code
string
required

Country code (based on nationality)

Example:

"IND"

client_reference_id
string

Optional customer reference ID

Example:

"test123"

non_residence_status
boolean

Boolean to define if the customer is a non-resident

Example:

true

residence_alpha_3_country_code
string

Country code (based on country of residence)

Example:

"USA"

Response

Customer created successfully

status
boolean
Example:

true

message
string
Example:

"Success"

data
object