---
title: "Record a refund of an order"
method: POST
path: "/api/public/v1/payments/refund"
---

# Record a refund of an order

`POST /api/public/v1/payments/refund`

## Request

- Base URL: `https://app.fortuneos.ai`
- URL: `https://app.fortuneos.ai/api/public/v1/payments/refund`
- Auth: none declared

Records 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 body

- object
  - `id` string, required
  - `amountCents` integer
  - `paymentType` 'cash' | 'card' | 'voucher' | 'gift_card' | 'staff' | 'bank_transfer' | 'payment_link' | 'zomato_pay' | 'careem_pay' | 'myfatoorah' | 'geidea'
  - `lineIds` string[]
  - `reason` string
  - `idempotencyKey` string
  - `expectedRemainingCents` integer

## Response `200`

OK

- unknown

## Changes

- **2026-11-16** `80ac0ad5527d`: 1 info
  - added the new `geidea` enum value to the request property `paymentType/anyOf[subschema #1]/`

[Operation history](https://skmtc.dev/fortis/apis/fortune-os-api/changes/api/public/v1/payments/refund/post.md)

---

[API](https://skmtc.dev/fortis/apis/fortune-os-api.md) - [All operations](https://skmtc.dev/fortis/apis/fortune-os-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fortis/apis/fortune-os-api/revisions/522f3cea550d?raw)
