ls_create_checkout
Creates a checkout URL for a product variant, enabling customers to complete purchases with options for custom pricing, prefilled data, and checkout customization.
Instructions
Create a new checkout URL for a product variant. Returns a URL where the customer can complete their purchase. Supports custom pricing, prefilled customer data, and checkout customization.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| storeId | Yes | The store ID | |
| variantId | Yes | The variant ID for the product being purchased | |
| customPrice | No | Custom price in cents (overrides the variant price) | |
| enabledVariants | No | Array of variant IDs to show on the checkout (for products with multiple variants) | |
| No | Prefill customer email | ||
| name | No | Prefill customer name | |
| billingAddressCountry | No | Prefill billing country (ISO 3166-1 alpha-2) | |
| billingAddressZip | No | Prefill billing ZIP/postal code | |
| taxNumber | No | Prefill tax/VAT number | |
| discountCode | No | Pre-apply a discount code | |
| customData | No | Custom data object to attach to the order | |
| expiresAt | No | Checkout expiry date (ISO 8601 format) |