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
the ID of the cart you would like to add this SKU to.
Required Body Parameters Shipping Address:
the first line of the address the order should be billed to.
the city the order should be billed to.
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.
the postal code of the address the order should be billed to.
the two letter country code of the address the order should be billed to. For country validation we use the ISO 3166-2 standard.
Response
POST /checkout/cart//billing_address
Apply the billing address of the customer to the cart. API Reference: Set Billing Address
Request
the ID of the cart you would like to add this SKU to.
Required Body Parameters Billing Address:
the first line of the address the order should be billed to.
the city the order should be billed to.
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.
the postal code of the address the order should be billed to.
the two letter country code of the address the order should be billed to. For country validation we use the ISO 3166-2 standard.
Response