Billing

Create a Stripe-hosted Checkout Session

Subscriptions and published credit packs use priceId. A custom top-up uses amountMinor instead (USD cents, $10 to $999,999.99); the server calculates credits at the fixed credit value and creates a private one-time Stripe price. Product, provider price, currency, success URL and cancel URL are never accepted from the browser. Credits are granted only after a verified paid event for the quoted amount.

post/billing/checkout-sessions

Request

  • Base URL: https://api.flashdata.dev/v2
  • URL: https://api.flashdata.dev/v2/billing/checkout-sessions
  • Auth: API key in cookie __Host-fd_session and API key in header X-CSRF-Token

Headers

Idempotency-Keystring required

Request body

OR

Response

Stripe Checkout Session

idstring required
urlstring uri required

Provider-hosted HTTPS URL on a Stripe-controlled *.stripe.com host. Web clients must validate the origin and redirect from a server-only boundary.

expiresAtstring date-time required

Changes

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