Skip to main content
Get billing history reports with advanced filtering and pagination.

Signature

VastAI.show_invoices_v1(
    invoices: bool = False,
    invoice_type: Optional[List[str]] = None,
    charges: bool = False,
    charge_type: Optional[List[str]] = None,
    start_date: Optional[str] = None,
    end_date: Optional[str] = None,
    limit: int = 20,
    next_token: Optional[str] = None,
    format: str = "table",
    verbose: bool = False,
    latest_first: bool = False
) -> str

Parameters

invoices
bool
default:"False"
invoices
invoice_type
Optional[List[str]]
invoice_type
charges
bool
default:"False"
charges
charge_type
Optional[List[str]]
charge_type
start_date
Optional[str]
start_date
end_date
Optional[str]
end_date
limit
int
default:"20"
limit
next_token
Optional[str]
next_token
format
str
default:"\"table\""
format
verbose
bool
default:"False"
verbose
latest_first
bool
default:"False"
latest_first

Returns

str — Result from the API call.

Example

from vastai import VastAI

client = VastAI(api_key="YOUR_API_KEY")
result = client.show_invoices_v1()
print(result)