Download transactions as CSV
GET
/ledgers/{ledgerId}/transactions/export
const url = 'http://127.0.0.1:47821/api/v1/ledgers/example/transactions/export';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/export \ --header 'Authorization: Bearer <token>'Download transactions as CSV, same format as Export CSV in the app (accepts the list filters; ?delimiter=; or , ).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”ledgerId
required
string
Query Parameters
Section titled “Query Parameters”delimiter
string
; (default, matches the app) or , or tab
from
string
Earliest date
to
string
Latest date
account
string
Exact account name
vendor
string
Exact vendor name
category
string
Exact category name
type
string
Income or expense
search
string
Text filter
exclude_transfers
string
True to hide transfers
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" }}