Export
| Method | Path | Summary |
|---|---|---|
| GET | /api/companies/:companyId/export.csv | One tax year as a spreadsheet — same columns as the CSV inside the ZIP |
#One tax year as a spreadsheet — same columns as the CSV inside the ZIP
GET
/api/companies/:companyId/export.csv- Address
https://<your-org>.brambleit.cloud/simplebooks/api/companies/:companyId/export.csv- Requires
- Signed-in browser session (the
sso_session/session_idcookies from Bramble sign-in).
Licence: SimpleBooks.
Path parameters
| Name | Type | Description |
|---|---|---|
companyIdrequired | integer |
Query parameters
| Name | Type | Description |
|---|---|---|
tax_year | any |
Response
A download, a body.
Errors
| Status | Message |
|---|---|
| 403 | Your role in this company doesn't allow exports |
Example request
JavaScript
// From a page served by Bramble (uses the signed-in session)
const res = await fetch('/simplebooks/api/companies/1/export.csv', {
method: 'GET',
credentials: 'include',
});
const data = await res.json();Was this page helpful?
Thanks for your feedback.