logoAccess

List invoices

GET
/api/v1/invoices/

List invoices with optional filters.

Authorization

apiKeyHeader
headerx-api-key<token>

API key for authentication. Generate from the dashboard or via POST /v1/api-keys.

Query Parameters

cursor?string

Pagination cursor from the previous response's next_cursor

limit?number

Number of records to return per page (1–100)

Range1 <= value <= 100
Default20
status?string

Filter by invoice status. One of: open, past_due, paid, voided

subscription_id?string

Filter invoices by subscription ID

customer_id?string

Filter invoices by customer ID

Header Parameters

x-api-key*string

API key for authentication

Length1 <= length

Response Body

Response for status 200

application/json
  1. response
data*array<>
has_more*boolean
next_cursor*string|null
curl -X GET 'https://api.tryaccess.xyz/api/v1/invoices/' \  -H 'x-api-key: string'
{  "data": [    {      "id": "string",      "amount": 0,      "paid_at": "string",      "currency": "string",      "status": "string",      "updated_at": "string",      "created_at": "string",      "issued_at": "string",      "due_date": "string",      "customer": {        "id": "string",        "name": "string",        "email": "string",        "phone_number": "string"      },      "metadata": {},      "payment_method": "string"    }  ],  "has_more": true,  "next_cursor": "string"}

How is this guide?