Get Address List

Retrieve a list of all address with pagination.

🔒

Requires read_customer access scope.

The Get Address List API retrieves 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

📘

Path Parameters

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

Query Parameters

ParameterTypeRequiredExampleDescription
cursorstringNo165618e4-3243-4cd7-abc3-1234567890abA cursor used for pagination to navigate through the list.
page_sizeint32No1Number of records per page. The default value is 10, and the maximum allowed value is 250.

Response Explanation

Public Response Parameters

📘

Successful Response

FieldTypeExampleDescription
codestring"success"Response status code
messagestring"Addresses retrieved"Human-readable message
data.cursorstring"cursor_123"Pagination token
data.has_morebooleantrueMore results available
data.addressesarrayList of addresses
data.addresses[].idstring"addr_123"Unique address ID
data.addresses[].customer_idstring"cust_456"Owning customer ID
data.addresses[].first_namestring"John"Recipient first name
data.addresses[].last_namestring"Doe"Recipient last name
data.addresses[].companystring"ACME Inc"Company name
data.addresses[].address1string"123 Main St"Primary address line
data.addresses[].address2string"Suite 200"Secondary address line
data.addresses[].citystring"New York"City name
data.addresses[].provincestring"New York"State/province
data.addresses[].countrystring"United States"Country name
data.addresses[].zipstring"10001"Postal code
data.addresses[].province_codestring"US-NY"Province abbreviation
data.addresses[].country_codestring"US"ISO country code
data.addresses[].genderstring"male"Recipient gender
data.addresses[].phonestring"+12125551234"Contact number
data.addresses[].phone_area_codestring"212"Phone area code
data.addresses[].areastring"Manhattan"District/region
data.addresses[].emailstring"[email protected]"Contact email
data.addresses[].namestring"John Doe"Full recipient name
data.addresses[].country_namestring"United States"Official country name
data.addresses[].defaultbooleantrueDefault address flag

Error Response

FieldTypeExampleDescription
codestringInvalidParameterError http message
messagestring``Error message

API Structure Overview

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