Overview
A subscription checkout creates a recurring deposit flow for a customer. Subscription checkouts are deposit-only and requireline_items plus subscription_data.
Dynamic inline pricing with price_cents is currently supported for subscription checkouts only. Regular purchase checkouts should continue to reference existing products by product_id.
How It Works
- Create a checkout session with
type: "deposit". - Include
line_itemsfor the subscription product. - Include
subscription_datawith the billing interval and interval count. - The customer is redirected to the Soap-hosted checkout page.
- Upon completion, Soap creates the checkout and associated subscription metadata.
API Request
Key Parameters
| Parameter | Required | Description |
|---|---|---|
customer_id | Yes | The customer’s unique identifier |
type | Yes | Must be "deposit" |
line_items | Yes | Array of existing product references or inline subscription products |
subscription_data.interval | Yes | Billing interval: day, week, month, or year |
subscription_data.interval_count | Yes | Number of intervals between charges |
experience | No | "web" or "webview" |
return_url | No | Where to redirect the customer after completion |
Line Items
Subscription line items can be either:- An existing product reference with
product_idandquantity. - An inline dynamic product with
name,price_cents, andquantity, plus optionalsku,url, anddedup.
dedup is true, include a stable sku. Soap reuses a matching product for the business by sku and price_cents instead of creating a duplicate.
When to Use
- Monthly or annual memberships
- Recurring subscription products
- Quarterly billing using
interval: "month"andinterval_count: 3
Back to Create Checkout
View the full API reference for creating checkouts.

