Contact
Return, update and create a customer contacts.
Released
Updated
| URL | Supports |
|---|---|
{URI}/contact/ | |
{URI}/contact/search?q={query} | |
| {URI} is exo.api.myob.com when connecting to the cloud or the address of the machine hosting the API when connecting on premise. | |
search returns contacts that match the specified search string.
Attribute Details
| Attribute | Type | Notes |
|---|---|---|
jobtitle | string,null | |
firstname | string,null | |
lastname | string,null | |
fullname | string,null | |
directphonenumber | string,null | |
mobilephonenumber | string,null | |
email | string,null | |
postaladdress | object | |
postaladdress.line1 | string,null | |
postaladdress.line2 | string,null | |
postaladdress.line3 | string,null | |
postaladdress.line4 | string,null | |
postaladdress.line5 | string,null | |
postalcode | string,null | |
deliveryaddress | object | |
deliveryaddress.line1 | string,null | |
deliveryaddress.line2 | string,null | |
deliveryaddress.line3 | string,null | |
deliveryaddress.line4 | string,null | |
deliveryaddress.line5 | string,null | |
deliveryaddress.line6 | string,null | |
advertsourceid | integer,null | Required on PUT |
advertsource | object,null | |
advertsource.description | string,null | |
advertsource.processid | integer | Required on PUT |
advertsource.communicationprocess | object,null | |
advertsource.communicationprocess.description | string,null | |
advertsource.communicationprocess.rel | string,null | |
advertsource.communicationprocess.title | string,null | |
advertsource.communicationprocess.id | integer | Required on PUT |
advertsource.communicationprocess.href | string,null | |
advertsource.rel | string,null | |
advertsource.title | string,null | |
advertsource.id | integer | Required on PUT |
advertsource.href | string,null | |
active | boolean,null | |
optoutemarketing | boolean,null | |
salespersonid | integer,null | Required on PUT |
salesperson | object,null | |
salesperson.name | string,null | |
salesperson.jobtitle | string,null | |
salesperson.rel | string,null | |
salesperson.title | string,null | |
salesperson.id | integer | Required on PUT |
salesperson.href | string,null | |
defaultcompany | object,null | EXO Business Company Title: BaseCompany |
defaultcompany.companytype | integer | |
defaultcompany.accountname | string | |
defaultcompany.email | string,null | |
defaultcompany.phone | string,null | |
defaultcompany.postaladdress | object | |
defaultcompany.postaladdress.line1 | string,null | |
defaultcompany.postaladdress.line2 | string,null | |
defaultcompany.postaladdress.line3 | string,null | |
defaultcompany.postaladdress.line4 | string,null | |
defaultcompany.postaladdress.line5 | string,null | |
defaultcompany.postalcode | string,null | |
defaultcompany.deliveryaddress | object | |
defaultcompany.deliveryaddress.line1 | string,null | |
defaultcompany.deliveryaddress.line2 | string,null | |
defaultcompany.deliveryaddress.line3 | string,null | |
defaultcompany.deliveryaddress.line4 | string,null | |
defaultcompany.deliveryaddress.line5 | string,null | |
defaultcompany.deliveryaddress.line6 | string,null | |
defaultcompany.defaultcontactid | integer,null | Required on PUT |
defaultcompany.defaultcontact | undefined | |
defaultcompany.contacts | object,null | |
defaultcompany.contacts.rel | string,null | |
defaultcompany.contacts.title | string,null | |
defaultcompany.contacts.href | string,null | |
defaultcompany.website | string,null | |
defaultcompany.salespersonid | integer,null | Required on PUT |
defaultcompany.salesperson | object,null | |
defaultcompany.salesperson.name | string,null | |
defaultcompany.salesperson.jobtitle | string,null | |
defaultcompany.salesperson.rel | string,null | |
defaultcompany.salesperson.title | string,null | |
defaultcompany.salesperson.id | integer | Required on PUT |
defaultcompany.salesperson.href | string,null | |
defaultcompany.balance | number | |
defaultcompany.contactname | string,null | |
defaultcompany.latitude | number,null | |
defaultcompany.longitude | number,null | |
defaultcompany.geocodestatus | integer,null | |
defaultcompany.extrafields | array,null | |
defaultcompany.rel | string,null | |
defaultcompany.title | string,null | |
defaultcompany.id | integer | Required on PUT |
defaultcompany.href | string,null | |
defaultcompanyid | object,null | EXO Business Company Link Title: CompanyId Required on PUT |
defaultcompanyid.companytype | integer | |
defaultcompanyid.accno | integer | |
defaultcompanyname | string,null | |
latitude | number,null | |
longitude | number,null | |
geocodestatus | integer,null | |
extrafields | array,null | |
rel | string,null | |
title | string,null | |
id | integer | Required on PUT |
href | string,null |
Example json GET response
Example
[
{
"key": "X_DATEOFBIRTH"
},
{
"key": "X_NOMARKETING"
},
{
"key": "X_SOURCE"
},
{
"jobtitle": "Sales",
"firstname": "Rob",
"lastname": "Myers",
"fullname": "Rob Myers",
"directphonenumber": "+64 9-324 6215",
"mobilephonenumber": "+64 29-636 304",
"email": "robmyers@akldcars.example.com",
"line1": "59 Princes St",
"line2": "Auckland",
"line3": "",
"line4": "New Zealand",
"postalcode": "",
"advertsourceid": 0,
"active": true,
"optoutemarketing": false,
"salespersonid": 4,
"geocodestatus": -1,
"id": 5,
"href": "{URI}https://exo-stage.api.myob.com/contact/5"
}
]{URI} is defined as: http://exo.api.myob.com/