Billing

Upgrade the current Stripe subscription to a higher published price

The server verifies that the FlashData price is active, available in the current livemode, USD-denominated, recurring, the same interval, and strictly more expensive than the current subscription price. Product, provider price, currency and proration options are never accepted from the browser. Local entitlement and credits change only after a verified provider event is projected.

post/billing/subscription-changes

Request

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

Headers

Idempotency-Keystring required

Request body

priceIdstring required

Response

Subscription change submitted to Stripe

idstring required

FlashData subscription public ID. Entitlement still updates only after a verified provider event.

fromPriceIdstring required
toPriceIdstring required
effective'immediate' required
status'submitted' required

Changes

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