Download a completed report execution as CSV
LogsGET /exports/{id}.csv
When the execution has a locale, the header row and known enum values (status, method, category, ageing band…) are labelled in that language; unknown values pass through. raw=true returns the stored file with snake_case column keys and raw values, for machine use.
Parameters
idExecution id
rawtruereturns column keys and raw values regardless of the execution's locale.
Returns
Permissions reports:read · Roles: admin, analyst, finance, owner
curl -X GET "$BUSINESS_API/exports/{id}.csv" \
-H "Authorization: Bearer sk_test_..."
# No matching CLI command; use cURL or direct HTTP.
const res = await fetch("$BUSINESS_API/exports/{id}.csv", {
method: "GET",
headers: {
Authorization: "Bearer sk_test_..."
}
});
const data = await res.json();
import requests
res = requests.get(
"$BUSINESS_API/exports/{id}.csv",
headers={
"Authorization": "Bearer sk_test_..."
}
)
data = res.json()
req, _ := http.NewRequest("GET", "$BUSINESS_API/exports/{id}.csv", nil)
req.Header.Set("Authorization", "Bearer sk_test_...")
resp, err := http.DefaultClient.Do(req)
text/csv