POST /api/public/v1/emenu/createGuestPrepaySession
Opens a checkout that charges the guest's cart before the order is sent, at a venue that takes payment first. The server prices the cart and freezes it on the session; only the confirmed charge creates the order. The guest's own open checkout for exactly the same cart and tip (same guestToken, with time left on its session) is returned first, before every refusal below, opening nothing new. Anything else is a new checkout. It is refused with FORBIDDEN: refusal notAcceptingOrders where the venue takes no prepaid orders (ordering or online payment off, payment not taken first, a browse-only table, or a standing that takes no guest orders), and with FORBIDDEN: refusal featureRestrictedByPlan where the business's plan restricts QR Ordering or QR Payment, or featureNotEntitled where its venue has no plan to decide it. It is refused with NOT_FOUND where the venue has no approved payment connection, with PRECONDITION_FAILED: refusal currencyUnitNotChargeable where the business prices its currency in a unit the provider does not charge, with CONFLICT: refusal paymentInProgress while this guest's earlier prepayment at the table is being charged or an identical one is still being opened, and with CONFLICT: refusal kitchenDeliveryUnavailable when the order its charge would create could reach no kitchen on its own — the venue mints no ticket on a Kitchen Desk its per-location licence lets staff open and some station the cart's items route to has no printer — before any session is opened or charged. A basket holding a pass, or one joining an order that holds a pass, is refused with BAD_REQUEST as passNotOnline: a pass is bought at the till.
Request
- Base URLhttps://app.fortuneos.ai
- Authnone declared
Request body
Response
OK
Changes
No recorded changes to this operation across all 243 revisions of this API.