Start an export of one entity's books: each file the Books screens download, from the XAF auditfile to the auditor's CSV
Changed onAnswers 202 with the export job (id, status queued, status_url); the file is produced after the response. xaf-4.0 and xaf-3.2 are the Dutch auditfile of one fiscal year (fiscal_year_id, or year = the calendar year the fiscal year starts in); csv-zip is every finance table of the entity with a manifest of row counts and SHA-256 checksums, and takes no year. jaarwerk is the year-end package for an accountant's tool (layout), annual the jaarrekening PDF (document concept or the deposit concept; prepared, never filed), report one report of the Reports screen (view, file_type, and a range of periods inside the fiscal year, else the whole year), each of one fiscal year and written in locale; audit is the auditor's CSV (kind) and takes no year. jaarwerk, annual and audit are refused with feature_off until the owner switches them on, and audit needs the audit capability on the entity; an audit file above 20000 rows is refused with audit_export_too_large, never cut short. Pass an Idempotency-Key header (or idempotency_key): a retry with the same key and the same arguments answers the same job; the same key with different arguments is refused with idempotency_conflict. An export reads the books and is never sent anywhere: the file is downloadable by this app for 7 days.
Request
- Base URLhttps://app.magistry.io
- Auth
- HTTP bearer
- or OAuth 2Authorization codehttps://app.magistry.io/api/oauth/authorizeToken URLhttps://app.magistry.io/api/oauth/tokenScopesfinance:read
Request body
The entity, one of those this app was granted (GET /api/v1/finance/entities lists them). In a GET query string entity is accepted too.
What to produce.
The fiscal year of a year-bound export (GET /api/v1/finance/periods lists them).
Instead of fiscal_year_id: the calendar year the fiscal year starts in.
Same as the Idempotency-Key header; give one of the two.
jaarwerk: the tool the package is laid out for (default rgs_csv).
annual: the concept jaarrekening, or the concept of the deposit version (default concept).
report: which report.
report: the file it is written as.
report: the first period of the range (default: the fiscal year's first).
report: the last period of the range; needs from_period_id.
audit: the change feed, the trial balance, or every entry with its lines.
audit (trial_balance, entries): the first day.
audit (trial_balance, entries): the last day.
audit (feed): only changes by this kind of actor.
audit (feed): include reads and exports (default true).
jaarwerk, annual, report: the language of the document (default en).
Response
The job an earlier request with the same idempotency key started.
Changes
- warning
added the new
method_not_allowedenum value to theerrorresponse property for the response status - warning
added the new
method_not_allowedenum value to theerrorresponse property for the response status - warning
added the new
method_not_allowedenum value to theerrorresponse property for the response status
11 more changes in this revision
- warning