billing
billing-checkout

Purchase Single Design

PAYG: one or more tech packs, priced from the payg PaymentPlan row (the same catalog GET /billing/plans reads from) rather than a hard-coded Stripe Price ID, plus optional add-on line items (STRIPE_PAYG_ADDON_*, still price-ID based).

quantity is the number of packs. Stripe is charged unit price × quantity and the webhook grants quota × quantity credits.

Add-ons are stored in session metadata (payg_addons) for auditing.

post/billing/purchase-single

Request

  • Base URL
    https://api.threadchain.pro (the document declares no server; this is the origin it was published from)
  • Auth
    OAuth 2
    Password
    Token URL: auth/token

Request body

success_urlstring nullable
cancel_urlstring nullable
quantityinteger

Number of PAYG tech packs to purchase

payg_addonsstring[]

Optional PAYG add-ons (one-time), each must be one of: 'colourway', 'edits', 'factory_collab'

Response

Successful Response

checkout_urlstring required
session_idstring required

Changes

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