Get Address List

🔒

Requires read_customer access scope.

Retrieve a paginated list of addresses for a specific customer.

This API is especially useful for:

  1. Fetching all addresses associated with a customer.
  2. Displaying customer shipping and billing addresses.
  3. Managing address lists for customer profiles.

Note: The operation is scoped to a specific shop, identified by its unique domain prefix (shopdomain), ensuring all queries are applied to the correct store.

Request Parameters

Public Request Parameters

📘

Public Request Parameters

Path Parameters

ParameterTypeRequiredExampleDescription
customer_idstringYes165618e4-3243-4cd7-abc3-1234567890abUnique identifier of the customer.

Query Parameters

ParameterTypeRequiredExampleDescription
limitint32No10Number of records per page. Default is 10. Max is 250.
pageint32No1Page number to retrieve. Default is 1.

Response Explanation

Public Response Parameters

📘

Public Response Parameters

Successful Response

FieldTypeExampleDescription
addressesarray of objectsArray containing address objects.
addresses[].idstring2490dc6a-d511-4e5e-bbcb-d58e913243adUnique identifier for the address.
addresses[].customer_idstring165618e4-3243-4cd7-abc3-1234567890abUnique identifier of the customer.
addresses[].first_namestringRyanFirst name of the consignee.
addresses[].last_namestringZhangLast name of the consignee.
addresses[].genderstringmaleGender of the consignee.
addresses[].emailstring[email protected]Email associated with the address.
addresses[].phonestring+86 150 1447 1143Phone number of the consignee.
addresses[].phone_area_codestring+86Area code of the phone number.
addresses[].address1string1 Rue des CarrieresPrimary street address.
addresses[].address2stringSuite 1234Secondary street address.
addresses[].areastringBay areaArea or region of the address.
addresses[].citystringSAN JOSECity of the address.
addresses[].provincestringNew MexicoProvince or state of the address.
addresses[].province_codestringNMProvince code.
addresses[].countrystringUnited StatesFull name of the country.
addresses[].country_codestringUSISO country code.
addresses[].zipstring87036Postal or ZIP code.
addresses[].companystringABC LimitedCompany associated with the address.
addresses[].defaultbooleantrueWhether this is the default address.

Error Response

Error responses in the API can be represented using two different fields: errors and error. Both fields provide details about issues encountered during request processing. Below is an explanation of the fields with their respective examples and descriptions.

FieldTypeExampleDescription
errorsEmail or Phone is already taken[ "Exceeds maximum limit of 250"]A list of errors encountered during the request processing.
FieldTypeExampleDescription
errorString "store is not active"Indicates an error encountered during the process

Error Detail

Status CodeMessagePossible ReasonExample Response
400Bad RequestInvalid input format or request structure (e.g., missing required fields or incorrect data types).Bad Request
Empty or invalid customer's ID
invalid limit input, e.g. 251"Exceeds maximum limit of 250"
UnauthorizedThe request is missing valid authentication credentials or the credentials provided are invalid.Unauthorized
404Record not foundThe customer's id provided is not found."Record not found"

API Structure Overview

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!