/
Offers & Rewards - Payload Format

Offers & Rewards - Payload Format

Please note the RBI payloads in this documented have been deprecated. For an up to date list of the RBI payloads, please refer to: Orders API - Cart Structure Examples | Cart Structures

 

Requirements for the JSON payload to be sent by the Partners API to Khumbu.

Contents

Reward payload structures

Rewards are an item benefit that can be redeemed in exchange for points (and sometimes money + points). Read more about it here: https://rbictg.atlassian.net/wiki/spaces/HELP/pages/4921819186 .

 

 

Reward with an item

"cart": [ { "menuSelections": [ { "id": "7ee7338a-a016-47c6-aef6-3783d40c003e", // Reward Sanity id "externalReferenceId": "123", // Reward constant plu defined in Sanity "quantity": 1, "price": { "amount": 0, "currency": "SAR", } "type": "Reward", "menuSelections": [ { "externalReferenceId": "51056", // item constant plu "id": "item_1862", // item Sanity id "menuSelections": [], "price": { "amount": 2495, // normal price "currency": "SAR" }, "quantity": 1, "type": "Item" } ] } ] } ]
{ "header": { "orgShortName": "{{OrgShortName}}", "locRef": "{{LocRef}}", "rvcRef": {{RvcRef}}, "idempotencyId": "{{$guid}}", "orderTypeRef": 9, "checkEmployeeRef": {{check_employee_ref}} }, "menuItems": [], "comboMeals": [ { "comboMealId": 51002003, // Cheeseburger reward "comboItem": { "menuItemId": 51002003, // Cheeseburger reward PLU "definitionSequence": 1, "quantity": 1 }, "mainItem": { "menuItemId": 1002003, // A la carte cheeseburger "definitionSequence": 1, "quantity": 1 }, "sideItems": [] } ], "tenders": [ { "tenderId": 901 // payment method ID. Pay at Counter for this example. } ] }

Reward with an item + premium modifier

"cart": [ { "menuSelections": [ { "id": "7ee7338a-a016-47c6-aef6-3783d40c003e", // Reward Sanity id "externalReferenceId": "123", // Reward constant plu defined in Sanity "quantity": 1, "price": { "amount": 0, "currency": "SAR", } "type": "Reward", "menuSelections": [ { "externalReferenceId": "51056", // item constant plu "id": "item_1862", // item Sanity id "menuSelections": [], "price": { "amount": 2495, // normal price "currency": "SAR" }, "quantity": 1, "type": "Item" } ] } ] } ]

Reward with a combo

Reward with a combo + premium modifier

Reward with a cart discount

The reward is the cart discount. You use points to buy a discount.

Reward with a product discount

Offer Payload Structure

Offers are a discount on the order or item. Can take the form of a discounted bundle, cheaper item, order-level % discount, or order-level $ off. Also known as a “coupon” in some markets. Read more about it here: https://rbictg.atlassian.net/wiki/spaces/HELP/pages/4854349911 .

Offer with an item

Offer with a combo

Offer with a cart discount

Offer with a product discount

Reference

NMS guides on how to set up offers and rewards in Sanity for Oracle: https://rbictg.atlassian.net/wiki/spaces/MS/pages/4057661622

Related content

Menu - Payload format
Menu - Payload format
Read with this
Oracle API - Rewards
Oracle API - Rewards
More like this
Menu - Agreements
Menu - Agreements
Read with this
Oracle API - Offers
Oracle API - Offers
More like this
Oracle Config - Rewards
Oracle Config - Rewards
More like this
Redeem discounts
Redeem discounts
More like this