POST /api/public/v1/customers/tillStampRewards
Changed onThe stamp rewards the Pay screen and the customer card offer on an unpaid order for its customer: applied, the reward the order uses with orders.applyStampReward, with its rowId, its row's name, the itemId and itemName of the line it makes free, expiresOn, the day in the order's venue zone, and its choices, that line first, which a use of it with another line's itemId moves it to; else offers, each ready, unexpired reward of the member's that fits a line of the order, soonest to expire first, isTaken while another unpaid order uses it, with its choices: the lines the cashier may put it on, the first live, priced line of each catalog item among the row's reward items or categories, each with freeCents the reward takes off, paysCents the line still pays, and passName of a pass that line redeems now, which leaves it for the reward. An offer's itemName is the line a use without itemId makes free, the cheapest fitting line no pass covers. offers lists only rewards that have such a line; a reward whose every fitting line a pass covers is listed apart in passOnlyOffers, its itemName its first choice's, and a use of it must name one of its choices with itemId. An offer's itemId is null. One row's rewards fit the same lines. needsCode says whether the organization asks for the guest's WhatsApp code when paying with points or a reward, sent to phone, and isVerified whether the order holds a live verification of its guest, which any of the order's guest codes gives. Once the order took a payment, isLocked is true, no offers are made and applied is the reward its live line keeps, expired since or not, which stays on the order until it is paid. Nothing applied and no offers for an order with no member on it, while the program is not live, its Stamps are off or the stamps flag is off, and while the plan lacks Loyalty under enforcement. Refused with FORBIDDEN as paywallLocked when the caller is an Owner or Manager of a business the merchant Paywall locks: one with no verified subscription that has taken 5 orders while the Paywall's rollout reaches it, an order counting from its first saved line, whether or not it is paid or completed, until it is archived or cancelled before activation. Nothing is read or written; a verified subscription lifts the lock.
Request
- Base URLhttps://app.fortuneos.ai
- Authnone declared
Request body
Response
OK
Changes
- info
added the required property
applied/anyOf[subschema #1]/itemIdto the response with the status - info
added the required property
offers/items/itemIdto the response with the status - info
added the required property
passOnlyOffers/items/itemIdto the response with the status
- info