Invoices API

Endpoints

  • GET /v1/invoices
  • GET /v1/invoices/{invoiceId}

GET /v1/invoices

Requires read. Query params:
  • limit (int, default 100, min 1, max 1000)
  • cursor (signed cursor)
  • before (signed cursor, alias de compatibilidade)

GET /v1/invoices/

Requires read.
const invoices = await accend.invoices.list("limit=20");
const invoice = await accend.invoices.get("inv_abc123");
Response shape:
{
  "data": {
    "items": [
      {
        "id": "inv_abc123",
        "customerId": "cus_abc123",
        "subscriptionId": "sub_abc123",
        "status": "open",
        "amountDue": "9700",
        "currency": "BRL",
        "dueDate": "2025-01-20T00:00:00Z",
        "createdAt": "2025-01-15T10:00:00Z"
      }
    ],
    "hasMore": false,
    "nextCursor": null
  },
  "error": null,
  "success": true
}