The address model is used for the billing_address, sender_address, and recipient_address objects.
| Field | Type | Description | Validation |
|---|---|---|---|
address_type | string | The type of location. Example: business, residential. | Possible values:commercial residential educational government medicalindustrial shipping_location |
city | string | City, district, suburb, town, or village. | Required, 2-40 characters |
company | string | The company name, when shipping to a business address. | 2-35 characters |
country | string | Two letter ISO country code. | Required, Two letter ISO country code. Learn more |
email | string | The customer's email address. | Valid email address, 2-225 characters |
id | number (double) | The ID of this object in Delivery Hub. | 2-225 characters |
phone | string | The customer's phone number. | The regular expression pattern
|
postal_code | string | Postal or ZIP code. | Required, 2-20 characters |
state | string | (Optional, based on country) State, province, or region. | 2-35 characters |
street1 | string | The first line of the street address, including the street name or PO Box number. | Required, 1-35 characters |
street2 | string | (Optional) The second line of the street address, including the apartment number. | 1-35 characters |

