Retrieve Customer

This request enables you to retrieve details of customers based on their id, which needs to be provided in the request path.

GET/customers/{customer_id}

Path Parameters

customer_idstringrequired

Response

200

idstring
merchant_customer_idstring
first_namestring
last_namestring
genderstring
date_of_birthstring
emailstring
nationalitystring
countrystring
documentobject
Show document properties
document_typestring
document_numberstring
phoneobject
Show phone properties
numberstring
country_codestring
billing_addressobject
Show billing_address properties
address_line_1string
address_line_2string
countrystring
statestring
citystring
zip_codestring
neighborhoodstring
shipping_addressobject
Show shipping_address properties
address_line_1string
address_line_2string
countrystring
statestring
citystring
zip_codestring
neighborhoodstring
metadataobject[]
Show metadata properties
keystring
valuestring
created_atstring
updated_atstring
merchant_customer_created_atstring

400

codestring
messagesstring[]

401

codestring
messagesstring[]

403

codestring
messagesstring[]

404

codestring
messagesstring[]
Request
curl -X GET "https://api-sandbox.whitelabel.com/v1/customers/<customer_id>" \
  -H "public-api-key: <public-api-key>" \
  -H "private-secret-key: <private-secret-key>"
Response
{
  "id": "94121f98-98f7-4d57-aa5f-228401d35b12",
  "merchant_customer_id": "1744402154",
  "first_name": "John",
  "last_name": "Doe",
  "gender": "F",
  "date_of_birth": "1990-02-28",
  "email": "john.doe@gmail.com",
  "nationality": "CO",
  "country": "CO",
  "document": {
    "document_type": "CC",
    "document_number": "1010268952"
  },
  "phone": {
    "number": "3132450765",
    "country_code": "57"
  },
  "billing_address": {
    "address_line_1": "Calle 34 # 56 - 78",
    "address_line_2": "Apartamento 502, Torre I",
    "country": "CO",
    "state": "Cundinamarca",
    "city": "Bogotá",
    "zip_code": "111111",
    "neighborhood": "Test"
  },
  "shipping_address": {
    "address_line_1": "Calle 34 # 56 - 78",
    "address_line_2": "Apartamento 502, Torre I",
    "country": "CO",
    "state": "Cundinamarca",
    "city": "Bogotá",
    "zip_code": "111111",
    "neighborhood": "Test"
  },
  "metadata": [
    {
      "key": "ID",
      "value": "1234"
    }
  ],
  "created_at": "2025-04-11T20:09:14.927971Z",
  "updated_at": "2025-04-11T20:09:14.927972Z",
  "merchant_customer_created_at": "2023-08-05T14:43:58.980718Z"
}