Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Listing transactions

GET /api/public/v1/transactions

Returns the transaction history across all of your company's accounts — master accounts and subaccounts, in every currency — in a single list. Use it to reconcile balances or build a statement without querying each account separately. To list transactions for one account, use Listing account transactions.

Each entry is one balance movement on one account. Results are paginated, can be filtered by creation date, and are returned newest first by default.

cURL

curl -G "https://api.sandbox.txn.io/api/public/v1/transactions" \
     -H 'Content-Type: application/vnd.api+json' \
     -H 'Authorization: Bearer <api_key>' \
     --data-urlencode 'created_at_from=2026-10-01T00:00:00Z' \
     --data-urlencode 'created_at_to=2026-11-01T00:00:00Z' \
     --data-urlencode 'per_page=100' \
     --data-urlencode 'page=1'

Headers

Name
Value

Content-Type

application/vnd.api+json

Authorization

Bearer <api_key>

URL Parameters

Name
Type
Description

page

number

Page to return. Defaults to 1.

per_page

number

Number of transactions per page. Defaults to 50, maximum 100. Larger values are capped at 100.

order

string

Field to sort by. Can be either created_at (default) or updated_at. Sort by updated_at to pick up transactions whose status changed recently.

order_type

string

Sort direction. Can be either asc or desc (default).

created_at_from

string

Returns transactions created at or after this time (inclusive). ISO 8601 timestamp with time and time zone, e.g. 2026-10-01T00:00:00Z.

created_at_to

string

Returns transactions created before this time (exclusive). ISO 8601 timestamp with time and time zone, e.g. 2026-11-01T00:00:00Z.

New transactions are added to the top of the list while you page through it, which shifts later pages and can repeat an entry. To export a fixed set, set created_at_to to the time you start and send the same value with every page.

Response Body

Name
Type
Description

data[].id

string

Transaction ID.

data[].type

string

Entity type returned. Always transactions.

data[].attributes

object

Set of transaction attributes.

data[].attributes.createdAt

string

Transaction creation timestamp in UTC. Refer to the Date and time format page.

data[].attributes.simplifiedState

string

Transaction status. See Transaction statuses.

data[].attributes.transactionType

string

What caused the balance movement. See Transaction types.

data[].attributes.amount

string

Amount credited to or debited from the account, in currency. Negative for debits.

data[].attributes.currency

string

Currency code of the transaction. Matches the account currency.

data[].attributes.balance

string

Account balance immediately after Txn processed this transaction.

data[].attributes.reference

string

Reference associated with the transaction, such as the reference you set on a payout or invoice. null when there is none.

data[].attributes.accountId

string

ID of the account the transaction belongs to. Same value as data[].relationships.account.id.

data[].relationships.account.type

string

Entity type of the related account. Always accounts.

data[].relationships.account.id

string

ID of the account the transaction belongs to. The account is returned in included[].

data[].relationships.author.type

string

Entity type of the author. Always apiKeys.

data[].relationships.author.id

string

ID of the API key that initiated the transaction. The API key is returned in included[]. data is null for transactions not initiated with an API key, such as incoming deposits and actions taken in the dashboard.

data[].relationships.transactionDetails

object

Type-specific transaction record. Not expanded by this endpoint (meta.included is false).

included[].type(accounts).attributes

object

The account the transaction belongs to, including currencyCode, label, master (false for subaccounts), balance, and currencyType. See Reading account for the full attribute list.

included[].type(apiKeys).attributes.name

string

Name of the API key, as set when it was created.

included[].type(apiKeys).attributes.createdAt

string

Timestamp when the API key was created.

meta.page

number

Current page number.

meta.per_page

number

Page size used for the response.

meta.total

number

Total number of transactions matching the query.

Response

An unsupported order_type returns the same error with code order_type_invalid and the detail order_type must be one of: asc, desc.

Transaction types

transactionType tells you what caused the balance movement.

Type
Description

InvoiceTransaction

Payment received for an invoice or payment link.

ChannelTransaction

Deposit received on a channel.

CoinTransaction

Crypto deposit received on an account address. Also records a payment to an invoice's address after the invoice was closed (completed, cancelled or rejected), when your account credits such payments. These carry the invoice's reference; see Payments to closed invoices.

Payout

Payout sent from the account. Debits the account.

ExchangeTransaction

One side of an exchange: the debit from the source account or the credit to the target account.

AccountTransaction

BankDepositTransaction

Fiat deposit received by bank transfer.

BankWithdrawalTransaction

Fiat withdrawal to your bank account.

ManualTransaction

Balance adjustment made by Txn.

An exchange or a transfer between your accounts touches two accounts, so it appears as two transactions in this list: a negative amount on the account debited and a positive amount on the account credited.

Transaction statuses

simplifiedState is the status of the ledger entry. The same values are used on every endpoint that returns transactions.

Status
Meaning

pending

Created and not yet final. A pending payout or bank withdrawal has already reserved its amount. A pending deposit has not been credited yet.

on_hold

Held for compliance review. Moves to completed if released, or to rejected.

travel_rule_waiting

Crypto deposit confirmed on-chain and waiting for Travel Rule information about the sender before it is credited. Only occurs on direct deposits when Travel Rule checks are enabled for your account.

completed

Final. The amount has been credited to or debited from the account.

processed

Crypto deposit confirmed and handled through the invoice it was sent to. The deposit itself does not change the account balance.

cancelled

Final. The transaction did not go through: the invoice expired, the payout or withdrawal was cancelled, or the deposit was never confirmed. No balance change.

rejected

Final. Rejected after compliance review. A rejected deposit is not credited — see Invoice refunds for how the funds are handled.

send_failed

The bank transfer for a withdrawal could not be sent. Txn retries the transfer or cancels the withdrawal.

Which statuses a transaction can have depends on its type:

Type
Possible statuses

InvoiceTransaction

pending, on_hold, completed, cancelled, rejected

ChannelTransaction

pending, on_hold, completed, rejected

CoinTransaction

pending, on_hold, travel_rule_waiting, completed, processed, cancelled, rejected

Payout

pending, completed, cancelled

BankDepositTransaction

pending, on_hold, completed, cancelled

BankWithdrawalTransaction

pending, send_failed, completed, cancelled

ExchangeTransaction, AccountTransaction, ManualTransaction

completed

balance is the account balance after the entry. It counts completed entries and pending debits: a payout or bank withdrawal reserves its amount as soon as it is created, so it lowers balance while still pending, whereas a pending deposit does not raise it until it completes. Entries in any other status leave the balance unchanged.

Last updated