Change the additional-company quantity
PUT
/billing/companies
const url = 'https://api.invogi.com/v1/billing/companies';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"additional_companies":0}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.invogi.com/v1/billing/companies \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "additional_companies": 0 }'ADMIN or OWNER. Changes the subscription with proration. Archive excess active companies before reducing the allowance. The provider webhook reconciles the subscription if the immediate response cannot be read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”X-Invogi-Organization
string format: uuid
For a Clerk session, selects a workspace in which the user has an active membership. If omitted, the remembered accessible workspace is used. API keys remain bound to their own workspace and cannot select another tenant.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
additional_companies
required
integer
Example
{ "additional_companies": 0}Responses
Section titled “Responses”Successful response
Invalid request
Media typeapplication/json
Missing or invalid API key
Media typeapplication/json
API key lacks required scope/role
Media typeapplication/json
Conflicting idempotency key or resource processing state
Media typeapplication/json