Get contact statement PDF
get_contact_statement_pdfRenders the contact's statement of account as a PDF, the same as Download statement in the app. Over MCP this returns a download link that works for about an hour. Nothing is sent to the customer. Use list_contacts 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_contact_statement_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Paidnice contact id, from list_contacts or as contactId on an invoice | |
| type | No | Used when templateId is omitted. outstanding: unpaid invoices and credits. activity: invoices and payments over the activity period, only for organisations that have an activity statement | outstanding |
| period | No | Which items to include, by issue date. Defaults to the organisation's statement setting | |
| currency | No | Only items in this currency (ISO code). Omit for every currency | |
| templateId | No | Statement template to render, as listed in Settings > Statements. Decides the statement type on its own. Omit for the organisation's default | |
| 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 |