Get invoice PDF
get_invoice_pdfReturns the invoice PDF from Xero or QuickBooks Online, the same file the customer portal offers. Over MCP this returns a download link that works for about an hour. Use list_invoices to find the id. Read only.
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": {
"organisationId": "<organisationId>",
"id": "<id>"
},
"name": "get_invoice_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Paidnice invoice id, from list_invoices. This is not the invoice number | |
| organisationId | Yes | Id of the organisation to act on, from list_organisations |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Signed download URL. Anyone with it can download the file until it expires | |
| filename | Yes | Suggested name for the downloaded file | |
| expiresAt | Yes | When the URL stops working, about an hour after the call |