---
title: "POST /api/public/v1/billing/assignBaseLicense"
method: POST
path: "/api/public/v1/billing/assignBaseLicense"
---

# POST /api/public/v1/billing/assignBaseLicense

`POST /api/public/v1/billing/assignBaseLicense`

## Request

- Base URL: `https://app.fortuneos.ai`
- URL: `https://app.fortuneos.ai/api/public/v1/billing/assignBaseLicense`
- Auth: none declared

Gives 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 body

- object
  - `organizationId` string, required
  - `locationId` string, required

## Response `200`

OK

- object
  - `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

- **2026-11-02** `eddf3590bed9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/fortis/apis/fortune-os-api/changes/api/public/v1/billing/assignBaseLicense/post.md)

---

[API](https://skmtc.dev/fortis/apis/fortune-os-api.md) - [All operations](https://skmtc.dev/fortis/apis/fortune-os-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fortis/apis/fortune-os-api/revisions/522f3cea550d?raw)
