Read one payment with its attempt and refund timeline
Changed onReturns 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
- Base URLhttps://app.fortuneos.ai
- Authnone declared
Request body
Response
OK
What the payment amounts to now. New values may be added; show an unknown status as-is rather than rejecting it.
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.
What a card payment a real terminal approved allows on its terminal; null for every other payment, whose reversal answers instead.
void while the payment's shift is open and nothing was returned, refund otherwise, null when it can't be taken back.
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.
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.
Changes
- info
added the required property
terminalReversal/anyOf[subschema #1]/inFlight/anyOf[subschema #1]/isSupportNeededto the response with the status - info
added the required property
terminalReversal/anyOf[subschema #1]/operations/items/isSupportNeededto the response with the status
- info
- info
added the required property
ordersto the response with the status
- info