Check discount code validity
Public storefront endpoint. Validate discount eligibility against the checkout context before order creation. If X-Scalev-Guest-Token resolves a non-empty guest cart, the cart is used as the item source. Otherwise the request may provide direct items[] with variant IDs. Unknown or ineligible codes return a validation result with is_eligible: false; the route itself only returns 404 when the store cannot be resolved.
Header
Publishable storefront public API key for the target store. Page public API keys are not accepted on Storefront public routes.
Browser-safe guest cart token returned by the first guest-cart response when no token is sent. Send it on later guest-cart and public checkout calls to keep the same cart after reloads.
Parameter Path
Store unique_id.
Body
Discount code to validate.
"SAVE10"
Optional direct item source. If supplied, these items are used for discount eligibility. Otherwise the guest cart referenced by X-Scalev-Guest-Token is used.
1 - 50 elements- Option 1
- Option 2
Storefront payment method code selected by the buyer.
"bank_transfer"

