Gets your invoices within given timerange.
Timerange is required using the select_filters.when field.
Optionally filter by invoice service using select_filters.service.
Common services : transfer, stripe_payments, bitpay, coinbase, crypto.com, instance_prepay, paypal_manual, wise_manual
Date format: select_filters.when.gte and select_filters.when.lte must be UTC epoch seconds (integers).
Example range: 2026-01-01 00:00:00 UTC -> 1767225600, 2026-01-31 23:59:59 UTC -> 1769903999.
HTTP request: This is a GET endpoint that accepts JSON-encoded query parameters. URL-encode JSON values when calling directly.
GET /api/v1/invoices/?select_filters={"when":{"gte":1767225600,"lte":1769903999}}&limit=60
For pagination, pass the response next_token as after_token:
GET /api/v1/invoices/?select_filters={"when":{"gte":1767225600,"lte":1769903999}}&after_token=eyJ2YWx1ZXMiOiB7ImlkIjog...
CLI Usage: vastai show invoices-v1
API key must be provided in the Authorization header
Shows invoices using given filters.
Required : Filter by timerange using when field.
Use unix timestamps (UTC) comparison operators.
Example : To filter invoices from June 1, 2025 to Dec 1, 2025:
"select_filters": {
"when": {
"gte": 1748736000,
"lte": 1764547200
}
}Supported operators:
gt or gte: invoices created after this timelt or lte: invoices created before this timeOptional : Filter invoices by service using service field.
Supported services: transfer, stripe_payments, bitpay, coinbase, crypto.com, instance_prepay, paypal_manual, wise_manual
Supported operators:
in : include only these servicesnotin : exclude these serviceseq : matches a single serviceExample: Get paypal and wise invoices only
"service": {
"in": ["paypal_manual", "wise_manual"]
}Sort by newest invoices first.
Sort invoices by given columns.
Supported columns: paid_on, amount_cents, when
Example : To sort by oldest invoices first
"order_by": [
{
"col": "when",
"dir": "asc"
}
]Maximum number of invoices to return.
Paginated invoice results