Creates a checkout session (DB only, no order, no external API calls). The order is created separately via POST /orders with checkoutSessionId.
Request body for creating a checkout session
URL to redirect to on successful payment. Supports {SESSION_ID} and {ORDER_ID} template variables.
"https://merchant.com/success?session_id={SESSION_ID}"
URL to redirect to on cancellation. Supports {SESSION_ID} and {ORDER_ID} template variables.
"https://merchant.com/cancel"
Arbitrary key-value metadata returned unchanged on retrieval
{
"sku": "widget-1",
"customer_id": "cust-123"
}Optional merchant-side reference ID
255Session TTL in seconds (min 300, max 86400, default 1800)
300 <= x <= 864001800
Checkout session created successfully