Stripe Subscriptions

Create Stripe checkout URL for workspace subscription

post/workspaces/{workspace_id}/subscription/create-checkout

Request

  • Base URL: https://app.mammoth.io/api/v2
  • URL: https://app.mammoth.io/api/v2/workspaces/{workspace_id}/subscription/create-checkout
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-KEY and API key in header X-API-SECRET and API key in header X-WORKSPACE-ID

Path parameters

workspace_idinteger required

Workspace refers to a collection of projects. Workspace ID is unique identifier for workspace.

Example:4

Request body

success_urlstring required
cancel_urlstring required
add_payment_method_onlyboolean nullable
storage_gbinteger nullable

Chosen TOTAL storage allocation in GB; omit for the plan's included storage

Response

Document created, URL follows

checkout_urlstring required
checkout_session_idstring required
messagestring required

Changes

No recorded changes to this operation across all 3 revisions of this API.