Apply Billing Address to Cart

The billing 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. the address of the customer placing the order.

Required Body Parameters:

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 -X POST https://sandbox-api.violet.io/v1/checkout/cart/{cart_id}/billing_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"}'

📘

As payment is facilitated while the order is being placed the customer will likely never receive any form of bill or invoice at this address.