Withdraw a request
withdraw_requestWithdraws a purchase request of the client before UniVend has accepted it (General Terms, clause 37). A request UniVend has already accepted or bought cannot be withdrawn here. 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": {
"order_id": "<order_id>",
"idempotency_key": "<idempotency_key>"
},
"name": "withdraw_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language of the answer: bg (Bulgarian) or en (English). | |
| reason | No | ||
| order_id | Yes | ||
| 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | ||
| message | Yes | ||
| order_id | Yes | ||
| reference | Yes |