Operations
Calculate purchase discount and cashback
Returns information about available bonus points for redemption or discount amount (depending on loyalty program settings), the payment amount after applying discounts/bonuses, and the number of bonus points that will be awarded after the operation is completed.
Always call this endpoint before POST /operations to get the correct cash value. Do not calculate discounts manually — the server applies all loyalty rules including membership tier rates, point limits, and skip-loyalty exclusions.
The response depends on your company's baseDiscountPolicy:
- APPLY_DISCOUNT — returns discount amount and percentage
- CHARGE_SCORES — returns cashback points to be earned
post/operations/calc
Request body
Response
Purchase calculation result
Example response
{
"user": {
"tags": [
{
"id": 1
}
]
}
}