Create checkout session
create_checkout_sessionCreate a NovaPay checkout session to collect payment and Nova Poshta delivery details. Returns a session ID for generating a customer payment URL.
Instructions
Create a NovaPay Checkout session (payment + Nova Poshta delivery collection). Returns the session id. To get a payment URL for the customer, follow up with add_checkout_payment.
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": {
"callback_url": "<callback_url>"
},
"name": "create_checkout_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| delivery | No | Delivery details object | |
| fail_url | No | ||
| metadata | No | ||
| success_url | No | ||
| callback_url | Yes | Merchant URL for postbacks (required for checkout) | |
| client_phone | No | Payer phone, e.g. +380501112233 | |
| create_express_waybill | No | Create a Nova Poshta express waybill |