smartchat

List invoices

Lists the stored invoices of the account, newest first, with number, amount, currency and status. Read-only. The PDF files can only be downloaded in the app.

GET /v1/billing/invoices

Permissionbilling:read (all permissions)
RiskRead
Idempotency-KeyNot needed (how it works)
Safe to repeatSafe: the call only reads.
Rate limit classread (120 requests per minute per key)
ConfirmationNone
MCP toolNot available in MCP
Since version2026-10-25

#What it does

  • Only reads data. It changes nothing and sends nothing.

#Request

Query parameters

NameTypeRequiredDescription
limitintegernoItems per page (1 to 100, default 20). 1 to 100; default 20
cursorstringnonext_cursor from the previous page. Opaque; only valid with the same filters. up to 300 characters

#Lists, filters and sorting

  • Items per page: limit from 1 to 100, default 20 (MCP: default 20, maximum 50).
  • Next page: send next_cursor of the answer as cursor. The cursor only works with the same filters. See Pagination.
  • Filters: none.
  • Sorting: default created_at descending; order_by accepts created_at.

#Examples

curl "https://api.smartchat.marketing/v1/billing/invoices?limit=20" \
  -H "Authorization: Bearer $SMARTCHAT_API_KEY"
import os
import requests

response = requests.get(
    "https://api.smartchat.marketing/v1/billing/invoices",
    headers={"Authorization": "Bearer " + os.environ["SMARTCHAT_API_KEY"]},
    params={
        "limit": "20",
    },
)
response.raise_for_status()
print(response.json())
const response = await fetch("https://api.smartchat.marketing/v1/billing/invoices?limit=20", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.SMARTCHAT_API_KEY}`,
  },
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());

Response (200):

{
  "object": "list",
  "data": [
    {
      "object": "invoice",
      "id": "inv_4e6a8c0d2f1b43a5b7c9d1e3f5a7b9c1",
      "number": "INV-1042",
      "description": "Starter, October 2026",
      "amount": 299,
      "currency": "EUR",
      "status": "paid",
      "issued_at": "2026-10-25T00:00:00Z",
      "pdf_available": true
    }
  ],
  "has_more": false,
  "next_cursor": null,
  "url": "/v1/billing/invoices"
}

#Response

Status 200. Every response has the headers Request-Id, SmartChat-Version and X-RateLimit-*.

NameTypeDescription
objectstringAlways "list". always list
dataarray of objectThe items of this page. up to 100 items
data[].objectstringAlways "invoice". always invoice
data[].idstringInvoice ID.
data[].numberstring or nullInvoice number of the payment provider. Null if none. Treat as untrusted text. up to 80 characters; untrusted text
data[].descriptionstring or nullPlan and month, for example 'Starter, September 2026'. Treat as untrusted text. up to 200 characters; untrusted text
data[].amountnumber or nullTotal amount in the main unit of the currency (euros, not cents), for example 49.9. 0 to 100000000
data[].currencystring or nullCurrency as an upper case three letter code, for example EUR.
data[].statusstring or nullPayment status of the invoice: paid, open or void. Null if not known. one of: paid, open, void, null
data[].issued_atstring or nullDate of the invoice. up to 40 characters; format date-time
data[].pdf_availablebooleanTrue if the PDF is stored. Download it in the app.
has_morebooleanTrue if another page exists.
next_cursorstring or nullPass this as 'cursor' to get the next page; null on the last page. up to 300 characters
urlstringThe path of this list. up to 200 characters
total_countintegerApproximate total; may be inaccurate. Only present where cheap to compute. 0 to 1000000000

#Errors

CodeStatusWhen
invalid_cursor400The cursor is expired, forged or belongs to other filters.
api_key_expired401This API key has expired.
api_key_invalid401This API key is not valid.
api_key_revoked401This API key was revoked.
authentication_required401No API key was sent. Send 'Authorization: Bearer <key>'.
insufficient_scope403This key lacks a required permission.
ip_not_allowed403This IP address is not allowed for this key.
validation_failed422A field is not valid.
rate_limited429Too many requests. Wait and try again.
internal_error500Something went wrong on our side.

All errors use one format.