Create Company
Endpoint: POST /companies
Authentication: Bearer Token (required)
Request
Headers
| Name | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer token for authentication |
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | The display name of the new company (e.g. "BProjects") |
| baseCurrencyString | string | Yes | The ISO 4217 currency code for the company's base currency (e.g. "USD") |
| isPrimary | boolean | No | Whether this company is the user's primary/ main company (e.g. true) |
Request Schema
{
"headers": {
"Authorization": "Bearer <token>"
},
"body": {
"name": "BProjects",
"baseCurrencyString": "USD",
"isPrimary": true
}
}