website logo
Channel Docs
Merchant Docs
Navigate through spaces
Channel Docs
Merchant Docs
⌘K
Guides
🚀Quick Start
🏃‍♂️Utilizing Quick Checkout
👋Welcome to Violet's Docs
💡Concepts
🌐API Reference
✋Help
Docs powered by archbee 
6min

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 03 Mar 2023
Did this page help you?
Yes
No
UP NEXT
Retrieve and Apply Shipping Methods
Docs powered by archbee 
TABLE OF CONTENTS
POST /checkout/cart/{cart_id}/shipping_address
POST /checkout/cart/{cart_id}/billing_address