Get customer's addresses
Using this endpoint, you can get all addresses of a customer.
By specifying the query parameters offset
and limit
, you can narrow down the search results. You can also sort
the results in an ascending or descending order. Additionally, with the isDeleted
query parameter, you can filter for either deleted or non-deleted customers. When no query parameter is specified, by default, you get up to 10 records.
Authorizations
The access token.
Headers
A header used by fabric to identify the tenant making the request. You must include tenant id in the authentication header for an API request to access any of fabric’s endpoints. You can retrieve the tenant id , which is also called account id, from Copilot. This header is required.
A UUID of the request.
Path Parameters
A 24-character system-generated ID of the customer. This is returned in the response of the POST /customers
endpoint.
Query Parameters
The number of records to skip before returning records. For example, when offset is 20 and limit's 10, this endpoint returns records from 21 to 30.
The maximum number of records per page.
The criteria to sort results, where -
indicates a descending order and +
indicates an ascending order. You can sort the following fields - updatedAt
, country
, city
, and region
.
A flag indicating whether only the deleted addresses must be included in the response. Set to true
to include only the deleted addresses of the customers and false
to exclude the deleted addresses.
Was this page helpful?