Skip to main content
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

quiet
bool
only display numeric ids
start_date
Optional[str]
start date and time for report. Many formats accepted (optional)
end_date
Optional[str]
end date and time for report. Many formats accepted (optional)
only_charges
bool
Show only charge items
only_credits
bool
Show only credit items
instance_label
Optional[str]
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)