v1

latestOpenAPI 3.1.02026-07-13897404.3 KB
Billing

show invoices

Returns Stripe top-ups, transfers, payouts, coinbase payments, and other billing transactions. For per-instance cost breakdowns, use show charges instead.

CLI: vastai show invoices-v1 --invoices

get/api/v1/invoices/

Query parameters

select_filtersstring required

when (required). Date range in unix seconds (UTC). Operators: gte, gt, lte, lt.

service (optional). Filter by payment service: transfer, stripe_payments, bitpay, coinbase, crypto.com, instance_prepay, paypal_manual, wise_manual. Operators: eq, neq, in, notin.

Examples:

// January 2026, all services
{"when":{"gte":1767225600,"lte":1769903999}}

// Only PayPal and Wise payouts
{"when":{"gte":1767225600,"lte":1769903999},"service":{"in":["paypal_manual","wise_manual"]}}

// Everything except crypto
{"when":{"gte":1767225600,"lte":1769903999},"service":{"notin":["bitpay","coinbase","crypto.com"]}}
order_bystring

Sort results by column. Columns: paid_on, amount_cents, when. Direction: asc or desc (default desc).

Example: [{"col":"paid_on","dir":"desc"}]

latest_firstboolean
Example:true

Sort newest invoices first. If order_by is also set, order_by takes precedence.

limitinteger
Example:20

Max results per page.

after_tokenstring
Example:eyJ2YWx1ZXMiOiB7ImlkIjogMjY3MjU5N30sICJvc19wYWdlIjogMH0=

Pass the next_token value from the previous response to fetch the next page of results. When the response returns next_token: null, there are no more pages.

Response

Invoice results. A missing or invalid when range also returns HTTP 200 with success: false.

successboolean
countinteger

Number of invoices returned in this page.

totalinteger

Total number of invoices matching the filters.

next_tokenstring nullable

Token for the next page. null when no more pages.

Example response

{
  "success": true,
  "count": 2,
  "total": 42,
  "next_token": "eyJ2YWx1ZXMiOiB7ImlkIjogMjE4OTM4N30sICJvc19wYWdlIjogMH0=",
  "results": [
    {
      "start": 1761980044,
      "end": 1761980301,
      "type": "credit",
      "source": "stripe",
      "description": "Manual Billing from MASTERCARD ...7376",
      "amount": -25,
      "metadata": {
        "invoice_id": 2185418,
        "service": "stripe_payments"
      },
      "items": []
    }
  ]
}