ConsumerAddressInput
input type
Address-book entry input for a Consumer — a supplied book replaces the stored one wholesale (the Role-descriptors list-is-the-payload semantic).
Fields
| Field | Type | Required | Notes |
|---|---|---|---|
line1 | String String! | yes | Street address, first line. |
line2 | String | no | Second address line — apartment, suite or floor. Optional. |
city | String String! | yes | City or town. |
region | String | no | State, province or prefecture. Optional. |
postalCode | String | no | Postal or ZIP code. Optional. |
countryCode | String String! | yes | ISO 3166-1 alpha-2 country code (uppercase). |
addressType | String String! | yes | shipping | billing | both. |
isDefaultShipping | Boolean | no | Whether orders ship to this address unless another is chosen — at most one per shopper, on an address used for shipping. |
isDefaultBilling | Boolean | no | Whether bills go to this address unless another is chosen — at most one per shopper, on an address used for billing. |