Core Resources
Companies
Understand how companies work as the primary organizational unit in Corebill.
Overview
Companies represent the businesses or brands within your organization. All resources (customers, invoices, quotes, items) are scoped to a specific company.
An organization can have multiple companies, which is useful for agencies or freelancers managing multiple brands or clients.
Company Context
API keys are scoped to a company: requests only see and change data of the key's company, with no extra parameter:
Bash
With the SDK you only pass the API key:
TypeScript
List Companies
List the companies of the organization that owns your API key (read-only; the key still acts on its own company):
Response:
JSON
Key Fields
| Field | Description |
|---|---|
id | Unique identifier (prefix: com_) |
slug | URL-friendly name |
currency | Default currency for new invoices/quotes |
invoice_prefix | Prefix for invoice numbers (e.g., INV) |
quote_prefix | Prefix for quote numbers (e.g., QUO) |