Skip to main content
Show invoice details.

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
) -> str

Parameters

quiet
bool
default:"False"
quiet
start_date
Optional[str]
start_date
end_date
Optional[str]
end_date
only_charges
bool
default:"False"
only_charges
only_credits
bool
default:"False"
only_credits
instance_label
Optional[str]
instance_label

Returns

str — Result from the API call.

Example

from vastai import VastAI

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