POST /api/public/v1/billing/assignBaseLicense
Changed onGives a location of the business one of its free, verified base licenses; a location that holds one already is left as it is. Refused with NOT_FOUND as locationNotFound for a location that is not the business's own, and with PRECONDITION_FAILED as locationArchived for an archived one and as baseLicenseUnavailable unless the base is eligible with a free license. Never changes what Stripe bills. For a classified test organization's Stripe Sandbox records: refused with FORBIDDEN as sandboxNotAllowed unless the caller is a verified Fortune OS employee, and with PRECONDITION_FAILED as billingNotConfigured while the Sandbox is not configured; the experiment is not asked.
Request
- Base URLhttps://app.fortuneos.ai
- Authnone declared
Request body
object required
organizationId, string required
locationId, string required
Response
OK
object required
state, 'noSubscription' | 'eligible' | 'unverified' | 'pastDue' | 'legacyUnrestricted' | 'unavailable' required
canAssign, boolean required
providerQuantity, number required
verifiedCapacity, number required
unverifiedQuantity, number required
assignedLocationIds, string[] required
assignedCount, number required
freeCount, number required
Changes
- info
endpoint added
- info