Create an address
To create a new Address, make a POST request to the Address resource.
Permissions
The API token must include the following scopes: Numbers.
Request Body — REQUIRED |
---|
label string — REQUIREDA friendly name given to the address to help distinguish and search for different addresses within your project. |
country string — REQUIREDThe ISO 3166 Alpha 2 country code. |
first_name string — REQUIREDFirst name of the occupant associated with this address. |
last_name string — REQUIREDLast name of the occupant associated with this address. |
street_number string — REQUIREDThe number portion of the street address. |
street_name string — REQUIREDThe name portion of the street address. |
address_type string(Optional) If the address is divided into multiple sub-addresses, such as an apartment or office building, this identifies how the address is divided. If the address is a single occupant address, |
address_number string(Optional) If the address is divided into multiple sub-addresses, such as an apartment or office building, this identifies the particular sub-address. If the address is a single occupant address, |
city string — REQUIREDThe city portion of the street address. |
state string — REQUIREDThe state/province/region of the street address. In the USA and Canada, use the two-letter abbreviated form, such as |
postal_code string — REQUIREDThe postal code of the street address. |
Responses | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
201 CREATED
|