cURL
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 } ]
This endpoint allows users to search and retrieve invoices based on specified filters.
CLI Usage: vastai search invoices
vastai search invoices
API key must be provided in the Authorization header
Type of invoices to retrieve
"charge"
Filters to apply to the invoice selection.
Success response
"Instance 123 GPU charge: hours * $/hr"
1633036800
"10.000"
"0.1000"
"1.000"
123