Skip to content
Anlyon
Esc
↑↓navigate↵open⌘Jpreview

List workspace invoices

GET/api/v2/billing/invoices
Authorization
AuthorizationBearer token (Anlyon API key) · headerrequired

Workspace API key sent as Authorization: Bearer <key>.

or
better-auth.session_tokenAPI key · cookierequired

Browser session used by dashboard-only operations.

Query parameters
limitinteger
min 1 · max 100 · default: 10
Header parameters
X-Request-Idstring

Optional caller correlation ID. Unsafe or oversized values are replaced.

max length 128
Responses
200

Workspace invoices returned.

successbooleanrequired
Allowed:true
dataobjectrequired
Show properties
invoicesBillingInvoice[]required
Show properties
Array of BillingInvoice
idstring<uuid>required
stripeInvoiceIdstringrequired
matches ^in_
amountDuenumberrequired

Major currency units.

min 0
amountPaidnumberrequired

Major currency units.

min 0
currencystringrequired
statusstringrequired
Allowed:draftopenpaidvoiduncollectible
periodobjectrequired
Show properties
startstring<date-time>required
endstring<date-time>required
urlsobjectrequired
Show properties
invoicestring<uri> | nullrequired
pdfstring<uri> | nullrequired
paidAtstring<date-time> | nullrequired
createdAtstring<date-time>required
totalintegerrequired

Number returned, not a count of all stored invoices.

min 0
401

Unauthorized - Invalid or missing API key

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
403

Authenticated credential lacks the required scope or workspace access.

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
429

Too Many Requests - Rate limit exceeded

successbooleanrequired
requestIdstringrequired

Correlation ID matching the X-Request-Id response header.

errorobjectrequired
Show properties
codestring
messagestring
detailsobject
Try it
Server
Authorization
Parameters
Request
curl -X GET 'https://api.anlyon.com/api/v2/billing/invoices' \
  -H 'Authorization: Bearer YOUR_TOKEN'
Response
{
  "success": true,
  "data": {
    "invoices": [
      {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "stripeInvoiceId": "string",
        "amountDue": 0,
        "amountPaid": 0,
        "currency": "string",
        "status": "draft",
        "period": {
          "start": "2019-08-24T14:15:22Z",
          "end": "2019-08-24T14:15:22Z"
        },
        "urls": {
          "invoice": "http://example.com",
          "pdf": "http://example.com"
        },
        "paidAt": "2019-08-24T14:15:22Z",
        "createdAt": "2019-08-24T14:15:22Z"
      }
    ],
    "total": 0
  }
}