---
title: "Create company"
method: POST
path: "/companies"
tags: ["Companies"]
---

# Create company

`POST /companies`

Use the *Create company* endpoint to create a new [company](https://docs.codat.io/sync-for-payables-api#/schemas/Company) that represents your customer in Codat. 

A [company](https://docs.codat.io/sync-for-payables-api#/schemas/Company) represents a business sharing access to their data.
Each company can have multiple [connections](https://docs.codat.io/sync-for-payables-api#/schemas/Connection) to different data sources, such as one connection to Xero for accounting data, two connections to Plaid for two bank accounts, and a connection to Zettle for POS data.

If forbidden characters (see `name` pattern) are present in the request, a company will be created with the forbidden characters removed. For example, `Company (Codat[1])` with be created as `Company Codat1`.

## Request body

- CompanyRequestBody
  - `name` string, required — Name of company being connected.
  - `description` Description — unresolved $ref
  - `groups` Items[] — Reference to the groups that the company is assigned to. — unresolved $ref

## Response `200`

OK

- Company — unresolved $ref

## Other responses

- `400` — The request made is not valid.
- `401` — Your API request was not properly authorized.
- `402` — An account limit has been exceeded. The type of limit is described in the error property: - You have exceeded the 50-company limit that applies to a Free plan. Delete any companies you no longer need and retry the request. - The requested sync schedule is not allowed. You requested an hourly sync schedule but this functionality is not included in the Free plan. - Your Free account is older than 365 days and has expired. Contact support@codat.io.
- `403` — You are using an outdated API key or a key not associated with that resource.
- `429` — Too many requests were made in a given amount of time. Wait a short period and then try again.
- `500` — There is a problem with our server. Please try again later.
- `503` — The Codat API is temporarily offline for maintenance. Please try again later.

## Changes

- **2024-05-24** (v1) `88bd093eb227` — 2 info
  - added the optional property `dataConnections/items/dataConnectionErrors/items/resolvedOnUtc` to the response with the `200` status
  - added the optional property `dataConnections/items/dataConnectionErrors/items/status` to the response with the `200` status

[Change history](https://skmtc.dev/codatio/apis/sync-for-payables/changes/companies/post.md)

---

[API](https://skmtc.dev/codatio/apis/sync-for-payables.md) · [All operations](https://skmtc.dev/codatio/apis/sync-for-payables/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/codatio/sync-for-payables/revisions/88bd093eb227/schema)
