Reserve a void or refund of a live terminal card payment
Changed onReserves 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
- Base URLhttps://app.fortuneos.ai
- Authnone declared
Request body
Response
OK
Changes
- info
added the new optional request property
integrationModel - info
added the new optional request property
paymentPartner - info
added the new optional request property
terminalModel
1 more change in this revision
- info