To verify redeemables given in the request, you can use this method. It is designed for client-side validation which means that is accessible through public keys.
Response schema
All codes and tiers provided in redeemables are validated during the request and the result of thier validation is returned in the API response.
Response | Description |
---|---|
valid | If all redeemables can be applied in the given context, the API returns |
redeemables | redeemables array lists results of validation of each redeemable. If a redeemable can be applied, the API returns "status": "APPLICABLE" |
order | order object presents details of the order provided in the request after all discounts are applied. Read more about returned order object. |
Expanded Response
Responses will vary depending on the strings passed in the options.expand string array.
Expanded Option | Response Body |
---|---|
["order"] |
|
["redeemable"] |
|
["order", "redeemable"] |
|