Contact Data Models

Represents a person in accounting i.e. customer or vendor

Model IDEvent Data KeyDescription
accounting_contact_infoinfo
accounting_contact_addressesaddresses
accounting_contact_phonesphones
accounting_contact_emailsemails
accounting_contact_usersusersList of persons associated with contact

Contact Info

Model ID: accounting_contact_info

NameTypeDescription
idString
nameString
contactTypeEnumOne of
CUSTOMER,
VENDOR,
NOT_SPECIFIED
createdAtDate
updatedAtDate
statusEnum[ACTIVE, INACTIVE, NOT_SPECIFIED']
accountNumberString
companyIdString
currencyStringOne of among Currency Codes (ISO 4217) like-
INR,
USD,
EUR
taxNumberString
urlsList[String]Social profile and website related URLs.

Contact Addresses

Model ID: accounting_contact_addresses

NameTypeDescription
addressesList[Address]Please refer to Address Model

Contact Phones

Model ID: accounting_contact_phones

NameTypeDescription
phonesList[Phone]Please refer to Phone Model

Contact Emails

Model ID: accounting_contact_emails

NameTypeDescription
emailsList[Email]Please refer to Email Model

Contact Users

NameTypeDescription
accounting_contact_usersList[User]Please refer to User Model

Event Data Example

{
  "info": {
    "id": "02d528f1-89f2-4086-bbf2-6becd6ec407a",
    "name": "Updesh Test Accounting",
    "contactType": "CUSTOMER",
    "createdAt": "2024-05-23T12:42:34Z",
    "updatedAt": "2024-05-23T12:42:34Z",
    "status": "ACTIVE",
    "accountNumber": "1-030303032",
    "companyId": "ac19c8f9-a901-4db3-bef1-5aaca2a7c15a",
    "currency": "USD",
    "taxNumber": "GST-12339",
    "urls": [
      "https://getknit.dev",
      "https://xero.accounting.com"
    ]
  },
  "emails": [
    {
      "type": "WORK",
      "email": "[email protected]"
    }
  ],
  "phones": [
    {
      "type": "PERSONAL",
      "phoneNumber": "91819119292"
    },
    {
      "type": "WORK",
      "phoneNumber": "9838783908"
    }
  ],
  "addresses": [
    {
      "addressLine1": "72/1A Church Street",
      "addressLine2": "Texas USA",
      "city": "Texas",
      "state": "Atlanta",
      "country": "USA",
      "zipCode": "20203939",
      "addressType": "BILLING"
    },
    {
      "addressLine1": "72/1A",
      "addressLine2": "USA",
      "city": "Texas",
      "state": "Atlanta",
      "country": "USA",
      "zipCode": "20203939",
      "addressType": "SHIPPING"
    }
  ],
  "users": [
    {
      "id": "1920",
      "email": "[email protected]"
    },
    {
      "id": "102",
      "email": "[email protected]"
    }
  ]
}