Confirm checkout

Confirm a checkout session and create the actual contract.

This endpoint transitions a checkout from preview/pending state to confirmed, creating the actual contract in the system.

Prerequisites:

  • Checkout must be in 'pending' or 'payment_succeeded' status
  • Checkout must not be expired
  • For guest checkouts, customer will be created automatically

Payment Method:

  • Optional payment_method_id can be provided
  • If provided, it will be stored with the checkout

Flow:

  1. Validate checkout state
  2. Create customer (if guest checkout)
  3. Create contract from checkout preview
  4. Update checkout status to 'contract_created'
  5. Return confirmed checkout details
Language
Credentials
Click Try It! to start a request and see the response here!