Skip to content
Proud to collaborate with Microsoft for Startups

subscription.billing.platform-user-seat.checkout ​

Create a paid Stripe Checkout URL for additional platform user seats.

Create a Stripe Checkout URL for additional platform user seats.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-subscription
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
subscription_uuiduuidNo——
quantityintegerNo——
add_seatsintegerNo——
success_urlstringYes——
cancel_urlstringYes——
user_uuiduuidNo——
return_channeljsonNo——
agent_session_refstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidNo——
subscription_uuiduuidNo——
item_codestringNo——
seat_kindstringNo——
prior_quantityintegerNo——
target_quantityintegerNo——
add_seatsintegerNo——
usedintegerNo——
availableintegerNo——
current_period_startstringNo——
current_period_endstringNo——
proration_behaviorstringNo——
one_time_amountintegerNo——
currencystringNo——
stripe_customer_refstringNo——
stripe_price_refstringNo——
stripe_checkout_session_refstringNo——
checkout_urlstringNo——
stripe_subscription_item_refstringNo——
seat_changejsonNo——
billing_item_uuiduuidNo——
entitlement_grant_uuiduuidNo——
next_actionjsonNo——
return_channeljsonNo——
agent_session_refstringNo——
statusstringNo——
completed_atstringNo——
canceled_atstringNo——
cancel_reasonstringNo——
failed_atstringNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—create_checkout—
checkout_createdNoNo———
canceledNoYesYes——
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingcreate_checkoutcheckout_created—
checkout_createdpayment_receivedcompleted—
checkout_createdcancelcanceled—
* (any state)failfailed—

Business Errors ​

CodeMessage Template
BILLING_OPERATION_INPUT_ERROR
BILLING_OPERATION_STRIPE_NOT_CONFIGUREDSTRIPE_SECRET_KEY is required for paid billing item changes
BILLING_OPERATION_PRICE_NOT_CONFIGUREDNo Stripe price is configured for {item_code}
BILLING_OPERATION_PLATFORM_SUBSCRIPTION_NOT_FOUNDNo active platform subscription found for organization
BILLING_OPERATION_PLATFORM_SUBSCRIPTION_NOT_BILLEDOrganization {organization_uuid} has an active platform subscription record with no Stripe subscription behind it — platform checkout must complete before paid add-ons can be purchased
BILLING_OPERATION_CHECKOUT_URL_UNAVAILABLEStripe did not return a checkout URL

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "subscription.billing.platform-user-seat.checkout",
  "initial_data": {
    "organization_uuid": "value",
    "success_url": "value",
    "cancel_url": "value"
  }
}