Calculate a price
quote_priceCalculates what UniVend would invoice for a purchase: the supplier price excl. VAT you enter, the UniVend commission, VAT on the whole price, and the total on our invoice. Computed by the same formula as the univend.bg portal, at the commission rate for requests through the Agent Interface, which is lower than in the portal (a signed-in client with a contract rate gets that rate). This is a calculation, not an offer or an order.
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": {
"supplier_amount": "<supplier_amount>"
},
"name": "quote_price"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language of the answer: bg (Bulgarian) or en (English). | |
| currency | No | Only EUR is accepted. | |
| purchase_type | No | What is bought: services (default) or goods. | |
| supplier_amount | Yes | The supplier's price excluding VAT, in the site currency (EUR). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | ||
| total | Yes | Total on our invoice, VAT included. | |
| currency | Yes | ISO 4217 currency code, e.g. EUR. | |
| vat_rate | Yes | VAT rate in percent, charged on the whole price. | |
| rate_basis | Yes | default: the commission rate for requests through the Agent Interface; contract: the client's contract rate (only after sign-in). | |
| vat_amount | Yes | An amount of money in the currency given, 2 decimals. | |
| computed_at | Yes | A date and time in ISO 8601, UTC. | |
| terms_version | Yes | ||
| price_excl_vat | Yes | UniVend price to you excl. VAT (supplier price plus commission). | |
| commission_rate | Yes | UniVend commission in percent. | |
| supplier_amount | Yes | Supplier price excl. VAT, as entered. | |
| commission_amount | Yes | UniVend commission. |