Validate a coupon code against a specific product and quantity, and get the calculated discount amount.
Apply Coupon
This is a public endpoint. It requires the X-Embed-Key header but no customer authentication.
Request Body
Example Request
Success Response (200)
Response Fields
If payment_restrictions is not empty, the customer can only use the listed payment methods when this coupon is applied. Display the restrictions in your UI to avoid confusion at checkout.
Error Responses
Validation error (422)
Invalid coupon (400)
Coupon expired or inactive (400)
Coupon usage limit reached (400)
Minimum cart value not met (400)
Product not eligible (400)