Levain LabsLevain Labs
ApiBilling

List Invoices

List paid invoices, newest first.

List paid invoices, newest first.

Every payment on the workspace is invoiced: plan subscription fees and credit top-ups alike. Each invoice links to a hosted invoice page and a downloadable PDF. Page through older invoices with starting_after set to the next_cursor from the previous response.

GET
/api/v1/billing/invoices

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Query Parameters

limit?Limit
Default12
starting_after?string|null

Header Parameters

X-API-Key?string|null

Response Body

application/json

application/json

curl -X GET "https://api.levainlabs.com/api/v1/billing/invoices"
{
  "invoices": [
    {
      "id": "string",
      "number": "string",
      "description": "string",
      "status": "string",
      "amount_paid": 0,
      "currency": "string",
      "created": 0,
      "hosted_invoice_url": "string",
      "invoice_pdf": "string"
    }
  ],
  "has_more": true,
  "next_cursor": "string"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}