v1
latestOpenAPI 3.0.12026-07-2412502.6 MBCarts
Preview a cart
Preview a cart by token. This allows you to pass a zipcode, state, country, and shipping profile ID to get shipping profiles and tax/shipping price without editing yet.
get/carts/{cart_token}/preview
Query parameters
ship_zipcodestring
Preview with a specific zipcode. Use "null" to set value as null.
ship_statestring
Preview with a specific state. Use "null" to set value as null.
ship_countrystring
Preview with a specific country. Use "null" to set value as null.
shipping_profile_idstring
Preview with a shipping profile. Use "null" to set value as null.
Response
OK
Example response
{
"campaign": {
"campaign_checkout_upsell": {
"items": [
{
"date_created": "2023-04-01 00:00:00",
"date_modified": "2023-04-01 00:00:00"
}
]
}
},
"order": {
"date_authorized": "2023-04-01 00:00:00",
"date_ordered": "2023-04-01 00:00:00"
},
"offers": [
{
"gift_date": "2023-04-01 00:00:00",
"upsells": [
{
"items": [
{
"date_created": "2023-04-01 00:00:00",
"date_modified": "2023-04-01 00:00:00"
}
]
}
]
}
]
}