Addresses
The Addresses resource family provides access to selected billing and shipping addresses on cart orders and purchases. With this resource, you can retrieve, edit, create and set selected billing and shipping addresses.
Select Order Billing Address
The billing address info resource provides the shopper with a selector to choose the billing address to use for the purchase. If the shopper is transacting on behalf of an account, the selector returns the addresses stored on the account. If not, the selector returns the addresses stored on the shopper profile.
Workflow
- Start with order
GET
the link with rel: billingaddressinfoGET
the link with rel: selectorGET
the link with rel: choicePOST
the choice using the link with rel: selectaction
Read Order Billing Address Choice
Use the order billing address selector to read an available address choice.
Workflow
- Start with order
GET
the link with rel: billingaddressinfoGET
the link with rel: selectorGET
the link with rel: chosenGET
the link with rel: description- Render the response
Response Fields
addresses.address
Type: Name | Description | Type |
---|---|---|
name | The customer name. | object |
given-name | The person’s given name. | string |
family-name | The person’s family name. | string |
address | The customer address. Address field names are based on the v.card specification. For more information on this specification, see v.card. | object |
street-address | The street address. | string |
extended-address | An extra field for address information. This field is optional. | string |
locality | The city name. | string |
region | The region name. A region typically corresponds to a province or a state of a country. | string |
postal-code | The postal code or zip code. | string |
country-name | The country name. | string |
phone-number | The phone number. | string |
organization | The organization. | string |
Read Selected Order Billing Address
Use the order billing address selector to read the chosen billing address.
Workflow
- Start with order
GET
the link with rel: billingaddressinfoGET
the link with rel: billingaddress- Render the response
Response Fields
addresses.address
Type: Name | Description | Type |
---|---|---|
name | The customer name. | object |
given-name | The person’s given name. | string |
family-name | The person’s family name. | string |
address | The customer address. Address field names are based on the v.card specification. For more information on this specification, see v.card. | object |
street-address | The street address. | string |
extended-address | An extra field for address information. This field is optional. | string |
locality | The city name. | string |
region | The region name. A region typically corresponds to a province or a state of a country. | string |
postal-code | The postal code or zip code. | string |
country-name | The country name. | string |
phone-number | The phone number. | string |
organization | The organization. | string |
Add Billing Address from Order
Create a billing address from the order.
Workflow
- Start with order
GET
the link with rel: billingaddressinfoGET
the link with rel: addressform- Fill out the form
POST
the form using the link with rel: createaddressaction
Request Fields
addresses.address
Type: Name | Description | Type |
---|---|---|
name | The customer name. | object |
given-name | The person’s given name. | string |
family-name | The person’s family name. | string |
address | The customer address. Address field names are based on the v.card specification. For more information on this specification, see v.card. | object |
street-address | The street address. | string |
extended-address | An extra field for address information. This field is optional. | string |
locality | The city name. | string |
region | The region name. A region typically corresponds to a province or a state of a country. | string |
postal-code | The postal code or zip code. | string |
country-name | The country name. | string |
phone-number | The phone number. | string |
organization | The organization. | string |
Select Delivery Shipping Address
The destination info resource provides the shopper with a selector to choose the shipping address to use for the purchase. If the shopper is transacting on behalf of an account, the selector returns the addresses stored on the account. If not, the selector returns the addresses stored on the shopper profile.
Workflow
- Start with destination info
GET
the link with rel: selectorGET
the link with rel: choicePOST
the choice using the link with rel: selectaction
Read Delivery Shipping Address Choice
Use the delivery shipping address selector to read an available address choice.
Workflow
- Start with destination info
GET
the link with rel: selectorGET
the link with rel: choiceGET
the link with rel: description- Render the response
Response Fields
addresses.address
Type: Name | Description | Type |
---|---|---|
name | The customer name. | object |
given-name | The person’s given name. | string |
family-name | The person’s family name. | string |
address | The customer address. Address field names are based on the v.card specification. For more information on this specification, see v.card. | object |
street-address | The street address. | string |
extended-address | An extra field for address information. This field is optional. | string |
locality | The city name. | string |
region | The region name. A region typically corresponds to a province or a state of a country. | string |
postal-code | The postal code or zip code. | string |
country-name | The country name. | string |
phone-number | The phone number. | string |
organization | The organization. | string |
Read Selected Order Shipping Address
Use the delivery shipping address selector to read the chosen shipping address.
Workflow
- Start with destination-info
GET
the link with rel: destination- Render the response
Response Fields
addresses.address
Type: Name | Description | Type |
---|---|---|
name | The customer name. | object |
given-name | The person’s given name. | string |
family-name | The person’s family name. | string |
address | The customer address. Address field names are based on the v.card specification. For more information on this specification, see v.card. | object |
street-address | The street address. | string |
extended-address | An extra field for address information. This field is optional. | string |
locality | The city name. | string |
region | The region name. A region typically corresponds to a province or a state of a country. | string |
postal-code | The postal code or zip code. | string |
country-name | The country name. | string |
phone-number | The phone number. | string |
organization | The organization. | string |
Add Shipping Address from Delivery
Create a shipping address from the delivery.
Workflow
- Start with delivery
GET
the link with rel: destinationinfoGET
the link with rel: addressform- Fill out the form
POST
the form using the link with rel: createaddressaction
Request Fields
addresses.address
Type: Name | Description | Type |
---|---|---|
name | The customer name. | object |
given-name | The person’s given name. | string |
family-name | The person’s family name. | string |
address | The customer address. Address field names are based on the v.card specification. For more information on this specification, see v.card. | object |
street-address | The street address. | string |
extended-address | An extra field for address information. This field is optional. | string |
locality | The city name. | string |
region | The region name. A region typically corresponds to a province or a state of a country. | string |
postal-code | The postal code or zip code. | string |
country-name | The country name. | string |
phone-number | The phone number. | string |
organization | The organization. | string |