An invoice is created alongside a payment and represents the billing record for a checkout session. Use these endpoints to look up invoices by customer, payment, or invoice ID.Documentation Index
Fetch the complete documentation index at: https://docs.getopenrails.com/llms.txt
Use this file to discover all available pages before exploring further.
GET /api/gateway/invoices
Returns a paginated list of invoices.Query parameters
| Parameter | Type | Description |
|---|---|---|
limit | number | Maximum number of records to return. Defaults to 20. |
customerId | string | Filter by customer cus_* ID. |
paymentId | string | Filter by payment pay_* ID. |
invoiceId | string | Filter to a specific invoice by inv_* ID. |
status | string | Filter by invoice status. |
Response
GET /api/gateway/invoices/
Fetches a single invoice by itsinv_* ID.
Response
Status values
| Status | Meaning |
|---|---|
open | Invoice created; payment not yet received. |
paid | Payment confirmed and invoice closed. |
void | Invoice voided before payment. |
paymentId filter on the list endpoint or navigate from the payment record directly.