Transaction

Transaction event and its lifecycle history. Amounts are integer minor currency units. metadata belongs to this event; retain event_id for outcome recovery.

  • Account ID of the merchant that owns this transaction

  • Apple Pay transaction identifier

  • Masked card number (e.g., '****1234')

  • Card brand (e.g., 'VISA', 'MASTERCARD', 'AMEX')

  • Type of card used ('Credit' or 'Debit')

  • Transaction creation timestamp in milliseconds since epoch

  • ISO 4217 currency code (e.g., 'USD', 'EUR')

  • Unique identifier for this specific transaction event (for idempotency)

  • Merchant ID assigned by Koard

  • Payment method used (e.g., 'apple_pay', 'credit_card')

  • Merchant ID assigned by the payment processor (e.g., PayRoc)

  • Terminal ID assigned by the payment processor

  • Unique identifier for the card reader device

  • Subtotal amount in cents (before tax, tip, and surcharge)

  • Terminal ID assigned by Koard

  • Total transaction amount in cents (subtotal + tax + tip + surcharge)

  • Unique identifier for the transaction across all events

  • Additional transaction details as key-value pairs

    Properties: 1
  • Physical device identifier (e.g., iPad serial number)

  • Device family that captured the transaction.

  • Payment gateway used for processing

  • Transaction ID returned by the payment gateway

  • Raw response from the payment gateway

    Properties: 1
  • Historical events for this transaction

    Properties: 1
  • Location/store ID where transaction occurred

  • Name of the merchant for this transaction

  • Properties: 1
  • Payment processor name (e.g., 'payroc', 'stripe')

  • Response code from the payment processor

  • Response message from the payment processor

  • Payment service provider that owns the processing relationship.

  • Total amount refunded in cents

  • Total amount reversed in cents

  • Current transaction status

  • Reason for the current transaction status

  • Surcharge amount in cents

  • Whether a surcharge was applied to this transaction

  • 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.

  • 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.

  • Surcharge rate as a decimal (e.g., 0.035 = 3.5%)

  • Which level of the cascade supplied the resolved surcharge rate and basis: the caller's own breakdown, or the location, terminal, or account default.

  • Tax amount in cents

  • 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.

  • Tax rate in basis points; 850 means 8.5%.

  • Which level of the cascade supplied the resolved tax rate and basis: the caller's own breakdown, or the location, terminal, or account default.

  • Snapshot of the terminal configuration in force when the transaction was taken.

    Properties: 1
  • Tip amount in cents

  • When the tip was attached: tip_at_sale if recorded on the original sale, tip_adjust if added later by a tip adjustment. Tips added via tip_adjust are never included in the surcharge calculation.

  • Type of tip calculation method

  • Type of transaction operation