string
required
Bearer token with
marketing:read scopeRequest body
string
required
The promotion code to validate
string
Customer ID to check per-customer usage limits
array
Array of product IDs in the order (for product-specific promotions)
array
Array of category IDs in the order (for category-specific promotions)
integer
Order total in minor units (cents) to calculate discount
string
3-letter ISO currency code
Response
boolean
Whether the code is valid
string
Error code if invalid (see table below)
string
Human-readable error message if invalid
object
Promotion details if valid
object
Code details if valid
integer
Calculated discount in minor units (if order_total_minor provided)
string
Currency of the discount
Error codes
Request
Response (Valid)
Response (Invalid)