Record a refund of an order
Changed onRecords money already returned to the guest outside this app (cash, card terminal, a till's own tenders); no payment provider is called, and imported orders are refused for Fortis to record. A guest's online payment through a payment provider is never recorded here: it is refunded through payments.refundProviderPayment. Refused with BAD_REQUEST and refusal refundThroughMyFatoorah when such a payment still has money to refund and the request names no amount, asks for more than the order's other payments hold, or sends an expectedRemainingCents that counts that payment. Each refunded payment's tip goes back with it, in the share of that payment refunded, posted as negative tip rows; the refunds that empty a payment return exactly the tip paid on it. An order that sold or renewed a guest's pass is refunded only whole, within 14 days of the sale and while the pass is unused; anything else is refused with BAD_REQUEST and refusal passRefundPartial, passRefundLate or passRefundUsed before any money moves, and an allowed refund voids the pass or takes the renewal back. A whole refund, or one whose lineIds name the line a pass redeemed, gives that use back, even at no money. Refused with CONFLICT when expectedRemainingCents no longer matches what the order has left to refund, as when another till recorded a refund first, so the balance is reviewed before another refund. Refused with CONFLICT reversalInFlight while a terminal's void or refund of one of the order's card payments is pending or unresolved; a refund already recorded under the same idempotencyKey still answers as before. Needs order:refund. 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 new
geideaenum value to the request propertypaymentType/anyOf[subschema #1]
- info