Preview
Endpoints
POST /api/v1/preview/add-on
POST /api/v1/preview/add-onPreview adding an add-on to a subscription: returns effective date, co-term behavior, prorated first charge, and applicable business rule
Scoped API key. Scopes: read, commerce, admin.
Add-on preview
Preview of an operation showing effective date, financial impact, applicable business rule, and policy evaluation. Read-only — no state changes.
The business rule governing this operation, or null if no rule applies
Resolved pricing including tier information
Subscription or product not found
POST /api/v1/preview/cancellation
POST /api/v1/preview/cancellationPreview cancelling a subscription: returns effective date, refund/credit info, retention requirements, and applicable business rule
Scoped API key. Scopes: read, commerce, admin.
Cancellation preview
Preview of an operation showing effective date, financial impact, applicable business rule, and policy evaluation. Read-only — no state changes.
The business rule governing this operation, or null if no rule applies
Resolved pricing including tier information
Subscription not found
POST /api/v1/preview/order-total
POST /api/v1/preview/order-totalPreview an order total: returns subtotal, tax, and shipping breakdown without creating an order. Calls the pluggable tax and shipping hooks configured for this tenant.
Scoped API key. Scopes: read, commerce, admin.
USDOrder total preview with subtotal, tax, and shipping breakdown
Breakdown of an order total including line items, tax, and shipping. Read-only — does not create an order.
Validation error
POST /api/v1/preview/plan-change
POST /api/v1/preview/plan-changePreview a plan change: returns effective date, proration, applicable business rule, and resolved price without executing the change
Scoped API key. Scopes: read, commerce, admin.
Plan change preview
Preview of an operation showing effective date, financial impact, applicable business rule, and policy evaluation. Read-only — no state changes.
The business rule governing this operation, or null if no rule applies
Resolved pricing including tier information
Subscription or product not found
Last updated
Was this helpful?
