Skip to main content
Version: Lastest

Customer Object

The Customer Object is a standard data structure to hold information relating to one of your customers.

When one customer is returned by endpoints in this section, the response body will contain a Customer Object. Each object has the following structure:

ParamTypeDescription
customerRefIdString

Unique code from your side.

Partner-provided identifier for the customer.

customerIdStringCustomer ID
firstNameStringFirst name
lastNameStringLast name
mobileNumberStringPhone number
emailStringEmail
genderString

Gender

- MALE: male

- FEMALE: female

- OTHER: other

dateOfBirthStringDate of birth
placeOfBirthStringPlace of birth
nationalityStringNationality code
createdAtStringCreation time (standard format: ISO-8601)
updatedAtStringLast updated time (standard format: ISO-8601)

Ví dụ

{
"customerRefId": "ASKJLKALK213",
"customerId": "01HRVGAJSP7SX83X7AQ9QQYMBE",
"firstName": "Ha",
"lastName": "Phan",
"mobileNumber": "+84123456789",
"email": "ha@gmail.com",
"gender": "MALE",
"dateOfBirth": "1996-04-23",
"placeOfBirth": "HN",
"nationality": "EC",
"createdAt": "2024-01-26T18:26:02+07:00",
"updatedAt": "2024-01-26T18:26:02+07:00"
}