Create Single Company
POST {{base_url}}/company/v2/companies
Create a company to link their financial data to the company. While creating a company, you can add the following as company details:
- Name
 - Description
 - Website
 - Address
 - Industry
 - External id
 - CRN (Companies house number)
 
Attributes
| Field Name | Type | Description | 
|---|---|---|
| name | string | Company name | 
| address | string | Registered address of the company | 
| website | string | Website (www.smewebsite.com) | 
| industry | string | Industry name | 
| description | string | Company description | 
| externalId | string | External ID that a partner may want to use to identify a company | 
| crn | string | Companies house number; specific to companies registered with Companies house in the UK | 
Error messages
| Condition | Response Status | Response Body | 
|---|---|---|
| Without company name | 400 Bad Request | {“error”: “Missing/Invalid name”} | 
| Wrong body | 400 Bad Request | {error: Missing/Invalid JSON}  | 
| Empty request body | 400 Bad Request | {error: Missing/Invalid name}  | 
| Wrong Partner ID | 403 Access Denied | {"error”: “Access denied”} | 
Request Body
{"name"=>"Company name", "description"=>"Micro SME", "website"=>"www.companyname.com", "address"=>"London", "industry"=>"IT", "externalId"=>"19988-7766", "crn"=>"14455-345"}
HEADERS
| Key | Datatype | Required | Description | 
|---|---|---|---|
Content-Type | string | ||
X-Api-Key | string | ||
X-Partner-Id | string | ||
Authorization | string | 
RESPONSES
status: Created
{"id":"CompanyID12345","name":"Company name","description":"Micro SME","website":"www.companyname.com","industry":"IT","address":"London","externalId":"19988-7766","crn":"14455-345","createdAt":"2020-10-28T15:27:15.367Z"}