AlmondTill/G3N API

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

FieldTypeRequiredNotes
orderIdID ID!yes
expectedRevisionID ID!yesThe Order revision the caller read.
tenderTypeTenderType TenderType!yescash + the stored-value types are live; card refunds ride the processor path; recorded external-card refunds ride the Return lane.
amountMinorInt Int!yesThe positive magnitude to refund in minor units.
tillSessionIdIDnoThe open drawer session paying out — required for cash, refused otherwise.
instrumentTenderInstrumentInputnoThe 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.
reasonString String!yesRequired — 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.
captionStringno
refsString [String!]no

Used by