The REST Admin API is a legacy API as of October 1, 2024. All apps and integrations should be built with the GraphQL Admin API. For details and migration steps, visit our migration guide.
Requires customers
access scope.
Requires access to protected customer data.
The Customer Address resource represents addresses that a customer has added. Each customer can have multiple addresses associated with them.
For more information about the Customer resource, see Customer.
Was this section helpful?
Properties
address1
->address1
The customer's mailing address
address2
->address2
An additional field for the customer's mailing address.
city
->city
The customer's city, town, or village.
country
->country
The customer's country.
The two-letter country code corresponding to the customer's country.
country_name
->country
The customer’s normalized country name.
company
->company
The customer’s company.
customer_id
deprecated
The unique identifier for the customer.
first_name
The customer’s first name.
The unique identifier for the address.
last_name
->lastName
The customer’s last name.
name
->name
The customer’s first and last names.
Was this section helpful?
Creates a new address for a customer.
api_version
string
required
customer_id
string
required
Was this section helpful?
Path parameters
string
required
Was this section helpful?
Retrieves a list of addresses for a customer. Note: This endpoint implements pagination by using links that are provided in the response header. To learn more, refer to Make paginated requests to the REST Admin API.
api_version
string
required
customer_id
string
required
Was this section helpful?
Query parameters
Was this section helpful?
Retrieves details for a single customer address.
address_id
string
required
api_version
string
required
customer_id
string
required
Was this section helpful?
Was this section helpful?
Updates an existing customer address.
address_id
string
required
api_version
string
required
customer_id
string
required
Was this section helpful?
Was this section helpful?
Sets the default address for a customer.
address_id
string
required
api_version
string
required
customer_id
string
required
Was this section helpful?
Was this section helpful?
Performs bulk operations for multiple customer addresses.
address_ids[]
required
Performs bulk operations on a list of customer address IDs. Format:
address_ids[]=1&address_ids[]=2&address_ids[]=3
.api_version
string
required
customer_id
string
required
operation
required
Operation to perform by keyword (for example, destroy)
Was this section helpful?
Query parameters
required
Performs bulk operations on a list of customer address IDs. Format:
address_ids[]=1&address_ids[]=2&address_ids[]=3
.required
Operation to perform by keyword (for example, destroy)
Was this section helpful?
Removes an address from a customer’s address list.
address_id
string
required
api_version
string
required
customer_id
string
required
Was this section helpful?
Was this section helpful?