billing

Create On Demand Checkout

One-time Checkout for EXACTLY credits_needed credits at the on-demand rate ($0.035/credit, config) — the pay-or-pack out-of-credits path. The signed webhook grants the credits to the balance (kind=credit_pack path, idempotent on session id); the front re-runs the batch after success. MoR via the same Managed-Payments checkout as packs. Below Stripe's $0.50 min -> buy a pack.

post/v1/orgs/{org_id}/billing/credits/on-demand-checkout-session

Request

  • Base URL: https://api.sonenta.dev
  • URL: https://api.sonenta.dev/v1/orgs/{org_id}/billing/credits/on-demand-checkout-session
  • Auth: none declared

Path parameters

org_idstring required

Request body

credits_neededinteger required
success_urlstring uri required
cancel_urlstring uri required

Response

Successful Response

urlstring required
session_idstring required

Changes

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