RefundTenderInput
input type
Refund-input for refundTender: a positive magnitude (the port stamps the negative sign); cap = the net tendered (CONFLICT/OVER_TENDERED); cash is live; the stored-value types joined.
Fields
| Field | Type | Required | Notes |
|---|---|---|---|
orderId | ID ID! | yes | |
expectedRevision | ID ID! | yes | The Order revision the caller read. |
tenderType | TenderType TenderType! | yes | cash + the stored-value types are live; card refunds ride the processor path; recorded external-card refunds ride the Return lane. |
amountMinor | Int Int! | yes | The positive magnitude to refund in minor units. |
tillSessionId | ID | no | The open drawer session paying out — required for cash, refused otherwise. |
instrument | TenderInstrumentInput | no | The explicit instrument refund target — required for stored-value types, refused otherwise: a refund_reversal credits it in ONE transaction; a depleted target re-opens; doomed/inactive refuse CONFLICT/REF_STATE. |
reason | String String! | yes | Required — money leaves the business (at most 256 characters). When the refund credits a house account (on_account) the reason is recorded on that ledger too — at most 256 characters there. |
caption | String | no | |
refs | String [String!] | no |