Create address

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

Overview

Create a new address for a customer. The address can be used for shipping physical products or as a billing address.

Example: A customer wants to add their office address for magazine delivery. Create an address with type=shipping and associate it with their subscription.


Conditional Requirements

ConditionRequired Fields
Alwayscustomer_id OR customer_old_provider_id
Alwaystype (shipping, billing, or account_primary)
Alwaysline1, country
country is CA, US, or AUstate
Account has AvaTax address validation enabled AND country is US or CApostal_code
is_default_updated=trueAccount must NOT have taxes enabled (cannot update subscription addresses when taxes enabled)
Both customer_id AND customer_old_provider_id are setMust reference the same customer
Customer is deletedRequest will fail
Query Params
int32
required
Body Params
int32
required
int32
string
enum
required
Allowed:
string
required
length ≤ 255
string
required
length ≤ 2
string
length ≤ 255
string
length ≤ 255
string
length ≤ 255
string
length ≤ 255
string
length ≤ 255
string
length ≤ 45
string
string
length ≤ 191
boolean
Defaults to false
string
length ≤ 255
string
length ≤ 255
string
length ≤ 255
string
length ≤ 255
string
boolean
Defaults to false
boolean
string
length ≤ 500
integer
≥ 1
int32
Headers
string
required
Defaults to Bearer eyJ***
Responses

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