Last updated

Company Change

The Company Change webhook triggers:

  • Company created
  • Company updated.

Summary

The following gives and overview of the fields in the json.

FieldDescription
idUnique identifier for the company record.
companyNameThe name of the company.
companyNumberThe registration number or unique identifier for the company.
emailAddressThe primary email address associated with the company (nullable if not specified).
accountCodeUnique code identifying the account associated with the company (nullable if not specified).
telephoneNumberThe company's primary telephone number (nullable if not specified).
statusThe current status of the company (e.g., "ACTIVE").
categoryThe category assigned to the company (nullable if not specified).

Primary Address Details

FieldDescription
primaryAddress.addressLine1The first line of the company's primary address (nullable if not specified).
primaryAddress.addressLine2The second line of the company's primary address (nullable if not specified).
primaryAddress.addressLine3The third line of the company's primary address (nullable if not specified).
primaryAddress.cityThe city of the company's primary address (nullable if not specified).
primaryAddress.postcodeThe postcode of the company's primary address (nullable if not specified).
primaryAddress.countryThe country of the company's primary address (nullable if not specified).
primaryAddress.isoCountry2ISO 3166-1 alpha-2 code of the primary address country (nullable if not specified).

Billing Address Details

FieldDescription
billingAddress.addressLine1The first line of the company's billing address (nullable if not specified).
billingAddress.addressLine2The second line of the company's billing address (nullable if not specified).
billingAddress.addressLine3The third line of the company's billing address (nullable if not specified).
billingAddress.cityThe city of the company's billing address (nullable if not specified).
billingAddress.postcodeThe postcode of the company's billing address (nullable if not specified).
billingAddress.countryThe country of the company's billing address (nullable if not specified).
billingAddress.isoCountry2ISO 3166-1 alpha-2 code of the billing address country (nullable if not specified).

Custom Data

FieldDescription
customDataAn array of additional custom data fields or metadata related to the company.

Example

{
      "id":202,
      "companyName":"aa",
      "companyNumber":"bb",
      "emailAddress":null,
      "accountCode":null,
      "telephoneNumber":null,
      "status":"ACTIVE",
      "category":null,
      "primaryAddress":{
        "addressLine1":null,
        "addressLine2":null,
        "addressLine3":null,
        "city":null,
        "postcode":null,
        "country":null,
        "isoCountry2":null
      },
      "billingAddress":{
        "addressLine1":null,
        "addressLine2":null,
        "addressLine3":null,
        "city":null,
        "postcode":null,
        "country":null,
        "isoCountry2":null
      },
      "customData":[]
    
}