Api reference
List customer invoices
Retrieve all invoices for a specific customer
Related endpoints
GET /customers/{customerId}/subscriptions— List customer subscriptionsGET /customers/{customerId}/orders— List customer ordersGET /customers/{customerId}/payments— List customer paymentsPUT /customers/external/batch— Batch upsert customers by external IDPOST /customers— Create a new customerGET /customers— List customersGET /customers/{id}— Get customer by IDPATCH /customers/{id}— Update customer details
Common errors
401 unauthenticated— missing, malformed, or revoked API key.404 resource_missing— the referenced resource does not exist or is not visible to your key.
Pagination
Offset-based with limit (default 25, max 100) and offset. The response pagination block includes total and hasMore. See the pagination guide for SDK auto-paging helpers.
x-api-key<token>
Your RevKeen API key (powered by Unkey). Get it from Dashboard > Settings > API Keys. Use rk_sandbox_* for test mode and rk_live_* for production.
In: header
Path Parameters
customerId*string
Customer ID
Format
uuidQuery Parameters
limit?integer
Maximum number of records to return (1-100)
Default
20Range
1 <= value <= 100starting_after?string
Cursor for pagination - return records after this ID
Format
uuidending_before?string
Cursor for pagination - return records before this ID
Format
uuidResponse Body
application/json
application/json
application/json
curl "https://api.revkeen.com/v2/customers/cus_abc123/invoices" \ -H "x-api-key: $REVKEEN_API_KEY"{
"object": "list",
"data": [
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"customer_id": "160c0c4b-9966-4dc1-a916-8407eb10d74e",
"invoice_number": "string",
"status": "string",
"total_minor": 0,
"currency": "string",
"due_date": "string",
"created_at": "string",
"updated_at": "string"
}
],
"has_more": true
}{
"error": {
"code": "string",
"message": "string"
}
}{
"error": {
"code": "string",
"message": "string"
}
}