POST /api/public/v1/payments/setTip

Changed on

Sets a paid order's tip after payment; zero removes it. tipCents is the order's whole tip: the difference is posted as signed tip rows shared over the tenders not wholly refunded that were tipped — a cut in proportion to their tips now, never taking one below zero; a raise in proportion to what each was tipped — so lowering and restoring a tip puts each tender back where it was. receiptMethod (card or cash) records how the guest left the whole tip, whatever paid the order: the tip already standing moves onto that method first, so a method alone is a change too. What no such tender can take lands on the latest tender not wholly refunded. The response names the tender the change was posted on, the newest when it is shared over several. Refused with BAD_REQUEST tipWindowClosed once the order's shift has closed or for an order with no shift, tipsOff where the venue's POS tips are off, orderCancelled for a cancelled order, orderNotPaid before the order is fully paid, noStandingPayment when every tender was refunded, and qrTipped for an order a guest tipped through the QR menu, since that tip rode their MyFatoorah charge. Changing a tip already set, or any tip on a done order, needs order:adjustTip. 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 URL
    https://app.fortuneos.ai
  • Auth
    none declared

Request body

object required
orderId, string required
tipCents, integer required
receiptMethod, 'card' | 'cash'

Response

OK

object required
paymentId, string required
tipCents, integer required

Changes