Preview Order Rewards
Quote cashback points and place_order campaign rewards for a cart or checkout before anything is awarded.
place_order event a real order submission fires). Use this on cart and checkout pages to show everything the order will earn in one call.
This endpoint is a read-only quote:
- No points are awarded and no coupons are generated.
- Nothing appears in the customer’s activity or history.
- Campaign budgets and frequency limits are not consumed.
- Calling a preview any number of times has no side effects.
apikey header. secretkey is required on v4.1; on v4.0 required when High Security Mode is enabled.Customer handling
The cashback quote works without an existing customer (useful for guest checkout). Campaign eligibility requires an existing customer:- When the customer is found:
customerFoundistrueandeventRewardsincludes theplace_ordercampaign breakdown. - When the customer is missing or inactive:
customerFoundisfalse, the cashback quote is still returned, andeventRewardsisnull.
Localization
Send the optionallang header to localize eventRewards.campaigns[].campaignName. Cashback campaignName values use the campaign’s internal name (matching Calculate Order Cashback) and are not affected by lang.
For event campaign reason values and other machine-readable fields, see Preview Event Rewards.
Notes and limitations
- Previews are point-in-time quotes. A concurrent real order for the same customer can change eligibility between the preview and the actual submission.
- Campaign budgets are not checked. A campaign whose budget is exhausted may preview rewards that a real submission would reject.
- Coupons are described, never created. Actual coupon codes are generated only by real orders.
- The order preview evaluates the order-level
place_orderevent only. Campaigns built on the internal per-item purchase event are not included. - The order preview has no
orderId(same as Calculate Order Cashback), so campaign conditions that reference theorder_idmetadata key will not match in a preview. - Unknown metadata keys are ignored by previews.
- Streak badges and mission step rewards are not included in preview results.
Authorizations
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.
Body
Amount actually paid.
x >= 090
The customer's unique ID. The cashback part works without it (quote for a new customer); the campaigns part requires an existing customer — see customerFound.
100"1214"
Used only to help locate the customer (channel merge).
Used only to help locate the customer (channel merge).
Order total before discounts.
x >= 0100
Total discount applied.
x >= 010
Shipping total.
x >= 0Tax total.
x >= 0Order line items.
Merchant/branch info for multi-merchant setups.
Order channel (e.g. web, pos, mobile).
"web"
Custom key/value attributes — usable in campaign conditions.
Response
Order reward preview calculated successfully
Echo of the request.
false when the customer does not exist or is inactive. The cashback quote is still returned; eventRewards is null (campaign eligibility can't be evaluated without an existing customer).
Grand total: cashback points + points from event campaigns the order would achieve now.
Number of coupons the order's event campaigns would grant (one per achievement of a coupon-reward campaign).
The cashback quote — same shape as the Calculate Order Cashback response. Note: campaignName here is the campaign's internal name and is not affected by the lang header.
The place_order event preview — exactly one entry with the same shape as an events[] entry of Preview Event Rewards.