Transaction

What it is

A transaction is a payment operation performed within or for a Sale. It captures operational payment details such as intent, status, processor details, amount, terminal details, card details, and settlement information.

Why it exists

It exists to represent the actual payment actions and outcomes. This separates business intent, the sale, from execution details such as specific error codes.

How it relates to other concepts

A transaction can reference a sale through saleId. It may also reference a Store, terminal, authorization, settlement, and payment service. A single sale can have multiple transactions. Webhooks can subscribe to transaction-related events.