Endpoints Reference
Checkout
Calculate tax and shipping
POST
/v1/{siteEnv}/{siteId}/checkout/calculate
PATH PARAMETERS
siteEnv
string
*Example: live
siteId
string
*Example: bobs-store
BODY PARAMETERS
body
Checkout
*Checkout
cart_id
string<uuid>
Example: f81d4fae-7dec-11d0-a765-00a0c91e6bf6
SparkLayer Cart ID
customer
Customer
currency_code
string
Example: gbp
[ISO 4217](http://en.wikipedia.org/wiki/ISO_4217) currency code
billing_address
Address
shipping_address
Address
shipping_line
object
[Any Of:ShippingLineSparkLayerShippingLinePlatform]line_items
object[]
ignite_state
object
Context which was set by a previous response from /checkout/calculate
RESPONSES
200
Returns tax and shipping information
object
available_shipping_methods
object[]
totals
object
ignite_state
object
Context which will be provided in subsequent requests to /checkout/complete
401
Auth Failure
500
System Exception