payments

Read one payment with its attempt and refund timeline

Changed on

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.

post/api/public/v1/paymentHistory/get

Request

  • Base URL
    https://app.fortuneos.ai
  • Auth
    none declared

Request body

object required
id, string required

Response

OK

object required
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
paymentAttempt, object 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.

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.

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
refunds, object[] required

Changes

    • info

      added the required property terminalReversal/anyOf[subschema #1]/inFlight/anyOf[subschema #1]/isSupportNeeded to the response with the status

    • info

      added the required property terminalReversal/anyOf[subschema #1]/operations/items/isSupportNeeded to the response with the status

    • info

      added the required property orders to the response with the status