Export client transaction history (CSV)
Downloads a CSV of transaction history for a client.
API key (x-api-key): clientId must belong to the API key’s company. No history_days cap is applied unless you pass startDate / endDate.
Bearer token: Supabase JWT for an active ExternalClient link to clientId. The portal history_days limit applies when set (in addition to any explicit date range).
Authorizations
API Key for authentication
Query Parameters
Client primary key
Company-scoped client ID (alternative to clientId)
Optional inclusive start date (YYYY-MM-DD). Use with endDate to limit export size.
Optional inclusive end date (YYYY-MM-DD). Use with startDate to limit export size.
Response
UTF-8 CSV file (BOM prefixed for Excel)
The response is of type file.