Export tax summary
GET
/org/tax/summary/export.csv
const url = 'https://example.com/org/tax/summary/export.csv?from=example&to=example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/org/tax/summary/export.csv?from=example&to=example'Who can call it: Owners and Staff. Staff need the Team right View financial statements (reports.view_financial_statements).
curl -X GET "https://spine.example.com/api/org/tax/summary/export.csv" \
-H "Cookie: better-auth.session_token=<session>"
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”from
required
string
to
required
string
Responses
Section titled “Responses”Validation failed or a business rule was broken; message says what to change.
No session, or it has expired: sign in again.
The caller’s role, Team rights or ownership don’t allow it, the module is switched off, or their access was removed.
No such record in this business.
The same Idempotency-Key is still being handled, or the record conflicts with one that exists.
Too many requests: wait a minute.
Something went wrong on the server; the response carries the request id to report.