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.
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 |