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
Response
Stripe Checkout Session
Changes
No recorded changes to this operation across all 1 revision of this API.