Update address

Update an existing customer address.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Overview

Update an existing address belonging to the authenticated customer. Returns the updated customer plus a meta block. The address type cannot be changed. Requires a bearer token.

Example: A customer corrects the city and postal code on their shipping address.

📘

Authentication required

Send a bearer token as Authorization: Bearer <token>. An address the customer does not own returns 404 Address not found.


Conditional Requirements

ConditionRequired Fields
Alwaystype, first_name, last_name, city, state, postal_code
Path Params
int32
required

The unique identifier of the address.

Query Params
int32
required

The unique identifier of the site associated with your account.

Body Params
string
required

The address type, one of either "shipping" or "billing". Always required.

string
length ≤ 2

The two-letter code of the country, as specified by ISO 3166 alpha-2 standard. Always required.

string
length ≤ 255

The first line of the address. Always required.

string
required
length ≤ 255

The address's first name that belongs to the customer. Always required.

string
required
length ≤ 255

The address's last name that belongs to the customer. Always required.

string
required
length ≤ 255

The name of a city, town, village, etc. Always required.

string
required
length ≤ 255

The two-letter code of the state, region, or province. Always required.

string
required
length ≤ 45

Postal code or zip associated with the address. Always required.

string
enum
length ≤ 2
Defaults to en

The customer’s preferred language as a two-letter code, defined by ISO 639-1 standard. If not specified, it will be set from Accept-Language header, or from the default language defined in your site settings as a fallback.

Allowed:
string
length ≤ 255

The second line of the address.

boolean

Set this address as the new default. Only one default address of the same type can be set at all times.

string
length between 5 and 20

Numeric phone number associated with the address.

string | null

Company name for the address.

string | null

Title for the address.

string | null

Department for the address.

string | null

Delivery instructions for the address (max 500 characters).

integer | null
≥ 1

Delivery sequence number for the address.

Responses

Language
Credentials
Query
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json