billing

Start a Stripe Checkout Session for a credit top-up

Creates a Stripe Checkout Session crediting the organization identified by the path (:org) and returns the hosted checkout URL to redirect the customer to. The body carries only the top-up amount_cents (a positive integer within supported bounds). The credit itself is posted asynchronously when Stripe fires the matching webhook.

post/api/v0/billing/checkout/{org}

Request

  • Base URL: https://api.harmont.dev
  • URL: https://api.harmont.dev/api/v0/billing/checkout/{org}
  • Auth: HTTP bearer

Path parameters

orgstring required

The organization slug.

Request body

amount_centsinteger required

The credit top-up amount in cents. Must be a positive integer within the supported bounds (100–1,000,000).

Response

The hosted Stripe Checkout URL

checkout_urlstring required

The hosted Stripe Checkout Session URL.

Changes

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