GET
/
api
/
v0
/
users
/
{user_id}
/
invoices
/
show invoices
curl --request GET \
  --url https://console.vast.ai/api/v0/users/{user_id}/invoices/ \
  --header 'Authorization: Bearer <token>'
{
  "invoices": [
    {
      "id": 123,
      "type": "payment",
      "service": "stripe",
      "amount": 100,
      "timestamp": 1672531199
    }
  ],
  "username": "user@example.com",
  "bill_to": "John Doe\n123 Main St\nCity, ZIP\nCountry",
  "email": "user@example.com",
  "fullname": "John Doe",
  "address1": "123 Main St",
  "address2": "Apt 4B",
  "city": "City",
  "zip": "12345",
  "country": "Country",
  "taxinfo": "Tax Info",
  "current": {
    "charges": 150,
    "service_fee": 15,
    "total": 165,
    "credit": 50
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_id
string
required

The ID of the user whose invoices are being retrieved.

Query Parameters

inc_charges
boolean

Include charge items in the report.

only_payouts
boolean

Show only payout items.

no_payouts
boolean

Exclude payout items.

sdate
string

Start date and time for the report.

edate
string

End date and time for the report.

Response

Success response with billing history reports

invoices
object[]
username
string
Example:

"user@example.com"

bill_to
string
Example:

"John Doe\n123 Main St\nCity, ZIP\nCountry"

email
string
Example:

"user@example.com"

fullname
string
Example:

"John Doe"

address1
string
Example:

"123 Main St"

address2
string
Example:

"Apt 4B"

city
string
Example:

"City"

zip
string
Example:

"12345"

country
string
Example:

"Country"

taxinfo
string
Example:

"Tax Info"

current
object