Skip to main content
GET
Retrieve export

Authorizations

Authorization
string
header
required

An API key prefixed with finta_, or the access token from a Finta CLI browser login (finta login), prefixed with finta_oat_. A CLI login's access token lasts one hour and the CLI renews it itself.

Path Parameters

id
string
required

Export ID from creation, starting with export_.

Response

Current export status and result.

id
string
required
Pattern: ^export_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
object
enum<string>
required
Available options:
report_export
report_type
enum<string>
required
Available options:
income_statement,
balance_sheet,
cash_flow
format
enum<string>
required
Available options:
pdf,
csv,
xlsx
start_date
string<date>
required
end_date
string<date>
required
group_by
object
required

Omitted members default to month for period and category for rows. Department rows are supported only for income statements and require the feature.

breakdown
enum<string>
default:none
required

Extra detail rows under each category. none exports category rows only. merchants adds a row for each merchant under every category, matching the "CSV with breakdown" export in Finta. merchants_except_revenue adds the same merchant rows except under revenue, leaving customer names out; it is faster for companies with many customers. Values other than none require report_type income_statement, format csv, and group_by.rows category; other combinations return 400 invalid_request with param breakdown. Explicit none is treated the same as omitting the field, including for idempotent replays.

Available options:
none,
merchants,
merchants_except_revenue
status
enum<string>
required

pending awaits generation; processing includes generation and retry waits; succeeded exposes the retained file after final access checks while within 30 days of completed_at, then file is null; failed is terminal and requires a new key for a new job. An HTTP 200 retrieval may still carry failed status.

Available options:
pending,
processing,
succeeded,
failed
created
integer
required
started_at
integer | null
required

Unix timestamp of the first generation attempt. Null until generation starts, including a terminal failure when access is revoked before generation.

completed_at
integer | null
required

Unix timestamp of terminal completion, whether succeeded or failed. Null while unfinished.

generation_duration_ms
integer | null
required

Cumulative generation attempt duration in milliseconds, including upload but excluding queue and retry wait time. Null until an attempt finishes.

Required range: x >= 0
file
object | null
required

Available only for succeeded exports before completed_at plus 30 days. Null at or after that cutoff, including on idempotent POST replay; status remains succeeded and error remains null. Within the window, refresh download_url by retrieving the export again. Already-issued links keep their original expiry; neither link expiry nor the regeneration cutoff removes the stored file.

error
object | null
required

Safe job failure details, present only when status is failed. This is distinct from an HTTP error envelope. New submissions with unconfirmed dispatch return HTTP 503 and retain a pending job, rather than setting enqueue_failed.