Create address

Create a new address for a customer.

Query Params
int32
required

The unique identifier of the site associated with your account.

Body Params
int32
required

The unique identifier of the site associated with your account.

int32
required

The unique identifier of the customer which must be associated to the site and related account.

string
enum
required

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

Allowed:
string
required
length ≤ 255

The first line of the address, typically containing the street number and street name.

string
required
length ≤ 2

The two-letter country codes as specified by ISO3166 alpha-2. Learn more here.

string
length ≤ 255

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

string
length ≤ 255

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

string
length ≤ 255

The second line of the address, which can be used for apartment number, suite number, etc.

string
length ≤ 255

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

string
length ≤ 255

The two-letter code of the state, region, or province. Required for CA, US, AU.

string
length ≤ 45

Postal code or zip associated with the address.

string

Numeric phone number associated with the address.

string
length ≤ 191

An optional field that may be used to store the identifier of the address on a previous system. Must be unique under the account.

boolean
Defaults to false

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

string
length ≤ 255

The customer's title within the company.

string
length ≤ 255

A salutation for the address, such as Mr., Ms., Dr.

string
length ≤ 255

The company name associated with the address.

string
length ≤ 255

The department associated with the address.

string

The old_provider_id unique identifier that was added to customer who owns this address.

boolean
Defaults to false

If provided and set to true, the default shipping address for all of the customer's active subscriptions will be updated. This process will only trigger if is_default is also provided and set to true.

boolean

A boolean to bypass the address cleansing feature if enabled.

string
length ≤ 500

Optional delivery notes associated with this address.

integer
≥ 1

Optional integer representing the driver delivery order for the address

int32

The vendor associated with this address if any

Headers
string
required
Defaults to Bearer eyJ***
Responses

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