Explicit test carts. Each scenario has an id (lowercase letters, digits, - or _), an optional label, lines (1 to 20 of {"variantId": "…", "quantity": 1}), optional discountCodes (up to 5) and checks (1 to 20). Check types: free_shipping (threshold, inclusive, basis, rateName), discount_code (code, expectApplicable, expectedAmount), automatic_discount (title, expectPresent, expectedAmount), cart_total (field plus expected or computeFrom), line_price (variantId, expectedUnitPrice, field), variant_available (variantId, expectAvailable), currency (expected) and cart_page_total (selector). Checkout-only types (cod_available, payment_method, tax_amount, checkout_total, shipping_discount) are accepted and always reported as unsupported.
Max. items:20
Example:[
{
"id": "mug-monday",
"label": "Mug Monday takes 10% off the mug",
"lines": [
{
"variantId": "41234567890789",
"quantity": 1
}
],
"checks": [
{
"type": "automatic_discount",
"title": "Mug Monday",
"expectedAmount": "49.90"
},
{
"type": "cart_total",
"field": "total_price",
"computeFrom": {
"base": "original_total_price",
"steps": [
{
"kind": "percentage",
"value": "10"
}
],
"rounding": "half_up"
}
}
]
}
]