input CreateOrderAddressInput
Order type for addresses. Orders have addresses with more details than the rest of the system so we use our own types
Fields
| Field | Type | Description |
|---|---|---|
first_name | String | First name for the address or contact. |
last_name | String | Last name for the address or contact. |
company | String | Company for the address or contact. |
address1 | String | Address line 1 for the address or contact. |
address2 | String | Address line 2 for the address or contact. |
city | String | City for the address or contact. |
state | String | Send the state code here (e.g., NY, CA). |
state_code | String | DEPRECATED Use the state field instead and send the state code State or province code for state code. |
zip | String | Postal or ZIP code. |
country | String | Send the ISO country code here (e.g., US, CA). |
country_code | String | DEPRECATED Use the country field instead and send the country code ISO country code for country code. |
email | String | Order email takes precedence, followed by shipping address email, then billing address email. |
phone | String | Phone number for the contact. |
Referenced By
- CreateOrderInput Type
- CreateWholesaleOrderInput Type
- ShippedPackagesInput Type
- UpdateOrderInput Type
Example
{
"first_name": "Ada",
"last_name": "Lovelace",
"company": "Acme Corp",
"address1": "123 Fulfillment Ave",
"address2": "Suite 100",
"city": "New York",
"state": "NY",
"state_code": "NY",
"zip": "10001",
"country": "US",
"country_code": "US",
"email": "customer@example.com",
"phone": "+1-555-0100"
}