Skip to main content
GET
/
api
/
v0
/
invoices
search invoices
curl --request GET \
  --url https://console.vast.ai/api/v0/invoices \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "charge",
  "select_filters": {}
}'
[
  {
    "type": "charge",
    "description": "Instance 123 GPU charge: hours * $/hr",
    "timestamp": 1633036800,
    "quantity": "10.000",
    "rate": "0.1000",
    "amount": "1.000",
    "instance_id": 123
  }
]

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Body

application/json
type
string

Type of invoices to retrieve

Example:

"charge"

select_filters
object

Filters to apply to the invoice selection.

Response

Success response

type
string
Example:

"charge"

description
string
Example:

"Instance 123 GPU charge: hours * $/hr"

timestamp
integer
Example:

1633036800

quantity
string
Example:

"10.000"

rate
string
Example:

"0.1000"

amount
string
Example:

"1.000"

instance_id
integer
Example:

123