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
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