InvoicesPayments and statements

Get a customer's statement as CSV

GET
/v1/customers/{id}/statement.csv

GET /customers/{id}/statement's own rows, as text/csv.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the Developers page. rhq_test_ keys reach the sandbox, rhq_live_ keys the live side.

Path Parameters

id*string

Query Parameters

from*string

The start of the statement, inclusive

Formatdate-time
to*string

The end of the statement, inclusive

Formatdate-time

Response Body

Success

response?stringapplication/json

Success

curl -X GET "https://example.com/v1/customers/cus_01K6XJ4Q8ZT3M9R5V2B7WDHNCA/statement.csv?from=2026-10-07T11%3A04%3A31.000Z&to=2026-10-07T11%3A04%3A31.000Z"
"string"