Submit a purchase request
submit_purchase_requestPrepares a purchase request: UniVend will buy in its own name from the supplier the client chose and invoice the client the supplier price plus commission (the rate for requests through the Agent Interface, or the client's contract rate), with VAT on the whole price. Send the supplier's quote or pro forma as a file (PDF, PNG or JPEG, up to 10 MB, addressed to PLANA Univend EOOD or unaddressed) or the product's web address, not both. Never send an invoice issued to the client. Unless the client's Agent Limits allow otherwise, the request waits for confirmation by an Authorised Person in the portal; an automatic answer is not acceptance. Requires an agent authorised by a signed-in client. Consequential: may create a commitment for the client; send an idempotency_key.
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_name": "<supplier_name>",
"supplier_email": "<supplier_email>",
"supplier_amount": "<supplier_amount>",
"description": "<description>",
"chosen_by_client": "<chosen_by_client>",
"idempotency_key": "<idempotency_key>"
},
"name": "submit_purchase_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language of the answer: bg (Bulgarian) or en (English). | |
| quote_file | No | The supplier's quote or pro forma (PDF, PNG or JPEG, up to 10 MB), base64. | |
| description | Yes | What is bought, as on the supplier's quote. | |
| product_url | No | The product's web address (https), instead of a file. | |
| purchase_type | No | services (default) or goods. | |
| supplier_name | Yes | The supplier the client chose. | |
| supplier_email | Yes | The supplier's email; UniVend sends its purchase order there. | |
| idempotency_key | Yes | A unique key you choose for this action (8-128 chars: letters, digits, . _ : -). Send the same key when you retry the same action; a new action needs a new key. | |
| supplier_amount | Yes | Supplier price excluding VAT, in EUR. | |
| chosen_by_client | Yes | Must be true: the client chose the supplier and the terms itself; UniVend buys in its own name and is not responsible for the supplier's performance. | |
| client_reference | No | The client's own reference (e.g. its PO number). | |
| supplier_reference | No | The number of the supplier's quote. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | ||
| state | Yes | ||
| message | Yes | ||
| order_id | Yes | ||
| reference | Yes | ||
| portal_url | Yes |