post
https://api.zenskar.com/customer_portal/checkouts//confirm
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:
- Validate checkout state
- Create customer (if guest checkout)
- Create contract from checkout preview
- Update checkout status to 'contract_created'
- Return confirmed checkout details
