Validate Promotion Code
Validate a promotion code without redeeming it.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
account_id
Headers
Idempotency-Key
A unique key for this request. A retry with the same key returns the first response instead of running again, for 24 hours. Keys are per caller.
Request
This endpoint expects an object.
code
The promotion code to redeem
customer_id
Customer applying the code (for validation)
order_amount
Order amount for minimum validation
order_currency
Order currency
Response
Successful Response
valid
Whether the promotion code is valid
error
Error message if validation failed
promotion_code
The promotion code details if found
Errors
422
Unprocessable Entity Error