Skip to content

List the organization's active companies (legal entities), default first

GET
/companies
curl --request GET \
--url 'https://api.invogi.com/v1/companies?include_archived=false' \
--header 'Authorization: Bearer <token>'
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.

include_archived
boolean

Companies and the plan’s company allowance

Media typeapplication/json
object
items
required
Array<object>
object
id
required
string format: uuid
name
required
string
legal_name
string | null
country_code
string | null
>= 2 characters <= 2 characters
vat_id
string | null
registration_id
string | null
is_default
required
boolean
archived_at
string | null format: date-time
created_at
string format: date-time
invoice_rematch

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
status
required
string
Allowed values: QUEUED COMPLETED FAILED
confirmed
required

Already in this company; flag cleared

integer
moved

Moved here from another company (COMPLETED only)

integer
skipped

Matched to a purchase order of their current company; still flagged (COMPLETED only)

integer
remaining

Beyond the inline run’s batch of 100; set the VAT ID again to continue (COMPLETED only)

integer
limit
required

Active companies the contract allows (the plan’s included companies plus purchased additional companies)

integer
used
required
integer

Example

{
"items": [
{
"invoice_rematch": {
"status": "QUEUED"
}
}
]
}

Missing or invalid API key

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: NOT_FOUND UNAUTHORIZED FORBIDDEN INVALID_REQUEST CONFLICT RATE_LIMITED USAGE_LIMIT_EXCEEDED PROCESSING_FAILED
message
required
string
request_id
required
string
details

Optional stable, content-free context, e.g. {reason, resets_at, preparation_id}.

object
key
additional properties
One of:
string

Example

{
"error": {
"code": "NOT_FOUND"
}
}