Get Invoice Pdf
get_invoice_pdfDownload a Porkbun invoice PDF by invoice ID, returning the embedded PDF plus filename, size, and a 15-minute download link for user access.
Instructions
Get an invoice PDF: the same document as Download PDF on porkbun.com. The file comes back as an embedded PDF resource (for clients that can show or save files), alongside filename, sizeBytes and downloadUrl, a link that downloads it without signing in for 15 minutes (downloadExpires). To give the user the file, hand them downloadUrl; do not try to reproduce the file's bytes yourself. get_invoice also returns a downloadUrl if you only need the link.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"invoice_id": "<invoice_id>"
},
"name": "get_invoice_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice_id | Yes | Invoice (order) ID from `list_invoices`. |