/v1/checkout/sessionsCreate a Checkout Session
Creates a Checkout Session for a one-time purchase or subscription. Supply the session configuration, including its mode, payment settings, line items, customer information, and redirect behaviour as applicable. A 200 response returns the created session for use in the Checkout flow.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Checkout Session configuration for payment, subscription, customer collection, branding, line items, tax, consent, and related options.
currency must be a supported lowercase ISO currency code when supplied, and customer_creation must be always or if_required. billing_address_collection accepts auto or required, while consent_collection.terms_of_service accepts none or required. client_reference_id must not exceed 200 characters, and nested objects must include their schema-defined fields such as automatic_tax.enabled and custom_fields.key, label, and type.