Set invoice payment QR codes
set_invoice_qrTurns the payment QR codes (UPN, EPC) of an invoice draft or an open proforma on or off and sets the payment description and the purpose code. The settings are replaced as a whole: a QR code that is not given is turned off. The codes pay to the bank account of the document. Nothing is issued. Issued documents can't be changed.
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": {
"company_id": "<company_id>",
"invoice_id": "<invoice_id>"
},
"name": "set_invoice_qr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| epc | No | true: print the EPC QR code (SEPA credit transfer); off when not given. | |
| upn | No | true: print the UPN QR code (Slovenian payment order); off when not given. | |
| code | No | The SEPA purpose code of the payment; GDSV (purchase of goods and services) when not given. | |
| company_id | Yes | The id of the company, from list_companies. | |
| invoice_id | Yes | The id of the document, from list_invoices. | |
| payment_description | No | The payment description in the QR codes (one line); required when a QR code is on. {invoice_number} is replaced by the number of the document. |