create_checkout
Create a checkout session for a product and return a URL to redirect customers for payment.
Instructions
Create a checkout session for a product. Returns a checkout URL to redirect customers to.
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": {
"product_id": "<product_id>"
},
"name": "create_checkout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product_id | Yes | Product ID to create checkout for | |
| request_id | No | Optional request ID to track the payment in your system | |
| success_url | No | URL to redirect after successful payment | |
| customer_email | No | Pre-fill customer email | |
| customer_name | No | Pre-fill customer name | |
| discount_code | No | Apply discount code | |
| units | No | Number of seats/units for seat-based billing | |
| metadata | No | Custom metadata to attach to the checkout |