Company Data Model

How to get the list of Companies

There are two ways to fetch the list of Companies from your integrations:

1. Syncs (Webhook-based Bulk Reads)

Syncs provide an automated, push-based approach for bulk data retrieval. Once you set up a sync for an integration, Knit polls the source app for changes and sends updates straight to your webhook. This webhook-based model eliminates the need for you to continuously pull data.

Read more about syncs and webhooks here:
https://developers.getknit.dev/docs/register-webhook-url#/

2. Read APIs (On-demand Individual Reads)

Read APIs provide on-demand access to specific data through request-response calls. These are standard GET operations that allow you to retrieve company information whenever needed.

You can refer to accounting APIs here:
https://developers.getknit.dev/reference/get-company-info

Data Model

Model IDEvent KeyDescription
accounting_companies_infoinfo

Companies Info

Model ID: accounting_companies_info

FieldTypeDescription
idString
nameString
legalNameString
taxNumberString
fiscalYearStartMonthInteger
fiscalYearStartDayInteger
createdAtDate
isActiveBoolean
currencyString
urlsList[String]
addressesList[Address]
phonesList[Phone]
contactContact

Address

FieldTypeDescription
addressLine1String
addressLine2String
cityString
stateString
countryString
zipCodeString
addressTypeEnum[SHIPPING, BILLING]

Phone

FieldTypeDescription
typeEnum[WORK, MOBILE, HOME]
phoneNumberString

Contact

FieldTypeDescription
idString
emailString

Event Data Example

{
  "info": {
    "id": "60021447640",
    "name": "Knit Test",
    "legalName": "Knit",
    "taxNumber": "AHIPU2128J",
    "fiscalYearStartMonth": 3,
    "fiscalYearStartDay": 5,
    "createdAt": "2023-05-15T00:00:00Z",
    "isActive": true,
    "currency": "INR",
    "urls": [
      "[email protected]"
    ],
    "addresses": [
      {
        "addressLine1": "street1",
        "addressLine2": "street2",
        "city": "Delhi",
        "state": "Delhi",
        "country": "India",
        "zipCode": "110025",
        "addressType": "SHIPPING"
      }
    ],
    "phones": [
      {
        "type": "WORK",
        "phoneNumber": "89191828229"
      }
    ],
    "contact": {
      "id": null,
      "email": "[email protected]"
    }
  }
}