Reserve a guest's share of a table bill and open its checkout
Changed onReserves the requested share (full, equal, items or custom) against one of the table's live bills and opens a checkout for it with the venue's online payment provider. billId names the bill (its oldest order's id, as tableBill.bills lists it); without it the oldest bill is taken, and a bill the table no longer has is refused as shareChanged. A share held against a bill fixes its orders, so an order activated afterwards bills apart. The first share held for a bill, paid or still being paid, fixes the mode for the rest of that bill (refusal splitModeMismatch otherwise), and for equal also the way-count: any other ways value is refused as splitWaysMismatch, even after earlier shares were paid, so a paid split's remainder is never re-split. A slot already held is refused as equalSlotClaimed. The till's own split parts count as held shares too and fix the mode as a guest's share does: a By items part on any order of the open party holds its lines (refusal itemAlreadyClaimed for a line it took), and a Split equally part holds its slot while the party is that one order; with several open orders at the table an equal part divides only its own order and is not counted. An optional tip (a venue QR preset by its key, or a custom amount in cents) is priced on the reserved share and charged with it, never inside it; it is refused as tipsOff where the venue's QR tips are off and tipChanged for a preset the venue no longer offers, and a changed tip opens a new session. A new checkout is refused with NOT_FOUND where the venue's online payment is off or has no approved connection, and with FORBIDDEN: refusal featureRestrictedByPlan where the business's plan restricts QR Payment, or featureNotEntitled where its venue has no plan to decide it. A new checkout is also refused with PRECONDITION_FAILED: refusal currencyUnitNotChargeable where the business prices its currency in a unit the provider does not charge, before the provider is asked anything. The guest's own open checkout for exactly the same share, tip and bill, with time left on its session, is returned before either refusal, opening nothing new; a refused request leaves that checkout as it was. Any request is refused with CONFLICT: refusal paymentInProgress while this guest's earlier attempt at the table is being charged or authenticated, or is still being opened at the provider (pending, within the attempt hold); it is never superseded meanwhile. An order holding a pass without a guest attached is refused with BAD_REQUEST as passNeedsGuest before any money is taken. While the organization asks for the guest's WhatsApp code when selling a pass, an order holding a pass whose customer has not verified it with customers.verifyPassSaleCode is refused with FORBIDDEN as passCodeRequired before any money is taken. An unpaid order whose pass discount no longer holds (the pass's allowance was used on another order, or the pass ended, was voided or is not on sale at this Location) is refused with CONFLICT as passRedemptionChanged before any money is taken, and the order is repriced without it: read the order again for the new total. While the organization asks for the guest's WhatsApp code when redeeming a pass, an unpaid order with a line a pass redeems whose customer has not verified it (with customers.verifyPassRedemptionCode, or any other code that verifies the order's guest) is refused with FORBIDDEN as passRedemptionCodeRequired before any money is taken. An unpaid order whose stamp reward no longer holds (it expired, was revoked, or its line changed) is refused with CONFLICT as stampRewardChanged before any money is taken, and the order is repriced without it: read the order again for the new total. While the organization asks for the guest's WhatsApp code when paying with points or a reward, an unpaid order with a line a stamp reward makes free whose customer has not verified it (with any code that verifies the order's guest) is refused with FORBIDDEN as stampRewardCodeRequired before any money is taken.
Request
- Base URLhttps://app.fortuneos.ai
- Authnone declared
Request body
Response
OK
Changes
- breaking
removed
subschema #1subschema #2subschema #3subschema #4from the request bodyanyOflist - info
added
subschema #1subschema #2subschema #3subschema #4to the request bodyanyOflist
- breaking