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 (e.g., 'VISA', 'MASTERCARD', 'AMEX')
- cardType: string
_type requiredType of card used ('Credit' or 'Debit')
- 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 requiredPayment method used (e.g., 'apple_pay', 'credit_card')
- processorType: string
_mid requiredMerchant ID assigned by the payment processor (e.g., PayRoc)
- 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 - deviceType: string | null
_id Physical device identifier (e.g., iPad serial number)
- deviceType: string | null
_type Device family that captured the transaction.
- 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
- Properties: 1metadataType: Metadatanullable
- ownerType: string | null
_id - parentType: array of stringnullable
_account _ids - processorType: string | null
Payment processor name (e.g., 'payroc', 'stripe')
- 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: string | null
Current transaction status
- statusType: stringnullable
_reason Reason for the current transaction status
- 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: stringnullable
_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.
- 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: stringnullable
_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.
- 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: stringnullable
_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: stringnullable
_type Type of tip calculation method
- transactionType: string | null
_type Type of transaction operation

