Skip to main content

Companies

Companies are used to group contacts from the same company together. This parent - child relationship i.e. tree organizational structure is very powerful because it allows inheriting addresses, settings, permissions, pricing, etc. A usergroup was used to represent a company in a B2B environment, but that concept will soon be deprecated and a dedicated Companies resource should be used. Usergroups can still be used to group Companies.

The company API is only available on the Propeller cloud version. The legacy version of Propeller does not support this API

Company Lookup keys

KeyTypeDescription
idintegerPropeller company id
sourceIdstringExternal system unique id. sourceId should be combined with source

What are lookup keys?

Fields

NameDescriptionType
nameCompany namestring
languageDefault system languagestring
ISO 639-1
parentParent usergroupJSON object that identifies the parent. id or sourceId in combination with source
taxNumberCompany tax numberstring
cocNumberChamber of commerce numberstring
debtorIdA unique id representing the companyinteger
string
phoneCompany phone numberstring
emailCompany email addressstring
departmentDepartmentstring
officeOfficestring
notesNotesstring
inheritProductListIndicates whether pricing should be inherited from parent usergroupenum

Y = Yes
N = No
inheritOrderListIndicates whether the order list should be inherited from the parent usergroupenum

Y = Yes
N = No
budgetCompany budget settingsenum

Y = Contacts in the company use budget and may only order products within budget

H = Contacts in the company use budget and may also order products outside budget

N = Contacts in the company do not use budgets
budgetInheritIndicates whether budget settings should be inherited from parent usergroupenum

Y = Yes
N = No
orderListAllowAllOrder list settingsenum

N = Order everything within the order list
Y = Order everything outside the order list
A = Order everything, but products outside the order list must be authorized
U = Order everything
P = Order restricted products
sourceIdExternal system unique idstring
sourceExternal systemstring

Company Errors

This section describes error codes specific for the Company resource.

CodeError TypeStatus CodeMessageReason
40004CompanyExists400Company already existsCompany with such lookup key already exists
40005CompanyMultipleFound400Multiple companies found. Please provide additional filtersMultiple companies with such lookup key exist
40006CompanyNotFound404Company does not existCompany with such lookup key not found
40007ParentCompanyNotFound404Parent company not foundParent company with such lookup key not found. This error is typical when working with company sub-resources (e.g. attributes, addresses)
40008CompanyNotAllowed405Company is not allowedUsually when company is in Recycle Bin and can't be used
90006AddressNotFound404Address does not existCompany address does not exist