Apply Shipping Address to Cart

The shipping address tells a merchantmerchant - A merchant or supplier is the entity that has synced their online store with Violet and made their products available for sale. where to ship the product(s) in the order to.

Required Body Parameters:

address_1 - the first line of the address the order should be shipped to.
city - the city the order should be shipped to.
state - the state of the address the order should be shipped 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 shipped to.
country - the two letter country code of the address the order should be shipped to. For country validation we use the ISO 3166-2 standard.

curl -X POST https://sandbox-api.violet.io/v1/checkout/cart/{cart_id}/shipping_address \
-H "X-Violet-App-Id: your-app-id-here" \
-H "X-Violet-App-Secret: your-app-secret-here" \
-H "X-Violet-Token: your-token-here" \
-H "Content-type: application/json" \
-d '{"city": "Seattle", "state": "WA", "country": "US", "postal_code": "98104", "address_1": "925 4th Ave"}'