Skip to main content
Generate PDF invoices based on filters.

Signature

VastAI.generate_pdf_invoices(
    quiet: bool = False,
    start_date: Optional[str] = None,
    end_date: Optional[str] = None,
    only_charges: bool = False,
    only_credits: bool = False
) -> 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

Returns

str — Result from the API call.

Example

from vastai import VastAI

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