Apply voucher
POST/v1/:channel/checkout/:token/voucher
Applies a voucher code to the checkout session. Recalculates totals.
Guest callers must provide session_token. For apply_once_per_customer
vouchers, at least email or phone must be supplied.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 422
Voucher applied — updated totals returned
Invalid request parameters or body
Missing or invalid API key
Valid API key but insufficient permissions, or checkout ownership mismatch
Channel, product, category, collection, or checkout not found
Voucher invalid or not applicable