Addresses

List customers addresses

Requires admin privileges

GET/api/customers/{customer_id}/addresses
Path parameters
customer_id*integer (int64)
Response

OK

Body
idinteger (int64)
first_namenullable string
last_namenullable string
phone_numbernullable string
company_namenullable string
addressAddressEntity (object)
typenullable string
verifiedboolean
created_onstring (date-time)
Request
const response = await fetch('/api/customers/{customer_id}/addresses', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
[
  {
    "first_name": "text",
    "last_name": "text",
    "phone_number": "text",
    "company_name": "text",
    "address": {
      "address": "text",
      "address2": "text",
      "address3": "text",
      "city": "text",
      "state": "text",
      "zip_code": "text",
      "country": "text"
    },
    "type": "text",
    "verified": false,
    "created_on": "2024-10-06T20:28:41.590Z"
  }
]