List the organization's active companies (legal entities), default first
const url = 'https://api.invogi.com/v1/companies?include_archived=false';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.invogi.com/v1/companies?include_archived=false' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”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.
Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Companies and the plan’s company allowance
object
object
Returned when creating, restoring, or setting the VAT ID of a company: what happened to BUYER_UNMATCHED invoices naming that VAT ID. The company is saved regardless of the outcome. Invoices already in the company are confirmed during the request; moves from other companies run as a background job (QUEUED), or inline where no queue is available (COMPLETED / FAILED). FAILED leaves those invoices flagged; setting the VAT ID again retries.
object
Already in this company; flag cleared
Moved here from another company (COMPLETED only)
Matched to a purchase order of their current company; still flagged (COMPLETED only)
Beyond the inline run’s batch of 100; set the VAT ID again to continue (COMPLETED only)
Active companies the contract allows (the plan’s included companies plus purchased additional companies)
Example
{ "items": [ { "invoice_rematch": { "status": "QUEUED" } } ]}Missing or invalid API key