ALSORNDocs

List Transactions

List transactions with filtering, sorting, and pagination. Supports filtering by agent, status, action type, amount range, and date range.

GET/transactions

List transactions with filtering, sorting, and pagination.

Requires API key authentication

Query Parameters

ParameterTypeRequiredDescription
agent_idstringoptionalFilter by agent ID.
statusstringoptionalFilter by status: completed, reversed, failed.
action_typestringoptionalFilter by action type.
min_amountnumberoptionalMinimum transaction amount.
max_amountnumberoptionalMaximum transaction amount.
start_datestringoptionalISO 8601 start date for filtering.
end_datestringoptionalISO 8601 end date for filtering.
pagenumberoptionalPage number. Default: 1.
limitnumberoptionalItems per page. Default: 20.

Response Example

Response
{  "transactions": [    {      "id": "tx_r8s9t0u1",      "agent_id": "agent_7f3k9x2m",      "agent_name": "Trading Agent Alpha",      "counterparty_id": "agent_p2q3r4s5",      "amount": 2500.00,      "currency": "USD",      "action_type": "execute_trades",      "status": "completed",      "permissions_checked": true,      "audit_hash": "sha256:tx_hash_abc...",      "notes": null,      "created_at": "2025-01-15T14:30:00Z"    },    {      "id": "tx_b2c3d4e5",      "agent_id": "agent_7f3k9x2m",      "agent_name": "Trading Agent Alpha",      "counterparty_id": "agent_x4y5z6a7",      "amount": 150.00,      "currency": "USD",      "action_type": "data_purchase",      "status": "completed",      "permissions_checked": true,      "audit_hash": "sha256:tx_hash_def...",      "notes": "Monthly data subscription",      "created_at": "2025-01-14T09:00:00Z"    }  ],  "total": 42,  "page": 1,  "limit": 20}

Code Examples

BASH
curl -X GET "https://api.alsorn.com/transactions?agent_id=agent_7f3k9x2m&status=completed&limit=10" \  -H "Authorization: Bearer YOUR_API_KEY"