Get Address Details

Retrieve details of a specific address using its unique identifier.

🔒

Requires read_customer access scope.

The Create Customer API retrieves the details of a specific address for a given customer.

This API is especially useful for:

  1. Fetching detailed address information for shipping or billing purposes.
  2. Managing and validating address information for a customer.
  3. Supporting detailed address retrieval for edits or confirmations.

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

ParameterTypeRequiredDescriptionExample
customer_idstringYesUnique identifier of the customer.165618e4-3243-4cd7-abc3-1234567890ab
address_idstringYesUnique identifier of the address.2490dc6a-d511-4e5e-bbcb-d58e913243ad

Response Explanation

Public Response Parameters

📘

Successful Response

FieldTypeExampleDescription
codestring"success"Response status code
messagestring"Addresses retrieved"Descriptive message of the response
data.cursorstring"cursor_123"Pagination token
data.has_morebooleantrueMore results available
data.addressesList 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!