Create an address for a customer

POST {{baseUrl}}/customers/:customer_id/addresses

Creates a new address for a customer.

For tax calculation, fraud prevention, and compliance purposes, you must include a postal_code when creating addresses for some countries. For example, ZIP codes in the USA and postcodes in the UK. See: Supported countries

If successful, your response includes a copy of the new address entity.

Request Body

{"country_code"=>"<string>", "description"=>"<string,null>", "first_line"=>"<string,null>", "second_line"=>"<string,null>", "city"=>"<string,null>", "postal_code"=>"<string,null>", "region"=>"<string,null>", "custom_data"=>"<object>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring