Skip to content

Creditor

Return a creditor.

Released
Updated
URLSupports
{URI}/creditor/
GET
{URI}/creditor/search?q={query}
GET
{URI}/creditor/{creditorid}/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 creditors that match the specified search string.

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

convertprospect converts the specified prospect (non account) to a creditor account. The ID of the prospect to be converted should be passed in in the body of the request.

The API will retrieve the information relating to a specific Id so you have all the information available.

Attribute Details

AttributeTypeNotes
basepriceidinteger,nullRequired on PUT
basepriceobject,null
baseprice.namestring,null
baseprice.relstring,null
baseprice.titlestring,null
baseprice.idintegerRequired on PUT
baseprice.hrefstring,null
needordernoboolean
allowrestrictedstockboolean,null
activeboolean,null
privateaccountboolean,null
alphacodestring,null
alertstring,null
creditlimitnumber
currencyidinteger,nullRequired on PUT
currencyobject,null
currency.codestring,null
currency.namestring,null
currency.symbolstring,null
currency.buyratenumber
currency.sellratenumber
currency.relstring,null
currency.titlestring,null
currency.idintegerRequired on PUT
currency.hrefstring,null
credittermidinteger,nullRequired on PUT
credittermwarningtextstring,null
credittermobject,null
creditterm.descriptionstring,null
creditterm.activefordebtorsboolean
creditterm.activeforcreditorsboolean
creditterm.relstring,null
creditterm.titlestring,null
creditterm.idintegerRequired on PUT
creditterm.hrefstring,null
primarygroupidinteger,nullRequired on PUT
primarygroupobject,null
primarygroup.companytypeinteger
primarygroup.accountgrouptypeinteger
primarygroup.namestring,null
primarygroup.reportcodestring,null
primarygroup.relstring,null
primarygroup.titlestring,null
primarygroup.idintegerRequired on PUT
primarygroup.hrefstring,null
secondarygroupidinteger,nullRequired on PUT
secondarygroupobject,null
secondarygroup.companytypeinteger
secondarygroup.accountgrouptypeinteger
secondarygroup.namestring,null
secondarygroup.reportcodestring,null
secondarygroup.relstring,null
secondarygroup.titlestring,null
secondarygroup.idintegerRequired on PUT
secondarygroup.hrefstring,null
stopcreditboolean,null
agedbal0number
agedbal1number
agedbal2number
agedbal3number
monthvalnumber
lastmonthnumber
yearvalnumber
lastyearnumber
headaccnointeger
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
[
  {
    "key": "PASS_WORD",
    "value": "xMpCOKC5I4INzFCab3WEmw=="
  },
  {
    "key": "AUTOBILLCODE"
  },
  {
    "key": "PROMPTPAY_AMT",
    "value": 0
  },
  {
    "key": "PROMPTPAY_PC",
    "value": 0
  },
  {
    "basepriceid": 7,
    "needorderno": false,
    "allowrestrictedstock": true,
    "active": true,
    "privateaccount": false,
    "alphacode": "KNINIC01",
    "creditlimit": 0,
    "currencyid": 1,
    "credittermid": 2,
    "primarygroupid": 3,
    "secondarygroupid": 1,
    "stopcredit": false,
    "agedbal0": 0,
    "agedbal1": 0,
    "agedbal2": 149.58,
    "agedbal3": 0,
    "monthval": 0,
    "lastmonth": 234.17,
    "yearval": 5087.33,
    "lastyear": 0,
    "headaccno": -1,
    "companytype": 1,
    "accountname": "Knight Nicol Autos",
    "email": "dwaner@knightnichol.example.com",
    "phone": "02-9827 1099",
    "line1": "370 High St",
    "line2": "Penrith",
    "line3": "NSW",
    "line4": "Australia",
    "line5": "",
    "postalcode": "",
    "line6": "",
    "defaultcontactid": 1,
    "rel": "collection/contact",
    "href": "{URI}https://exo-stage.api.myob.com/creditor/1",
    "salespersonid": 4,
    "balance": 149.58,
    "latitude": -33.75396,
    "longitude": 150.698669,
    "geocodestatus": 0,
    "lastupdated": "2014-10-01T11:43:59.36+10:00",
    "id": 1
  }
]

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