Skip to content
Sign in Create account

List invoices

GET /api/billing/invoices

Returns the authenticated account's prepaid transactions, newest first, using pagination with 50 rows per page. This handler accepts no filter parameters.

Authenticate with a portal session token.

Responses

200 Transactions ordered newest first with pagination metadata (50 rows per page).

application/json object

  • transactions object required
    • current_page integer required
    • data array of object required

      Each item:

      • amount_micros integer required

        Exact signed transaction amount in USD micro-dollars; legacy cents-only rows are returned as amount_cents × 10,000.

      • has_receipt boolean required

        Whether a signed receipt is linked to the usage record for this debit.

      • amount_cents integer required

        Signed whole-cent wallet settlement for this transaction. For usage debits the subcent remainder is carried across calls, so this can differ from rounding amount_micros per row.

    • last_page integer
    • next_page_url string (uri) or null
    • per_page integer required
      Value: 50
    • total integer required

Generated sample

{
  "transactions": {
    "current_page": 0,
    "data": [
      {
        "amount_micros": 0,
        "has_receipt": true,
        "amount_cents": 0
      }
    ],
    "last_page": 0,
    "next_page_url": "https://example.com",
    "per_page": 50,
    "total": 0
  }
}
401 Missing or invalid bearer token.

application/json object

Any keys are accepted.

403 The caller does not meet the route requirements: accepted Terms of Service and Privacy Policy.

application/json object

Any keys are accepted.

429 The request was rate limited. API-generated responses are JSON;

Response headers

  • Retry-After string header

    Seconds to wait before retrying, when provided.

  • X-RateLimit-Scope string header

    Identifies the scope of the request limit, when provided.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

text/html string