v1
latestOpenAPI 3.0.02026-07-26168846732.2 KBCustomers
Customers - Create
Creates a customer object and stores the customer details to be reused for future payments. Incase the customer already exists in the system, this API will respond with the customer details.
post/customers
Request body
Example request
{
"merchant_reference_id": "cus_y3oqhf46pyzuxjbcn2giaqnb44",
"name": "Jon Test",
"email": "JonTest@test.com",
"phone": "9123456789",
"description": "First Customer",
"phone_country_code": "+65",
"default_billing_address": {
"city": "New York",
"line1": "123, King Street",
"line2": "Powelson Avenue",
"line3": "Bridgewater",
"zip": "08807",
"state": "New York",
"first_name": "John",
"last_name": "Doe",
"origin_zip": "08807"
},
"default_shipping_address": {
"city": "New York",
"line1": "123, King Street",
"line2": "Powelson Avenue",
"line3": "Bridgewater",
"zip": "08807",
"state": "New York",
"first_name": "John",
"last_name": "Doe",
"origin_zip": "08807"
},
"tax_registration_id": "123456789",
"document_details": {
"document_number": "12345678911"
}
}Response
Customer Created
Example response
{
"id": "0a_cus_01926c58bc6e77c09e809964e72af8c8",
"merchant_reference_id": "cus_y3oqhf46pyzuxjbcn2giaqnb44",
"name": "Jon Test",
"email": "JonTest@test.com",
"phone": "9123456789",
"phone_country_code": "+65",
"description": "First Customer",
"default_billing_address": {
"city": "New York",
"line1": "123, King Street",
"line2": "Powelson Avenue",
"line3": "Bridgewater",
"zip": "08807",
"state": "New York",
"first_name": "John",
"last_name": "Doe",
"origin_zip": "08807"
},
"default_shipping_address": {
"city": "New York",
"line1": "123, King Street",
"line2": "Powelson Avenue",
"line3": "Bridgewater",
"zip": "08807",
"state": "New York",
"first_name": "John",
"last_name": "Doe",
"origin_zip": "08807"
},
"created_at": "2023-01-18T11:04:09.922Z",
"default_payment_method_id": "0a_pm_01926c58bc6e77c09e809964e72af8c8",
"tax_registration_id": "123456789",
"document_details": {
"document_number": "12345678911"
}
}