Transaction
Transaction event and its lifecycle history. Amounts are integer minor currency units. metadata belongs to this event; retain event_id for outcome recovery.
- accountType: string
_id requiredAccount ID of the merchant that owns this transaction
- appleType: string
_transaction _id requiredApple Pay transaction identifier
- cardType: stringrequired
Masked card number (e.g., '****1234')
- cardType: string
_brand requiredCard brand label reported for the payment, such as Visa or Mastercard. Casing and wording differ by processor, so treat it as display text and do not match on exact values.
- cardType: string
_type requiredCard label reported for the payment, such as Credit or Debit. Wording differs by processor, so treat it as display text.
- createdType: integer
_at requiredTransaction creation timestamp in milliseconds since epoch
- currencyType: stringrequired
ISO 4217 currency code (e.g., 'USD', 'EUR')
- eventType: string
_id requiredUnique identifier for this specific transaction event (for idempotency)
- midType: stringrequired
Merchant ID assigned by Koard
- paymentType: string
_method requiredHow the card was read, for example contactlessIcc for a contactless tap. Treat it as a label; new values can be added.
- processorType: string
_mid requiredMerchant ID assigned by the payment processor.
- processorType: string
_tid requiredTerminal ID assigned by the payment processor
- readerType: string
_identifier requiredUnique identifier for the card reader device
- subtotalType: integerrequired
Subtotal amount in cents (before tax, tip, and surcharge)
- tidType: stringrequired
Terminal ID assigned by Koard
- totalType: integer
_amount requiredTotal transaction amount in cents (subtotal + tax + tip + surcharge)
- transactionType: string
_id requiredUnique identifier for the transaction across all events
- additionalType: Additional Detailsnullable
_details Properties: 1Additional transaction details as key-value pairs
- batchType: string | null
_id Settlement batch that contains this transaction, when one has been assigned.
- deviceType: string | null
_id Physical device identifier (e.g., iPad serial number)
- deviceType: stringenumnullable
_type Device family that captured the transaction.
valuesiphoneipadandroid_phoneandroid_tabletother - gatewayType: string | null
Payment gateway used for processing
- gatewayType: string | null
_transaction _id Transaction ID returned by the payment gateway
- gatewayType: Gateway Transaction Responsenullable
_transaction _response Properties: 1Raw response from the payment gateway
- historyType: array of objectnullableProperties: 1
Historical events for this transaction
- locationType: string | null
_id Location/store ID where transaction occurred
- merchantType: string | null
_name Name of the merchant for this transaction
- metadataType: MetadatanullableProperties: 1
Your own key and value pairs attached to this transaction event.
- ownerType: string | null
_id Owner account recorded for the transaction, usually the parent PSP or partner.
- parentType: array of stringnullable
_account _ids Ancestors of the merchant account, nearest parent first.
- processorType: string | null
Name of the payment processor that handled the transaction.
- processorType: string | null
_response _code Response code from the payment processor
- processorType: string | null
_response _message Response message from the payment processor
- pspType: string | null
Payment service provider that owns the processing relationship.
- refundedType: integernullable
Total amount refunded in cents
- reversedType: integernullable
Total amount reversed in cents
- statusType: stringenumnullable
Current transaction status. See the Payment Lifecycle guide for what each value means.
valuespendingauthorizedcapturedsettleddeclinedrefundedreversedcancelederrorsurcharge_pending - statusType: stringenumnullable
_reason Why the transaction has its current status.
values- approved
- declined
- surcharge
_expired - surcharge
_pending - surcharge
_declined _by _payer - merchant
_blocked - merchant
_not _found - unauthorized
_terminal
- surchargeType: integernullable
_amount Surcharge amount in cents
- surchargeType: boolean
_applied Whether a surcharge was applied to this transaction
- surchargeType: stringnullable
_basis Amount used to calculate percentage-based surcharges. Use the first non-null value from location, then terminal, then account. Defaults to total when all levels are null.
- surchargeType: boolean | null
_confirmation _required Whether the cardholder must confirm the surcharge before the sale proceeds. Use the first non-null value from location, then terminal, then account. Defaults to no confirmation when all levels are null.
- surchargeType: numbernullable
_rate Surcharge rate as a decimal (e.g., 0.035 = 3.5%)
- surchargeType: stringenumnullable
_source Which level of the cascade supplied the resolved surcharge rate and basis: the caller's own breakdown, or the location, terminal, or account default.
valuestransactionlocationterminalaccount - taxType: integernullable
_amount Tax amount in cents
- taxType: stringnullable
_basis Amount used to calculate percentage-based tax. Use the first non-null value from location, then terminal, then account. Defaults to total (subtotal plus tip) when all levels are null. Use subtotal to exclude the tip.
- taxType: integernullable
_rate Tax rate in basis points; 850 means 8.5%.
- taxType: stringenumnullable
_source Which level of the cascade supplied the resolved tax rate and basis: the caller's own breakdown, or the location, terminal, or account default.
valuestransactionlocationterminalaccount - terminalType: Terminal Detailsnullable
_details Properties: 1Snapshot of the terminal configuration in force when the transaction was taken.
- tipType: integernullable
_amount Tip amount in cents
- tipType: "tip_at_sale" or "tip_adjust"enumnullable
_capture _mode When the tip was attached:
tip_at_saleif recorded on the original sale,tip_adjustif added later by a tip adjustment. Tips added viatip_adjustare never included in the surcharge calculation. - tipType: "fixed" or "percentage"enumnullable
_type How the tip was entered.
- transactionType: stringenumnullable
_type Operation that created this transaction event.
valuessaleauthcapturerefundreversetip_adjustincremental_authmanually_keyed_sale

