List transactions
GET
/ledgers/{ledgerId}/transactions
const url = 'http://127.0.0.1:47821/api/v1/ledgers/example/transactions';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://127.0.0.1:47821/api/v1/ledgers/example/transactions \ --header 'Authorization: Bearer <token>'List transactions (filters: from, to, account, vendor, category, sub_category, min_amount, max_amount, type, search, exclude_transfers, limit, offset).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”ledgerId
required
string
Query Parameters
Section titled “Query Parameters”from
string
Earliest date, YYYY-MM-DD
to
string
Latest date, YYYY-MM-DD
account
string
Exact account name
vendor
string
Exact vendor name
category
string
Exact category name
sub_category
string
Exact sub-category name
min_amount
string
Minimum amount (signed)
max_amount
string
Maximum amount (signed)
type
string
Income or expense
search
string
Text to find in vendor, category, account, remarks
exclude_transfers
string
True to hide transfers
limit
string
Page size, 1-1000 (default 100)
offset
string
Rows to skip
Responses
Section titled “Responses”Success. JSON, or a file download for export endpoints and ?format=csv.
Validation error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Example generated
{ "error": { "code": "example", "message": "example", "details": "example" }}Missing or invalid bearer token
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Example generated
{ "error": { "code": "example", "message": "example", "details": "example" }}Not found
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Example generated
{ "error": { "code": "example", "message": "example", "details": "example" }}Conflict
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
Example generated
{ "error": { "code": "example", "message": "example", "details": "example" }}