confirm_order
Place and pay for a Yandex Lavka order after the user confirms the previewed total. Charges the card only if the cart matches the preview.
Instructions
Place the order and CHARGE the card. Irreversible — real money.
Call ONLY after checkout_preview was run and the user explicitly said yes to the previewed total. Pass that exact total as confirmed_total. The order is refused unless: a preview was run recently, confirmed_total matches it, and — critically — the live cart still matches the previewed cart at submit time (same version and total). If anything drifted, nothing is charged and you must preview + confirm again.
Returns the order id and payment_status. "wait_user_action" means the bank requires 3-D Secure — give the user redirect_url to finish paying. cancel_order cancels.
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": {
"confirmed_total": "<confirmed_total>"
},
"name": "confirm_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirmed_total | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||