create_checkout
Generate a payment checkout session for Lemon Squeezy products, allowing customers to purchase specific variants with customizable options and pricing.
Instructions
Create a new checkout session for a product variant.
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": {
"storeId": "<storeId>",
"variantId": "<variantId>"
},
"name": "create_checkout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| storeId | Yes | The store ID | |
| variantId | Yes | The variant ID | |
| customPrice | No | Optional: Custom price in cents | |
| productOptions | No | Optional: Product options | |
| checkoutOptions | No | Optional: Checkout options | |
| checkoutData | No | Optional: Additional checkout data | |
| preview | No | Optional: Preview mode | |
| expiresAt | No | Optional: Expiration date (ISO 8601) |