Sazabi
APIBilling

List usage invoices

GET
/billing/usage-invoices

List cycle-end usage invoices — the local settlement record, one per settled billing cycle, zero-total settlements included.

Query Parameters

organizationId?string

Organization to list usage invoices for. Auto-filled from CLI and SDK context when omitted.

Length1 <= length
limit?integer

Maximum invoices to return, newest cycle first.

Range1 <= value <= 100
Default24

Response Body

application/json

curl -X GET "https://example.com/billing/usage-invoices"
{  "items": [    {      "id": "string",      "cycleStartsAt": "2019-08-24T14:15:22Z",      "cycleEndsAt": "2019-08-24T14:15:22Z",      "status": "string",      "currency": "string",      "subtotalAmount": "string",      "totalAmount": "string",      "lineItems": [        {          "productKey": "logs_ingested_bytes",          "displayName": "string",          "meteredQuantity": "string",          "includedQuantity": "string",          "overageQuantity": "string",          "unitPrice": "string",          "amount": "string"        }      ],      "hostedInvoiceUrl": "string",      "finalizedAt": "2019-08-24T14:15:22Z",      "createdAt": "2019-08-24T14:15:22Z"    }  ]}