Show invoice details (deprecated; use show_invoices_v1).
Signature
VastAI.show_invoices(
quiet: bool = False,
start_date: Optional[str] = None,
end_date: Optional[str] = None,
only_charges: bool = False,
only_credits: bool = False,
instance_label: Optional[str] = None
) -> dict
Parameters
start date and time for report. Many formats accepted (optional)
end date and time for report. Many formats accepted (optional)
Filter charges on a particular instance label (useful for autoscaler groups)
Returns
dict
Example
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
result = client.show_invoices()
print(result)