billing

Create Checkout Session

Create Stripe Checkout Session for new subscription.

Validates:

  • Plan exists and is active
  • Account doesn't already have active subscription
  • Billing interval is valid for the plan
post/api/v1/billing/checkout-sessions

Request

  • Base URL: https://api.gnosari.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.gnosari.com/api/v1/billing/checkout-sessions
  • Auth: one of:
    • HTTP bearer
    • API key in header X-AUTH-TOKEN

Request body

plan_identifierstring required

Subscription plan identifier

billing_intervalstring required

Billing interval (month or year)

success_urlstring required

URL to redirect after successful payment

cancel_urlstring required

URL to redirect after canceling payment

Response

Successful Response

checkout_urlstring required

Stripe Checkout URL

session_idstring required

Stripe Session ID

Changes

No recorded changes to this operation across all 1 revision of this API.