Descarregar um relatório em CSV
RegistosGET /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.
Parâmetros
idExecution id
rawtruereturns column keys and raw values regardless of the execution's locale.
Devolve
Permissões reports:read · Funções: admin, analyst, finance, owner
curl -X GET "$BUSINESS_API/exports/{id}.csv" \
-H "Authorization: Bearer sk_test_..."
# Sem comando CLI equivalente; use cURL ou HTTP directo.
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