Description
I’d like to understand how plans/licenses and users work, in particular how licenses are associated to users.
Which App Type (OAuth / Chatbot / JWT / Webhook)?
server-to-server JWT
I’m trying to understand if I got it correctly.
- I create a sub-account under my master account
- I call “POST /accounts/{accountId}/plans” to buy plans under a specific sub account. My master account will pay for the license fee. Ex: type: monthly, hosts: 3
- I create users in the sub-account, with type: 2 (licensed). Creation will fail if no licenses are available in the sub-account
- (optional) I can add/remove licenses to users changing the type with " PATCH /users/{userId}" changing the type from 2 to 1 or from 1 to 2. Request will fail if there are no more free licenses.
Is this all correct?