Account and billing

Create Checkout Session

Changed on

Create a Stripe Checkout session for purchasing credits. Requires an API key so we know whose account to top up. Returns { checkout_url } to redirect the user to.

post/api/billing/checkout

Request

  • Base URL
    https://epw.tools
  • Auth
    none declared

Headers

X-API-Key, string nullable

Request body

CheckoutRequest required
plan, string required
success_url, string required
cancel_url, string required
withdrawal_waiver, boolean

Response

Successful Response

unknown required

Changes

    • warning

      changed the pattern of the request property plan from ^(intro|single|project|(starter|pro|studio)(_monthly|_annual)?)$ to ^(one|intro|single|project|(starter|pro|studio)(_monthly|_annual)?)$

    • info

      added the new optional request property withdrawal_waiver