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

  • Card label reported for the payment, such as Credit or Debit. Wording differs by processor, so treat it as display text.

  • 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

  • How the card was read, for example contactlessIcc for a contactless tap. Treat it as a label; new values can be added.

  • Merchant ID assigned by the payment processor.

  • 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
  • Settlement batch that contains this transaction, when one has been assigned.

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

  • Device family that captured the transaction.

    values
    iphoneipadandroid_phoneandroid_tabletother
  • 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

  • Your own key and value pairs attached to this transaction event.

    Properties: 1
  • Owner account recorded for the transaction, usually the parent PSP or partner.

  • Ancestors of the merchant account, nearest parent first.

  • Name of the payment processor that handled the transaction.

  • 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. See the Payment Lifecycle guide for what each value means.

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

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

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

  • How the tip was entered.

  • Operation that created this transaction event.

    values
    saleauthcapturerefundreversetip_adjustincremental_authmanually_keyed_sale