Add or Update Company
post
[PlatformAddress]/api/1.0/contact?action=addOrUpdateCompany
Add or Update Company
{
"businessName": "New Company",
"tradingName": "ABC",
"email": "[email protected]",
"address": {
"line1": "address line 1",
"line2": "address line 2",
"stateCode": "QLD",
"postalCode": "4227",
"countryCode": "AU"
},
"primaryAccountManagerId": 123,
"secondaryAccountManagerId": 123,
"industryId": 11,
"isAgent": 1,
"commissionSpace": 20,
"commissionSpaceType" : 2,
"commissionFoodType": "2",
"commissionFood":"10",
"commissionBeverage": 30,
"commissionBeverageType" : 1,
"commissionAudioVisual": 50,
"commissionAudioVisualType" : 2,
"commissionAccommodation": 50,
"commissionAccommodationType": 1,
"iataNumber": "123456789",
"customFields": [
{
"fieldId": 6,
"value": "2022-08-30 10:00:00 UTC"
},
{
"fieldId": 7,
"value": "string"
}
]
}
{
"id": 1618,
"businessName": "Updated Company name",
"address": {
"line1": "address line 11",
"line2": "address line 22",
"stateCode": "QLD",
"postalCode": "4227",
"countryCode": "AU"
}
"primaryAccountManagerId": 123,
"secondaryAccountManagerId": 123,
"industryId": 11,
"isAgent": 1,
"commissionSpace": 20,
"commissionSpaceType" : 2,
"commissionFoodType": "2",
"commissionFood":"10",
"commissionBeverage": 30,
"commissionBeverageType" : 1,
"commissionAudioVisual": 50,
"commissionAudioVisualType" : 2,
"commissionAccommodation": 50,
"commissionAccommodationType": 1,
"iataNumber": "123456789",
"customFields": [
{
"fieldId": 6,
"value": "2022-08-30 10:00:00 UTC"
},
{
"fieldId": 7,
"value": "string"
}
]
}
keys |
---|
line1 |
line2 |
line3 |
line4 |
city |
stateCode (e.g: QLD) |
countryCode (e.g: AU) |
postalCode |
Property | Description |
---|---|
success | If the company was successfully added or updated |
id | The unique identifier for the company |
message | Message of the failure (if success was false) |
This call takes values for a company, and either
- 1.Updates the values for that company (after you have provided an id in the parameters), or
- 2.Adds the company to the system (if the id parameter is missing)
The result of this call will contain the status of the result (either true or false) and the company identifier of the updated or newly created company.
The properties of the company currently supported are:
- businessName
- externalId
- tradingName
- businessNumber
- phone
- fax
- website
- email
- address
- This is an object
- primaryAccountManagerId
- secondaryAccountManagerId
- industryId
- isAgent
- commissionSpace
- commissionSpaceType
- commissionFoodType,
- commissionFood
- commissionBeverage
- commissionBeverageType
- commissionAudioVisual
- commissionAudioVisualType
- commissionAccommodation
- commissionAccommodationType
- iataNumber
- customFields
Last modified 1yr ago