Preview Order Rewards
Preview everything an order would earn before checkout: the order cashback quote (identical calculation to Calculate Order Cashback) plus a preview of the event-based campaigns the order would trigger (evaluated as the same place_order event a real order submission fires).
This is a read-only quote — no points are awarded, no coupons are generated, nothing appears in the customer activity history, and campaign budgets or frequency limits are not consumed.
Security: Requires apiKey header. secretKey is required on v4.1; on v4.0 required when High Security Mode is enabled.
Localization: Send the optional lang header to localize eventRewards.campaigns[].campaignName. Cashback campaignName values use the campaign's internal name and are not affected by lang.
Headers
Language code for localized campaign names in eventRewards.campaigns[] (e.g., en, ar, fr). If omitted or not configured in your account, the response falls back to your account's default language.
Request body
Example request
{
"customerId": "1214",
"totalPaid": 90,
"totalPrice": 100,
"totalDiscount": 10,
"lineItems": [
{
"productId": "P-100",
"sku": "SKU-100",
"title": "Running Shoes",
"quantity": 1,
"price": 100,
"discount": 10,
"category": [
"shoes"
]
}
],
"channel": "web"
}Response
Order reward preview calculated successfully