List available payment methods
payment_methodsList available payment methods for the current cart and selected delivery option. Use after delivery selection to obtain the payment_id needed for order submission.
Instructions
List the payment-method groups available for the current Alza account cart (mobile API getDeliveryPaymentGroups payment projection). Use after delivery_options and before order submission, to show the user payment choices and to obtain the payment_id needed by web_place_order (e.g. 103 proforma) or the mobile checkout. Requires a non-empty cart. Requires a loaded mobile API access token — check account_status first; if none is loaded, run auth_start, have the user complete the browser sign-in, then auth_exchange with the returned code and state. Read-only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "payment_methods"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selected_delivery_option_id | No | Delivery option id from `delivery_options` to list the payments valid for that delivery. Omit for the default set. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| err | No | ||
| msg | No | ||
| data | No |