Skip to main content
POST
Create an address book entry
OAuth2 scopes required: write:address-book. See Scopes for OAuth apps.
The address is validated before it is saved. For example, the postal code must match the format of the country (and is normalized, so 5611EM is stored as 5611 EM), and a house number is required in countries that need one, such as the Netherlands. A house number that is already part of address_line_1 is rejected. If you send a state_province_code, it must belong to the country_code. Fields that are not listed below, including id, are rejected.

Authorizations

Authorization
string
header
required

Basic Authentication using API key and secrets is currently the main authentication mechanism.

Scopes

write:address-book

Manage your address book

Body

application/json

The address to add.

name
string
required

Name of the person

Required string length: 1 - 75
Example:

"John Doe"

address_line_1
string
required

First line of the address, usually the street name

Required string length: 1 - 150
Example:

"Stadhuisplein"

postal_code
string
required

Postal code. It must match the format of the country.

Required string length: 1 - 12
Example:

"5611 EM"

city
string
required

City

Required string length: 1 - 30
Example:

"Eindhoven"

country_code
string
required

Country code as ISO 3166-1 alpha-2

Example:

"NL"

company_name
string

Name of the company

Maximum string length: 50
Example:

"Sendcloud"

email
string

A valid email address, or an empty string for none

Maximum string length: 511
Example:

"johndoe@example.com"

phone_number
string

Phone number

Maximum string length: 20
Example:

"+31612345678"

house_number
string

House number. Required in countries that need one, such as the Netherlands. Do not repeat it in address_line_1.

Maximum string length: 20
Example:

"10"

address_line_2
string

Additional address information, such as an apartment number

Maximum string length: 150
Example:

""

state_province_code
string | null

State or province code as ISO 3166-2, for example US-FL. It must belong to the country_code.

Example:

null

Response

The address book entry.

data
object

An entry in your address book. Entries saved from shipments can hold values that the create and update endpoints would reject, such as an empty postal code.