Path Parameters
string
required
The unique identifier of the invoice to retrieve.
Response
A successful request returns HTTP200 OK with the full invoice object and all related records.
object
The requested invoice with all related records.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
GET /api/v1/invoices/:invoiceId — retrieves an invoice with full details including settlement history, usage events, and related records.
GET https://api.retempo.xyz/api/v1/invoices/:invoiceId
200 OK with the full invoice object and all related records.
Show invoice fields
null.DRAFT, OPEN, VOID, EXPIRED, or PAID.null if not set.null.{
"invoice": {
"id": "clz1invoice999",
"serviceId": "clz1abc2def3ghi4",
"paymentPlanId": "clz1plan567",
"userId": "clz1user111",
"subscriptionId": null,
"status": "OPEN",
"amount": "49.000000",
"currency": "USDC",
"dueAt": "2025-07-01T00:00:00.000Z",
"paidAt": null,
"createdAt": "2025-06-01T10:15:00.000Z",
"service": {
"id": "clz1abc2def3ghi4",
"name": "DataStream Pro",
"status": "ACTIVE"
},
"paymentPlan": {
"id": "clz1plan567",
"name": "Pro Monthly",
"amount": "49.000000",
"currency": "USDC"
},
"user": {
"id": "clz1user111",
"email": "subscriber@example.com"
},
"subscription": null,
"settlements": [],
"usageEvents": []
}
}
curl https://api.retempo.xyz/api/v1/invoices/clz1invoice999
| Status | Message | Condition |
|---|---|---|
404 Not Found | Invoice was not found. | No invoice exists for the provided ID. |
paidAt field — it is populated only after a settlement against this invoice is confirmed. Until then it is null regardless of the invoice status.