Skip to main content

Checkout a product or subscription

Checkout a product to buy it one time or start a subscription plan on a billing account.

Path Parameters
    org_id string required
    billing_id string required

    ID of the billing account to update the subscription for

Request Body required
    success_url string
    cancel_url string
    subscription_body object
    plan string
    trail_days int32
    product_body object
    product string
    setup_body object
    payment_method boolean
Responses

A successful response.


Schema
    checkout_session object
    id string
    checkout_url string
    success_url string
    cancel_url string
    state string
    plan string
    product string
    metadata object
    created_at date-time
    updated_at date-time
    expire_at date-time
Loading...