To verify redeemables given in the request, you can use this method. It is designed for server side integration which means that is accessible only through private keys.
Response schema
All codes and tiers provided in redeemables are validated during the request and the result of their 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.
Expand Option | Response Body |
---|---|
["order"] |
|
["redeemable"] | Expands redeemable objects by including |
["order", "redeemable"] |
|