Skip to main content
GET
/
api
/
v1
/
invoices
show invoices
curl --request GET \
  --url https://console.vast.ai/api/v1/invoices/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "select_filters": {
    "when": {
      "gte": 1748736000,
      "lte": 1764547200
    },
    "service": {
      "eq": "<string>",
      "in": [
        "<string>"
      ],
      "notin": [
        "<string>"
      ]
    }
  },
  "latest_first": true,
  "order_by": {
    "col": "paid_on",
    "dir": "desc"
  },
  "limit": 60
}
'
{
  "success": true,
  "count": 2,
  "total": 42,
  "results": [
    {
      "start": 1762149123,
      "end": null,
      "type": "transfer",
      "source": "sender@vast.ai",
      "description": "Received credit from sender@vast.ai",
      "amount": 35.5,
      "metadata": {
        "invoice_id": 4829137,
        "service": "transfer",
        "sender": 123456,
        "recipient": 789012
      },
      "items": []
    },
    {
      "start": 1761980044,
      "end": 1761980301,
      "type": "credit",
      "source": "stripe",
      "description": "Manual billing from VISA ending in 4412",
      "amount": -19.99,
      "metadata": {
        "invoice_id": 4828771,
        "service": "stripe_payments",
        "last4": "4412",
        "network": "visa",
        "transfer_group": "pi_3TAbCdEfgHiJkLmN"
      },
      "items": []
    }
  ],
  "next_token": null
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Body

application/json
select_filters
object
required

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 time
  • lt or lte: invoices created before this time

Optional : 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 services
  • notin : exclude these services
  • eq : matches a single service

Example: Get paypal and wise invoices only

"service": {
"in": ["paypal_manual", "wise_manual"]
}
latest_first
boolean
default:true

Sort by newest invoices first.

order_by
object[]

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"
}
]
limit
integer
default:60

Maximum number of invoices to return.

Response

Paginated invoice results