REST API Organisations
POST /v1/crm/organisations
Creates or updates an organisation.
If no ‘externalIntegrationId‘ is present, then the organisations’s name is used to match an organisation to an existing organisation in Priava.
A new organisation will be created only if one cannot be matched.
Request:
A JSON POST request body expecting APIToken in the request header which re-authenticates the user with each request.
The organisation’s name.
The organisation’s external integration ID. Hidden from the Priava UI, but can be used to store a foreign integration key.
The source of the integration e.g. name of your application.
The organisations’s external reference number – used as a foreign key that is visibile on the Priava UI.
The name of the parent organisation. This name must match an existing organisation in Priava.
The organisation type – must match the CRM organisation types in the Priava tenant’s system.
The organisation market sector – must match the CRM organisation market sectors in the Priava tenant’s system.
The organisation’s web site address.
The organisation’s primary email address.
The contact’s external reference number – used as a foreign key that is visibile on the Priava UI.
The contact’s debtor number.
The organisation’s business phone number.
Any other phone number relative to the organisation.
The organisation’s fax number.
The organisation/site address. See below for address properties required.
The organisation’s postal address. See below for address properties required.
Any other address to be stored for the organisation. See below for address properties required.
True / False – whether the organisation is inactive or active in the system.
*Either a business phone or other phone number is required (not both) in order to create an organisation.
All addresses should be formatted as below.
Line 1 of the address.
Line 2 of the address.
Line 3 of the address.
The suburb for the address.
The state for the address.
The postcode / zip for the address.
The country for the address. A list of valid country entries can be found here.