Axiomatic

Data Warehouse Export

Bulk export accounting data for external BI tools and data pipelines. Requires the data_export feature (Professional plan and above).

Export Data

GET /api/exports/data-warehouse?entityId=...&bookId=...

Query Parameters

ParameterRequiredTypeDescription
entityIdYesuuidEntity to export
bookIdYesuuidBook to export from
formatNostringjson (default) or csv
tablesNostringComma-separated table names. Omit to export all tables.
fromDateNostringISO 8601 start date filter
toDateNostringISO 8601 end date filter

Available Tables

TableDescription
accountsChart of accounts with codes, names, and types
journal_entriesPosted journal entry headers
journal_linesIndividual debit and credit lines
eventsFinancial events with type and status
billsAccounts payable bills
invoicesAccounts receivable invoices
trial_balanceCurrent trial balance by account

Example: Export All Data as JSON

GET /api/exports/data-warehouse?entityId=abc&bookId=xyz

Example: Export Specific Tables as CSV

GET /api/exports/data-warehouse?entityId=abc&bookId=xyz&format=csv&tables=accounts,journal_entries,journal_lines

Example: Date-Filtered Export

GET /api/exports/data-warehouse?entityId=abc&bookId=xyz&fromDate=2025-01-01&toDate=2025-12-31&tables=journal_entries,journal_lines

JSON Response Format

{
  "accounts": [
    {
      "id": "uuid",
      "code": "1000",
      "name": "Cash",
      "type": "ASSET"
    }
  ],
  "journal_entries": [
    {
      "id": "uuid",
      "date": "2025-03-15",
      "memo": "Payroll March"
    }
  ],
  "journal_lines": [
    {
      "id": "uuid",
      "journalEntryId": "uuid",
      "accountId": "uuid",
      "debit": "5000.00",
      "credit": "0.00",
      "currency": "USD"
    }
  ]
}

Response headers:

  • Content-Type: application/json
  • Content-Disposition: attachment; filename="export-{entityId}-{date}.json"

CSV Response Format

The CSV output contains one section per table, each preceded by a header row with column names. Sections are separated by blank lines.

Response headers:

  • Content-Type: text/csv
  • Content-Disposition: attachment; filename="export-{entityId}-{date}.csv"

Authentication

Pass your API key as a Bearer token:

Authorization: Bearer your-api-key

On this page