Skip to main content

Company webhook payload

The resource:url for a Company webhook payload uses this basic format:

https://marketplace_url/api/account/v1/companies/company_id?isExternalId=value

Here marketplace_url is the main URL for the marketplace (for example, mycompany.byappdirect.com ), and company_id is the marketplace identifier for the company (for example, b3644az4-c9e9-3dc2-78b4-0470682ba9dc ).

The company_id may be a universally unique identifier, or it may be an identifier that is used for this company on an external system, as determined by your marketplace settings. For more information, contact your AppDirect technical representative.

When a Company:Added or a Company:Changed webhook is activated, the content section of the payload includes the following attributes:

AttributeTypeDescription
idStringThe primary identifier used to identify the company.
Depending on the marketplace settings, this id matches either the externalId or the uuid. For more information, contact your AppDirect technical representative.
nameStringThe name of the company.
enabledBooleanWhether the company is enabled.
When a company is enabled, its users are able to log in to the company. If a company is disabled, its users are not able to log in.
contactObjectAn object that stores information about the different methods to contact the company.
contact:phoneNumberStringPrimary phone number for the company.
contact:imsStringAn Instant Messaging Service identifier that is associated with the company. Deprecated (the value is always "null").
contact:homePhoneStringA home phone number for a contact person.
Deprecated (the value is always "null").
contact:mobilePhoneStringA mobile phone number for a contact person.
Deprecated (the value is always "null").
contact:addressObjectAn object that stores information about the physical address of the company's main office.
Equivalent to "address" in the V2 API.
{...}:address:street1StringThe first part of the street address.
Equivalent to the V2 "address:street1".
{...}:address:street2StringAn optional second line for the street address.
Equivalent to the V2 "address:street2".
{...}:address:cityStringThe city in which the company's main office is officially located.
Equivalent to the V2 "address:city".
{...}:address:stateStringThe state or province in which the company's main office is officially located.
Equivalent to the V2 "address:state".
{...}:address:zipStringThe ZIP code or postal code.
Equivalent to the V2 "address:zip".
{...}:address:countryStringThe country in which the company's main office is officially located.
Equivalent to the V2 "address:country".
sizeEnumA one-word descriptor for the company's size. Must be SMALL, MEDIUM, or ENTERPRISE.
Equivalent to the V2 "companySize".
statusEnumA one-word descriptor indicating whether the company is ACTIVE or INACTIVE.
A company becomes ACTIVE when its first user accepts the invitation to join it.
attributesObjectDeprecated (the value is always "null").
creationDateNumberThe time and date when the company was created on the marketplace, represented in UNIX Epoch milliseconds.
industryStringA one-word descriptor for the sector in which the company operates.
The Marketplace Manager configures the permitted values on the marketplace.
salesAgentObjectInformation about a linked Reseller user who is empowered to make purchases for this company.
salesAgent:idStringThe universally unique identifier (uuid) that identifies the salesAgent user.
salesAgent:hrefStringA URL that can be used to retrieve user information about the salesAgent user.
websiteStringThe URL for the company's main web site.
emailAddressStringThe main email address associated with the company.
dealerStringDeprecated (the value is always "null").
customAttributesObjectA list of company custom attributes that have been defined on the marketplace. Each custom attribute appears as a key:value pair.
uuidStringThe universally unique identifier (uuid) that identifies the company on the marketplace.
externalIdStringAn external identifier that may be used for this company in an external system.
countryCodeStringA two-character string that represents the country that is associated with the company. This must be a recognized ISO ALPHA-2 standard country code.
permissions [ ]ObjectAn array of string values that indicate the access granted to this company. Possible values: CHANNEL_ADMIN, RESELLER, DEVELOPER, and SALES_SUPPORT.
defaultIdpUuidStringThe universally unique identifier for an external identity provider that the user will always use to log in.
domainsStringDeprecated (the value is always "null").

Was this page helpful?