Download Hostinger invoice
Automatically download Hostinger invoice on hostinger.com. Download a single Hostinger (hPanel) invoice PDF by paymentSlug (from hostinger.com/list_invoices). Returns the PDF bytes as base64 plus a filename.
Input
paymentSlug requiredpaymentSlug from hostinger.com/list_invoices.
invoice_id optionalOptional invoice_id from hostinger.com/list_invoices, used only to name the file.
Output
filename requiredcontentBase64 requiredFAQ
List Hostinger invoices
List Hostinger (hPanel) billing invoices from Billing > Payment history. Returns total plus each invoice's payment_id, invoice_id, service, paid_at, amount and paymentSlug — metadata only. Feed a row's paymentSlug to hostinger.com/download_invoice to get that invoice's PDF. Reads the Paid tab only (not Refund history).
Hostinger login (Google SSO)
Log into Hostinger via Google sign-in and land on hPanel, returning the signed-in account read back from Hostinger itself rather than echoed from the request. If the browser already has a Hostinger session it returns straight away. Asking for an account other than the live session is refused by name instead of attempted, because Hostinger will not show its sign-in form while any session is open — sign out of hPanel first to switch accounts. Needs the extension-paired browser, not a managed/cloud one.
