AlmondTill/G3N API

ApplyTenderInput

input type

Apply-input for applyTender: collectedMinor = the cash physically handed over (before change, tip included) or the externally-authorized amount. cash requires the open till session and refuses the capture block; external_card the exact mirror; foreign_cash names the tendered currency (collectedCurrency — collectedMinor is in ITS minor units), requires the till, is converted at OUR stored BUY rate (settle + change in the org default currency; no covering rate = CONFLICT/NO_EFFECTIVE_RATE, retryable), and carries no tip (a named deferral). Dormant types refuse VALIDATION/UNSUPPORTED naming their arrival.

Fields

FieldTypeRequiredNotes
orderIdID ID!yes
expectedRevisionID ID!yesThe Order revision the caller read.
tenderTypeTenderType TenderType!yesOne of the values of [TenderType](/types/TenderType/).
collectedMinorInt Int!yesThe positive physical/authorized amount in minor units.
collectedCurrencyStringnoThe tendered currency — required iff foreign_cash, refused otherwise. A platform-registry code inside the selling organization's allowed set.
tipMinorIntnoThe tip portion of collectedMinor. Refused on foreign_cash.
tillSessionIdIDnoThe open drawer session — required for cash/foreign_cash, refused otherwise.
externalCardTenderExternalCardInputnoThe pinpad capture — required for external_card, refused otherwise.
cardTenderCardInputnoThe tokenized method presentation — required for card, refused otherwise.
instrumentTenderInstrumentInputnoThe instrument presentation — required for gift_card/gift_certificate/store_credit, refused otherwise. The redeem lane: active-only · type⟺tender · same-currency · ≤ the remaining due (NO change — the no-cash-out strict default) · ≤ the balance (CONFLICT/INSUFFICIENT_BALANCE — exhaust exactly + split-tender the remainder); NO tip; NO tillSessionId (no drawer money).
reasonStringnoOptional — why this tender (at most 256 characters). When the tender charges a house account (on_account) the reason is recorded on that ledger too — at most 256 characters there.
captionStringnoOptional caption override.
refsString [String!]noProvenance document refs (bounded free strings).

Used by