Create address

Create an address for the customer on-session.

Query Params
int32
required

The unique identifier of the site associated with your account.

Body Params
string
required

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

string
required

The first line of the address. Always required.

string
enum
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
Defaults to shipping

The address type, one of either "shipping" or "billing". Always defaults to "shipping" if not provided.

string

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

string

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

string

The second line of the address.

string

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

string

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

string

Postal code or zip associated with 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

Numeric phone number associated with the address. Must be preformatted and contain only numbers (length min: 5, length max: 20).

Headers
string
required
Defaults to Bearer eyJ***
string
Defaults to application/json
Responses

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