set_payment_method
Choose which saved card Yandex Lavka orders charge, persisting the selection until changed. Pass a card ID from list_payment_methods or an empty string to use the account default.
Instructions
Choose which saved card orders will charge (persists). Pass an id from
list_payment_methods. Pass an empty string to revert to the account default.
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": {
"card_id": "<card_id>"
},
"name": "set_payment_method"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||