Create checkout
lemonsqueezy_create_checkoutWRITE: Create a hosted checkout / payment link for a store + variant. Returns the created checkout including its url (the shareable payment link). API: POST /checkouts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| store_id | Yes | Store id (required). | |
| expires_at | No | ISO 8601 date-time when the checkout link expires. | |
| variant_id | Yes | Variant id to sell (required). | |
| custom_price | No | Override price in cents (integer). | |
| checkout_data | No | JSON:API checkout_data object (email, name, custom, discount_code, etc.). | |
| product_options | No | JSON:API product_options object (name, description, redirect_url, etc.). | |
| checkout_options | No | JSON:API checkout_options object (embed, media, button_color, etc.). |