Get an invoice
get_invoiceOne UniVend invoice to the client, with the link to it in the portal. Requires an agent authorised by a signed-in client.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language of the answer: bg (Bulgarian) or en (English). | |
| invoice_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| number | Yes | ||
| currency | Yes | ISO 4217 currency code, e.g. EUR. | |
| due_date | Yes | ||
| amount_tax | Yes | An amount of money in the currency given, 2 decimals. | |
| invoice_id | Yes | ||
| portal_url | Yes | ||
| amount_total | Yes | An amount of money in the currency given, 2 decimals. | |
| payment_state | Yes | ||
| amount_untaxed | Yes | An amount of money in the currency given, 2 decimals. | |
| amount_residual | Yes | An amount of money in the currency given, 2 decimals. | |
| order_reference | Yes |