Skip to content

Prospect

Return, update and create a prospect (non account).

Released
Updated
URLSupports
{URI}/prospect/
GETPUTPOST
{URI}/prospect/search?q={query}
GET
{URI}/prospect/{prospectid}/contact
GET
{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 prospects that match the specified search string.

contact returns a list of contacts associated with the specified prospect. You can also remove the association between a prospect and a contact with a DELETE call to this endpoint, e.g. a DELETE call to {URI}/prospect/10/contact/2 will remove the association between prospect 10 and contact 2 (but will not delete the contact itself).

Id fields are required when updating a prospect (PUT). Account Name is the only field required when creating a new debtor (POST). The API will retrieve the information relating to a specific Id so you have all the information available.

Attribute Details

AttributeTypeNotes
alphacodestring,null
templatedebtoridstring,nullRequired on PUT
basepriceidinteger,nullRequired on PUT
basepriceobject,null
baseprice.namestring,null
baseprice.relstring,null
baseprice.titlestring,null
baseprice.idintegerRequired on PUT
baseprice.hrefstring,null
companytypeinteger
accountnamestring
emailstring,null
phonestring,null
postaladdressobject
postaladdress.line1string,null
postaladdress.line2string,null
postaladdress.line3string,null
postaladdress.line4string,null
postaladdress.line5string,null
postalcodestring,null
deliveryaddressobject
deliveryaddress.line1string,null
deliveryaddress.line2string,null
deliveryaddress.line3string,null
deliveryaddress.line4string,null
deliveryaddress.line5string,null
deliveryaddress.line6string,null
defaultcontactidinteger,nullRequired on PUT
defaultcontactobject,nullEXO Business Contact Title: Contact
defaultcontact.jobtitlestring,null
defaultcontact.firstnamestring,null
defaultcontact.lastnamestring,null
defaultcontact.fullnamestring,null
defaultcontact.directphonenumberstring,null
defaultcontact.mobilephonenumberstring,null
defaultcontact.emailstring,null
defaultcontact.postaladdressobject
defaultcontact.postaladdress.line1string,null
defaultcontact.postaladdress.line2string,null
defaultcontact.postaladdress.line3string,null
defaultcontact.postaladdress.line4string,null
defaultcontact.postaladdress.line5string,null
defaultcontact.postalcodestring,null
defaultcontact.deliveryaddressobject
defaultcontact.deliveryaddress.line1string,null
defaultcontact.deliveryaddress.line2string,null
defaultcontact.deliveryaddress.line3string,null
defaultcontact.deliveryaddress.line4string,null
defaultcontact.deliveryaddress.line5string,null
defaultcontact.deliveryaddress.line6string,null
defaultcontact.advertsourceidinteger,nullRequired on PUT
defaultcontact.advertsourceobject,null
defaultcontact.advertsource.descriptionstring,null
defaultcontact.advertsource.processidintegerRequired on PUT
defaultcontact.advertsource.communicationprocessobject,null
defaultcontact.advertsource.communicationprocess.descriptionstring,null
defaultcontact.advertsource.communicationprocess.relstring,null
defaultcontact.advertsource.communicationprocess.titlestring,null
defaultcontact.advertsource.communicationprocess.idintegerRequired on PUT
defaultcontact.advertsource.communicationprocess.hrefstring,null
defaultcontact.advertsource.relstring,null
defaultcontact.advertsource.titlestring,null
defaultcontact.advertsource.idintegerRequired on PUT
defaultcontact.advertsource.hrefstring,null
defaultcontact.activeboolean,null
defaultcontact.optoutemarketingboolean,null
defaultcontact.salespersonidinteger,nullRequired on PUT
defaultcontact.salespersonobject,null
defaultcontact.salesperson.namestring,null
defaultcontact.salesperson.jobtitlestring,null
defaultcontact.salesperson.relstring,null
defaultcontact.salesperson.titlestring,null
defaultcontact.salesperson.idintegerRequired on PUT
defaultcontact.salesperson.hrefstring,null
defaultcontact.defaultcompanyobject,nullEXO Business Company Title: BaseCompany
defaultcontact.defaultcompany.companytypeinteger
defaultcontact.defaultcompany.accountnamestring
defaultcontact.defaultcompany.emailstring,null
defaultcontact.defaultcompany.phonestring,null
defaultcontact.defaultcompany.postaladdressobject
defaultcontact.defaultcompany.postaladdress.line1string,null
defaultcontact.defaultcompany.postaladdress.line2string,null
defaultcontact.defaultcompany.postaladdress.line3string,null
defaultcontact.defaultcompany.postaladdress.line4string,null
defaultcontact.defaultcompany.postaladdress.line5string,null
defaultcontact.defaultcompany.postalcodestring,null
defaultcontact.defaultcompany.deliveryaddressobject
defaultcontact.defaultcompany.deliveryaddress.line1string,null
defaultcontact.defaultcompany.deliveryaddress.line2string,null
defaultcontact.defaultcompany.deliveryaddress.line3string,null
defaultcontact.defaultcompany.deliveryaddress.line4string,null
defaultcontact.defaultcompany.deliveryaddress.line5string,null
defaultcontact.defaultcompany.deliveryaddress.line6string,null
defaultcontact.defaultcompany.defaultcontactidinteger,nullRequired on PUT
defaultcontact.defaultcompany.defaultcontactundefined
defaultcontact.defaultcompany.contactsobject,null
defaultcontact.defaultcompany.contacts.relstring,null
defaultcontact.defaultcompany.contacts.titlestring,null
defaultcontact.defaultcompany.contacts.hrefstring,null
defaultcontact.defaultcompany.websitestring,null
defaultcontact.defaultcompany.salespersonidinteger,nullRequired on PUT
defaultcontact.defaultcompany.salespersonobject,null
defaultcontact.defaultcompany.salesperson.namestring,null
defaultcontact.defaultcompany.salesperson.jobtitlestring,null
defaultcontact.defaultcompany.salesperson.relstring,null
defaultcontact.defaultcompany.salesperson.titlestring,null
defaultcontact.defaultcompany.salesperson.idintegerRequired on PUT
defaultcontact.defaultcompany.salesperson.hrefstring,null
defaultcontact.defaultcompany.balancenumber
defaultcontact.defaultcompany.contactnamestring,null
defaultcontact.defaultcompany.latitudenumber,null
defaultcontact.defaultcompany.longitudenumber,null
defaultcontact.defaultcompany.geocodestatusinteger,null
defaultcontact.defaultcompany.lastupdatedstring,null
defaultcontact.defaultcompany.extrafieldsarray,null
defaultcontact.defaultcompany.relstring,null
defaultcontact.defaultcompany.titlestring,null
defaultcontact.defaultcompany.idintegerRequired on PUT
defaultcontact.defaultcompany.hrefstring,null
defaultcontact.defaultcompanyidobject,nullEXO Business Company Link Title: CompanyId Required on PUT
defaultcontact.defaultcompanyid.companytypeinteger
defaultcontact.defaultcompanyid.accnointeger
defaultcontact.defaultcompanynamestring,null
defaultcontact.latitudenumber,null
defaultcontact.longitudenumber,null
defaultcontact.geocodestatusinteger,null
defaultcontact.extrafieldsarray,null
defaultcontact.relstring,null
defaultcontact.titlestring,null
defaultcontact.idintegerRequired on PUT
defaultcontact.hrefstring,null
contactsobject,null
contacts.relstring,null
contacts.titlestring,null
contacts.hrefstring,null
websitestring,null
salespersonidinteger,nullRequired on PUT
salespersonobject,null
salesperson.namestring,null
salesperson.jobtitlestring,null
salesperson.relstring,null
salesperson.titlestring,null
salesperson.idintegerRequired on PUT
salesperson.hrefstring,null
balancenumber
contactnamestring,null
latitudenumber,null
longitudenumber,null
geocodestatusinteger,null
lastupdatedstring,null
extrafieldsarray,null
relstring,null
titlestring,null
idintegerRequired on PUT
hrefstring,null

Example json GET response

Example

json
{
  "alphacode": "",
  "templatedebtorid": "0",
  "basepriceid": 1,
  "companytype": 3,
  "accountname": "TASHI MOTORS",
  "email": "",
  "phone": "",
  "line1": "",
  "line2": "",
  "line3": "",
  "line4": "",
  "postalcode": "",
  "line5": "",
  "line6": "",
  "rel": "collection/contact",
  "href": "{URI}/prospect/1",
  "website": "",
  "salespersonid": 8,
  "balance": 0,
  "geocodestatus": -1,
  "lastupdated": "2014-10-15T12:22:58.45+11:00",
  "id": 1
}

{URI} is defined as: http://exo.api.myob.com/