7min

Apply Address to Cart

Addresses are required for merchants to determine where to ship the orders to. Both shipping and billing addresses are required by merchants to execute an order.

POST /checkout/cart/{cart_id}/shipping_address

Apply the shipping address for the order to the cart. API Reference: Set Shipping Address

Request

cart_id - the ID of the cart you would like to add this SKU to

Required Body Parameters Shipping Address:

address_1 - the first line of the address the order should be billed to. city - the city the order should be billed to. state - the state of the address the order should be billed to. For US state validation we recommend ANSI two letter state codes, which conform to the ISO 3166-2 format without the US- prefix. postal_code - the postal code of the address the order should be billed to. country - the two letter country code of the address the order should be billed to. For country validation we use the ISO 3166-2 standard.

Curl
|

Response

JSON
|

POST /checkout/cart/{cart_id}/billing_address

Apply the billing address of the customer to the cart. API Reference: Set Billing Address

Request

cart_id - the ID of the cart you would like to add this SKU to

Required Body Parameters Billing Address:

address_1 - the first line of the address the order should be billed to. city - the city the order should be billed to. state - the state of the address the order should be billed to. For US state validation we recommend ANSI two letter state codes, which conform to the ISO 3166-2 format without the US- prefix. postal_code - the postal code of the address the order should be billed to. country - the two letter country code of the address the order should be billed to. For country validation we use the ISO 3166-2 standard.

Curl
|

Response

JSON
|



Updated 13 May 2022
Did this page help you?
Yes
No