Validate Loyalty Programs Run in API Explorer
Ask AI
This endpoint is used to validate a customer's loyalty program selection against their current order. It provides the channel with final, machine-readable discount details to apply to the basket.
POST
//loyalty/{channelLinkId}/programs/validate
curl \
--request POST 'https://api.staging.deliverect.com//loyalty/{channelLinkId}/programs/validate'
Response examples (200)
{
"validationErrors": [],
"discounts": [
{
"externalId": null,
"provider": "loyalty",
"scope": {
"type": "order"
},
"offer": {
"type": "flat_off",
"value": 500
}
}
],
"maxRedeemableAmount": 1000
}