Creates the organization's billing profile with the given tier, billing mode and cadence, moves its legacy subscription's card onto the customer when it can, then cancels the legacy subscription. Returns whether a card is on file and whether a legacy subscription was cancelled. Returns 404 for an unknown organization, 409 when it is already on case billing and 400 for an invalid tier, mode and cadence combination. Super admin only.
POST
/admin/orgs/{orgId}/migrate-billing
curl \
--request POST 'http://api.example.com/admin/orgs/{orgId}/migrate-billing' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"tier": "public",
"billingMode": "payg",
"cadence": "monthly",
"overrides": {
"storageIncludedGB": 42.0,
"skuUnitAmountCents": {},
"perCaseSourceCap": 42.0
},
"billingEmail": "string"
}'
Request examples
{
"tier": "public",
"billingMode": "payg",
"cadence": "monthly",
"overrides": {
"storageIncludedGB": 42.0,
"skuUnitAmountCents": {},
"perCaseSourceCap": 42.0
},
"billingEmail": "string"
}
Response examples (200)
{
"data": {
"profileCreated": true,
"paymentMethodOnFile": true,
"legacySubscriptionCanceled": true
},
"statusCode": 200,
"timestamp": "2026-01-15T10:15:00.000Z"
}