---
title: "Read one payment with its attempt and refund timeline"
method: POST
path: "/api/public/v1/paymentHistory/get"
tags: ["payments"]
---

# Read one payment with its attempt and refund timeline

`POST /api/public/v1/paymentHistory/get`

## Request

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

Returns one payment as list shapes it, orders it paid included, with every payment and refund attempt and every refund, oldest first, including outcomes, normalized reasons and provider references, and `reversal`: `void` while a card payment a till took is on its still-open shift and nothing came back, `refund` otherwise, null when it can't be taken back (no standing charge, voided, fully refunded, needs verification, not a till's card payment, or its order holds other payments), and `reversalBlockedBy`: `otherPaymentsOnOrder` when that last case is why `reversal` is null, null otherwise. For a card payment a real terminal approved, `reversal` stays null and `terminalReversal` answers instead: the operation the terminal may perform, why none (`blockedBy`), the TID that must perform it, the operation in flight and every operation reserved of it; it is null for every other payment. Statuses and attempt kinds may gain values; show an unknown one as-is. A payment at an archived venue, or at a venue where the caller lacks payment:read, answers NOT_FOUND, exactly as a missing one does. 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

## Response `200`

OK

- object
  - `id` string, required
  - `organizationId` string, required
  - `locationId` string, required
  - `venueName` string, required
  - `currency` 'AED' | 'USD' | 'MXN' | 'RUB' | 'AMD' | 'OMR' | 'JOD' | 'EUR', required
  - `source` 'myfatoorah' | 'geidea' | 'points' | 'terminal', required
  - `method` 'card' | 'points', required
  - `principalCents` integer, required
  - `tipCents` integer, required
  - `refundedPrincipalCents` integer, required
  - `refundedTipCents` integer, required
  - `status` 'succeeded' | 'partiallyRefunded' | 'refunded' | 'needsVerification' | 'processing' | 'failed' | 'canceled' | 'voided', required: What the payment amounts to now. New values may be added; show an unknown status as-is rather than rejecting it.
  - `failedPaymentAttempts` integer, required
  - `latestOperation` object, nullable, required
    - `kind` 'payment' | 'refund' | 'void', required: Whether the attempt took money, gave it back or voided a charge. New values may be added; show an unknown kind as-is rather than rejecting it.
    - `method` 'card' | 'points', required
    - `cardBrand` string, nullable, required
    - `cardLast4` string, nullable, required
    - `rrn` string, nullable, required
    - `authCode` string, nullable, required
    - `terminalId` string, nullable, required
  - `paymentAttempt` object, nullable, required
    - `method` 'card' | 'points', required
    - `cardBrand` string, nullable, required
    - `cardLast4` string, nullable, required
    - `rrn` string, nullable, required
    - `authCode` string, nullable, required
    - `terminalId` string, nullable, required
  - `isFixture` boolean, required
  - `startedAt` string, date-time, required
  - `lastUpdatedAt` string, date-time, required
  - `orders` object[], required: The orders the payment paid, by orderNumber with orders without one last, by id. Empty when no succeeded payment attempt landed on an order: a declined, canceled or unanswered attempt, a charge no order took, or pre-generated seed and demo-sample history with no order payment. A till's simulated card approval is a fixture and still names its order. Name an order by orderNumber, else fortisSaleNumber, else by its status.
    - `id` string, required
    - `orderNumber` integer, nullable, required
    - `fortisSaleNumber` string, nullable, required
    - `status` 'new' | 'in_progress' | 'done' | 'cancelled', required
  - `terminalReversal` object, nullable, required: What a card payment a real terminal approved allows on its terminal; null for every other payment, whose reversal answers instead.
    - `operation` 'void' | 'refund', nullable, required: The operation the terminal may perform now: void while the order's shift is open and nothing came back (and the SDK did not refuse a void for its window), refund otherwise, null when none may begin.
    - `blockedBy` 'reversalInFlight' | 'otherPaymentsOnOrder' | 'orderNotPaid' | 'saleReferencesMissing' | 'notCardPayment' | 'refundAlreadyApproved' | 'reversalConflict', nullable, required: Why operation is null: reversalInFlight, reversalConflict, refundAlreadyApproved, otherPaymentsOnOrder, orderNotPaid, notCardPayment or saleReferencesMissing; null when operation is set or nothing is left to take back. May gain values; show an unknown one as no reason.
    - `refundReason` 'partlyRefunded' | 'voidWindowExpired' | 'voidDeclined' | 'shiftClosed', nullable, required: Why operation is a refund rather than a void: partlyRefunded once part came back, voidWindowExpired once the SDK refused a void for its window, voidDeclined once the bank declined a void, shiftClosed otherwise. Null unless operation is refund. May gain values; show an unknown one as shiftClosed.
    - `isRefundInsteadAllowed` boolean, required: Whether a refund may begin in place of the void operation names, as after the bank declined a void; false whenever operation is not void.
    - `terminalId` string, nullable, required: The terminal that took the sale and must perform it.
    - `inFlight` object, nullable, required: The operation pending or unresolved now, null when none is.
      - `operationId` string, required
      - `kind` 'void' | 'refund', required
      - `state` 'pending' | 'unresolved' | 'approved' | 'declined' | 'notPerformed', required: May gain values; show an unknown one as it is.
      - `isSupportNeeded` boolean, required: Whether the unresolved operation waits on support rather than on the terminal: the terminal no longer knew it although its request left, or its reversal was refused or could not be sent. It must not be repeated.
    - `operations` object[], required: Every operation reserved of the payment, oldest first.
      - `operationId` string, required
      - `kind` 'void' | 'refund', required
      - `state` 'pending' | 'unresolved' | 'approved' | 'declined' | 'notPerformed', required: May gain values; show an unknown one as it is.
      - `isSupportNeeded` boolean, required: Whether the unresolved operation waits on support rather than on the terminal: the terminal no longer knew it although its request left, or its reversal was refused or could not be sent. It must not be repeated.
  - `reversal` 'void' | 'refund', nullable, required: void while the payment's shift is open and nothing was returned, refund otherwise, null when it can't be taken back.
  - `refundReason` 'partlyRefunded' | 'shiftClosed', nullable, required: Why reversal is a refund rather than a void: partlyRefunded once part of the payment came back, shiftClosed otherwise. Null unless reversal is refund. May gain values; show an unknown one as shiftClosed.
  - `reversalBlockedBy` 'otherPaymentsOnOrder', nullable, required: Why reversal is null for a payment the till could otherwise take back: otherPaymentsOnOrder while its order holds other payments to refund. Null when reversal is set or the payment can't be taken back on the till at all. May gain values; show an unknown one as no reason.
  - `attempts` object[], required
    - `id` string, required
    - `kind` 'payment' | 'refund' | 'void', required: Whether the attempt took money, gave it back or voided a charge. New values may be added; show an unknown kind as-is rather than rejecting it.
    - `refundId` string, nullable, required
    - `outcome` 'pending' | 'succeeded' | 'declined' | 'canceled' | 'technicalFailure' | 'unresolved', required
    - `amountCents` integer, required
    - `tipCents` integer, required
    - `method` 'card' | 'points', required
    - `cardBrand` string, nullable, required
    - `cardLast4` string, nullable, required
    - `rrn` string, nullable, required
    - `authCode` string, nullable, required
    - `terminalId` string, nullable, required
    - `merchantId` string, nullable, required
    - `stan` string, nullable, required
    - `batchNumber` integer, nullable, required
    - `providerPaymentId` string, nullable, required
    - `providerInvoiceId` string, nullable, required
    - `providerErrorCode` string, nullable, required
    - `providerErrorMessage` string, nullable, required
    - `reason` 'unknown' | 'noProviderAnswer' | 'sessionExpired' | 'insufficientBalance' | 'confirmedNotCharged', nullable, required
    - `isUnapplied` boolean, required
    - `resolvedAt` string, date-time, nullable, required
    - `createdAt` string, date-time, required
  - `refunds` object[], required
    - `id` string, required
    - `status` 'requested' | 'pending' | 'succeeded' | 'failed' | 'canceled' | 'unresolved', required
    - `requestedPrincipalCents` integer, required
    - `requestedTipCents` integer, required
    - `returnedPrincipalCents` integer, required
    - `returnedTipCents` integer, required
    - `providerRefundId` string, nullable, required
    - `providerErrorMessage` string, nullable, required
    - `reason` 'unknown' | 'noProviderAnswer' | 'sessionExpired' | 'insufficientBalance' | 'confirmedNotCharged', nullable, required
    - `resolvedAt` string, date-time, nullable, required
    - `createdAt` string, date-time, required

## Changes

- **2026-12-03** `522f3cea550d`: 2 info
  - added the required property `terminalReversal/anyOf[subschema #1]/inFlight/anyOf[subschema #1]/isSupportNeeded` to the response with the `200` status
  - added the required property `terminalReversal/anyOf[subschema #1]/operations/items/isSupportNeeded` to the response with the `200` status
- **2026-12-01** `f00594b58b47`: 1 info
  - added the required property `orders` to the response with the `200` status
- **2026-11-27** `c87603975fc8`: 2 info
  - added the required property `terminalReversal/anyOf[subschema #1]/isRefundInsteadAllowed` to the response with the `200` status
  - added the required property `terminalReversal/anyOf[subschema #1]/refundReason` to the response with the `200` status
- **2026-11-26** `bf4929817ed8`: 1 info
  - added the required property `terminalReversal` to the response with the `200` status
- **2026-11-26** `b770c4b99ed8`: 1 info
  - removed the `voidDeclined` enum value from the `refundReason/anyOf[subschema #1]/` response property for the response status `200`

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