Preview billing estimates for a checkout request without creating any records.
This endpoint runs the billables estimation flow (dry run) to provide a preview of what the billing would look like if a checkout were created and confirmed. No checkout session, activity logs, or other database records are created.
Use Cases:
Checkout Type Detection: The checkout type is automatically determined based on the provided fields:
plan_based): Provide plan_id without contract_idcontract_id with product_quantitiesResponse: Returns simplified billing estimates with:
current_invoice: Charges for the current billing periodnext_invoice: Upcoming charges for the next period (null if none)Documentation Index
Fetch the complete documentation index at: https://docs2.zenskar.com/llms.txt
Use this file to discover all available pages before exploring further.
Schema for creating a new checkout session.
Supports two flows based on contract_id presence:
ID of the plan. Required for new contracts.
Existing contract ID for amendments. When provided, product_overrides are required to specify quantity updates.
Start date for the contract. Defaults to current date if not provided.
End date for the contract. Optional for evergreen contracts.
ID of an existing customer. Required for non-guest checkouts.
ID of the business entity. Required for guest checkouts.
When the checkout session expires. Defaults to system configuration if not provided.
URL to redirect customers after successful checkout completion.
1 - 2083URL to redirect customers if they cancel the checkout.
1 - 2083List of product overrides for the checkout. Each entry can specify quantity and/or is_enabled overrides.
Preview estimates generated successfully
Response schema for checkout preview.
Returns billing estimates without creating any database records. This is a lightweight preview of what the billing would look like if the checkout were to be created and confirmed.
Invoice estimates (current and next invoice only).