Books by finzkoDevelopers

Export

Download one resource as CSV. The columns are the same as in the full backup and round-trip through the importer. For everything at once use the backup instead.

GET/export/{entity}Export one resource as CSVAIBooks.export.READ

The path parameter entity is case-insensitive and must be one of:

  • accounts, contacts, vendors, items, taxes
  • invoices, bills, credit_notes, vendor_credits
  • customer_payments, vendor_payments, expenses, journals
  • sales_orders, purchase_orders, quotes

There are no filters, no paging and no date range: the response is every row of that resource for the organization. The response is not the JSON envelope. It is the CSV file itself:

curl -H "Authorization: Bearer $PAT" "$BASE/export/invoices" -o invoices.csv

200 OK
Content-Type: text/csv
Content-Disposition: attachment; filename="invoices.csv"

An organization with no rows of that kind gets an empty or header-only file. This endpoint does not use an Idempotency-Key.

Notable errors

  • 400 validation.invalid_value — unknown entity. The message is Unknown entity '…' and does not list the valid names; use the list above.
  • 403 auth.insufficient_scope — the token lacks AIBooks.export.READ.