List
client.transactions.list(TransactionListParams { account, reconciliation_status } query?, RequestOptionsoptions?): TransactionListResponse { data }
GET/transactions
Lists all transactions.
Parameters
Returns
List
import Fragment from '@fragment-dev/ts-node';
const client = new Fragment();
const transactions = await client.transactions.list();
console.log(transactions.data);{
"data": [
{
"id": "txn_dHhuX2ZyYWdfMDAx",
"account": {
"id": "ext_account_YWJjMTIz",
"external_id": "acct_external_123"
},
"allocations": [
{
"amount": "1000",
"invoice_id": "inv_abc123",
"type": "invoice_payin",
"user": {
"id": "user_abc123",
"external_id": "user_ext_001"
}
}
],
"amount": "-1000",
"created": "2024-01-13T00:00:00Z",
"currency": "USD",
"external_id": "bank_txn_123",
"posted": "2024-01-13T00:00:00Z",
"tags": [
{
"key": "department",
"value": "engineering"
}
],
"unallocated_amount": "-1000",
"version": 1,
"modified": "2024-01-13T00:00:00Z"
}
]
}Returns Examples
{
"data": [
{
"id": "txn_dHhuX2ZyYWdfMDAx",
"account": {
"id": "ext_account_YWJjMTIz",
"external_id": "acct_external_123"
},
"allocations": [
{
"amount": "1000",
"invoice_id": "inv_abc123",
"type": "invoice_payin",
"user": {
"id": "user_abc123",
"external_id": "user_ext_001"
}
}
],
"amount": "-1000",
"created": "2024-01-13T00:00:00Z",
"currency": "USD",
"external_id": "bank_txn_123",
"posted": "2024-01-13T00:00:00Z",
"tags": [
{
"key": "department",
"value": "engineering"
}
],
"unallocated_amount": "-1000",
"version": 1,
"modified": "2024-01-13T00:00:00Z"
}
]
}