Skip to main content
GET

Query Params

string
Inclusive lower bound on createdAt (ISO 8601). Optional.
string
Inclusive upper bound on createdAt (ISO 8601). Optional.
string
default:"csv"
Output format: csv (default) or json.
endDate is a timestamp, not a calendar day: 2024-01-31 resolves to 2024-01-31T00:00:00Z and excludes that day — to include the full day, pass 2024-01-31T23:59:59Z. When both dates are provided, startDate must be before or equal to endDate, otherwise the API responds with 400 Bad Request.

Response

The response is a file download (Content-Disposition: attachment; filename="payins_<startDate>_<endDate>.<format>") and is streamed, so it stays memory-efficient over large date ranges. format=csv (default) → Content-Type: text/csv. The first line is the header row, then one row per payin. Values are RFC 4180-escaped. Columns, in order: format=jsonContent-Type: application/json. An envelope with the rows in data and the number of records emitted in count.