Get Invoice
get_invoiceFetch a single invoice's bill-to details, payment method, line items, totals, and PDF links for viewing or download.
Instructions
Get one invoice as data: who it is billed to, how it was paid (card brand and last four only), each line with its product, term, resulting domain expiry and status, and the gross, refunded and net totals in cents. The same figures as the PDF. url and pdfUrl open it on porkbun.com (the user must be signed in); downloadUrl downloads the PDF without signing in for 15 minutes, which is the link to hand a user who wants the file. Invoice IDs come from list_invoices; an ID not on this account returns INVOICE_NOT_FOUND.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice_id | Yes | Invoice (order) ID from `list_invoices`. |