Create a company
POST
/companies
const url = 'https://api.invogi.com/v1/companies';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"Example supplier"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.invogi.com/v1/companies \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "Example supplier" }'ADMIN or higher. Tenant-scoped operation.
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
name
required
string
legal_name
null | string
country_code
null | string
vat_id
null | string
registration_id
null | string
Example
{ "name": "Example supplier"}Responses
Section titled “Responses”Successful response
Media typeapplication/json
object
invoice_rematch
Any of:
object
status
required
string
confirmed
required
number
moved
number
skipped
number
remaining
number
object
confirmed
required
number
moved
required
number
skipped
required
number
remaining
required
number
status
required
string
object
status
required
string
confirmed
required
number
moved
number
skipped
number
remaining
number
id
required
string
name
required
string
legal_name
required
null | string
country_code
required
null | string
vat_id
required
null | string
registration_id
required
null | string
is_default
required
boolean
created_at
required
string format: date-time
Example
{ "invoice_rematch": { "status": "QUEUED" }}Invalid request
Media typeapplication/json
Missing or invalid API key
Media typeapplication/json
API key lacks required scope/role
Media typeapplication/json
Processing failed; use the error code and request ID for troubleshooting.
Media typeapplication/json