---
title: "Reserve a void or refund of a live terminal card payment"
method: POST
path: "/api/public/v1/payments/beginTerminalReversal"
---

# Reserve a void or refund of a live terminal card payment

`POST /api/public/v1/payments/beginTerminalReversal`

## Request

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

Reserves one void or refund of a card payment a real terminal approved, named by its Payments id, under the till's own `operationId`, before the till starts it on the terminal, and answers what the terminal needs: the amount with the card-paid tip (the whole charge for a void, what is left on the card for a refund, frozen from what the card was charged), the ISO 4217 numeric currency, the TID that must perform it and the sale's RRN and auth code. No purchase time is answered, so the terminal runs a refund directly and never tries a void first. A void is allowed while the order's shift is open and nothing came back; a refund otherwise, and also after the bank declined a void or the SDK refused one with `CancelWindowExpired`. The same `operationId` and `kind` again answers the stored reservation and its state with `isReplay`; the same id for another payment or kind, or an id a terminal sale attempt already names, is refused with CONFLICT `operationIdTaken`. Refused with PRECONDITION_FAILED `terminalPaymentsOff` before anything is read unless the `payments-sdk` flag is on; NOT_FOUND for a simulated or missing payment or one the caller may not refund; CONFLICT `reversalInFlight` while another operation of the payment is pending or unresolved, `reversalConflict` after an approval followed a decline, `refundAlreadyApproved` after the host answered `94`, `reversalIsVoid` or `reversalIsRefund` for the other operation, `nothingToReverse` for a payment with no standing charge, `otherPaymentsOnOrder` when its order holds other payments, `orderNotPaid` when its order is not paid in full, `notCardPayment` when its order payment no longer reads card and `saleReferencesMissing` when the sale has no TID, RRN or auth code; the pass-refund rules and, after the order's shift closed, the closed-shift gate of payments.refund. A reservation that cannot be written fails the call. 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
  - `paymentId` string, required
  - `operationId` string, uuid, required
  - `kind` 'void' | 'refund', required
  - `terminalProfileId` string
  - `integrationModel` 'D2H' | 'H2H' | 'App2App'
  - `paymentPartner` 'VaultsPay'
  - `terminalModel` string, nullable

## Response `200`

OK

- object
  - `operationId` string, required
  - `kind` 'void' | 'refund', required
  - `state` 'pending' | 'unresolved' | 'approved' | 'declined' | 'notPerformed', required
  - `isReplay` boolean, required
  - `amount` integer, required
  - `tipCents` integer, required
  - `currency` integer, required
  - `terminalId` string, required
  - `referenceRetrievalNumber` string, required
  - `authorizationCode` string, required

## Changes

- **2026-12-02** `5208ffcc0c06`: 4 info
  - added the new optional request property `integrationModel`
  - added the new optional request property `paymentPartner`
  - added the new optional request property `terminalModel`
  - added the new optional request property `terminalProfileId`
- **2026-11-26** `bf4929817ed8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/fortis/apis/fortune-os-api/changes/api/public/v1/payments/beginTerminalReversal/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)
