Add checkout payment (get payment URL)
add_checkout_paymentAdd a payment to an existing checkout session by specifying session ID, amount in UAH, and hold or charge decision. Returns the checkout URL to send to the customer.
Instructions
Add a payment to an existing checkout session. Returns the checkout URL to send to the customer plus the session id (the transaction id appears later in get_session_status).
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": {
"session_id": "<session_id>",
"amount": "<amount>",
"use_hold": "<use_hold>"
},
"name": "add_checkout_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Payment amount in UAH, e.g. 250.5 | |
| delivery | No | Delivery details object (Nova Poshta fields) | |
| products | No | Order lines shown to the payer | |
| use_hold | Yes | true — hold (block) the funds for a later capture via complete_hold; false — charge immediately. This is a required business decision: if the user has not said whether to hold or charge right away, ASK THEM before calling this tool. | |
| identifier | No | Recipient identifier (split payments) | |
| session_id | Yes | Session id returned by the create_*_session tool | |
| external_id | No | Merchant-side payment id, echoed in status/postbacks |