Debtor
Return, update and create a debtor.
| URL | Supports |
|---|---|
{URI}/debtor/ | |
{URI}/debtor/search?q={query} | |
{URI}/debtor/{debtorid}/contact | |
{URI}/debtor/convertprospect | |
| {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 debtors that match the specified search string.
contact returns a list of contacts associated with the specified debtor account. You can also remove the association between a Debtor and a contact with a DELETE call to this endpoint, e.g. a DELETE call to {URI}/debtor/21/contact/3 will remove the association between Debtor 21 and contact 3 (but will not delete the contact itself).
convertprospect converts the specified prospect (non account) to a debtor account. The ID of the prospect to be converted should be passed in in the body of the request.
ID fields are required when updating a debtor (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
| Attribute | Type | Notes |
|---|---|---|
basepriceid | integer,null | Required on PUT |
baseprice | object,null | |
baseprice.name | string,null | |
baseprice.rel | string,null | |
baseprice.title | string,null | |
baseprice.id | integer | Required on PUT |
baseprice.href | string,null | |
needorderno | boolean | |
allowrestrictedstock | boolean,null | |
active | boolean,null | |
privateaccount | boolean,null | |
alphacode | string,null | |
alert | string,null | |
creditlimit | number | |
currencyid | integer,null | Required on PUT |
currency | object,null | |
currency.code | string,null | |
currency.name | string,null | |
currency.symbol | string,null | |
currency.buyrate | number | |
currency.sellrate | number | |
currency.rel | string,null | |
currency.title | string,null | |
currency.id | integer | Required on PUT |
currency.href | string,null | |
credittermid | integer,null | Required on PUT |
credittermwarningtext | string,null | |
creditterm | object,null | |
creditterm.description | string,null | |
creditterm.activefordebtors | boolean | |
creditterm.activeforcreditors | boolean | |
creditterm.rel | string,null | |
creditterm.title | string,null | |
creditterm.id | integer | Required on PUT |
creditterm.href | string,null | |
primarygroupid | integer,null | Required on PUT |
primarygroup | object,null | |
primarygroup.companytype | integer | |
primarygroup.accountgrouptype | integer | |
primarygroup.name | string,null | |
primarygroup.reportcode | string,null | |
primarygroup.rel | string,null | |
primarygroup.title | string,null | |
primarygroup.id | integer | Required on PUT |
primarygroup.href | string,null | |
secondarygroupid | integer,null | Required on PUT |
secondarygroup | object,null | |
secondarygroup.companytype | integer | |
secondarygroup.accountgrouptype | integer | |
secondarygroup.name | string,null | |
secondarygroup.reportcode | string,null | |
secondarygroup.rel | string,null | |
secondarygroup.title | string,null | |
secondarygroup.id | integer | Required on PUT |
secondarygroup.href | string,null | |
stopcredit | boolean,null | |
agedbal0 | number | |
agedbal1 | number | |
agedbal2 | number | |
agedbal3 | number | |
monthval | number | |
lastmonth | number | |
yearval | number | |
lastyear | number | |
headaccno | integer | |
companytype | integer | |
accountname | string | |
email | string,null | |
phone | 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 | |
defaultcontactid | integer,null | Required on PUT |
defaultcontact | object,null | EXO Business Contact Title: Contact |
defaultcontact.jobtitle | string,null | |
defaultcontact.firstname | string,null | |
defaultcontact.lastname | string,null | |
defaultcontact.fullname | string,null | |
defaultcontact.directphonenumber | string,null | |
defaultcontact.mobilephonenumber | string,null | |
defaultcontact.email | string,null | |
defaultcontact.postaladdress | object | |
defaultcontact.postaladdress.line1 | string,null | |
defaultcontact.postaladdress.line2 | string,null | |
defaultcontact.postaladdress.line3 | string,null | |
defaultcontact.postaladdress.line4 | string,null | |
defaultcontact.postaladdress.line5 | string,null | |
defaultcontact.postalcode | string,null | |
defaultcontact.deliveryaddress | object | |
defaultcontact.deliveryaddress.line1 | string,null | |
defaultcontact.deliveryaddress.line2 | string,null | |
defaultcontact.deliveryaddress.line3 | string,null | |
defaultcontact.deliveryaddress.line4 | string,null | |
defaultcontact.deliveryaddress.line5 | string,null | |
defaultcontact.deliveryaddress.line6 | string,null | |
defaultcontact.advertsourceid | integer,null | Required on PUT |
defaultcontact.advertsource | object,null | |
defaultcontact.advertsource.description | string,null | |
defaultcontact.advertsource.processid | integer | Required on PUT |
defaultcontact.advertsource.communicationprocess | object,null | |
defaultcontact.advertsource.communicationprocess.description | string,null | |
defaultcontact.advertsource.communicationprocess.rel | string,null | |
defaultcontact.advertsource.communicationprocess.title | string,null | |
defaultcontact.advertsource.communicationprocess.id | integer | Required on PUT |
defaultcontact.advertsource.communicationprocess.href | string,null | |
defaultcontact.advertsource.rel | string,null | |
defaultcontact.advertsource.title | string,null | |
defaultcontact.advertsource.id | integer | Required on PUT |
defaultcontact.advertsource.href | string,null | |
defaultcontact.active | boolean,null | |
defaultcontact.optoutemarketing | boolean,null | |
defaultcontact.salespersonid | integer,null | Required on PUT |
defaultcontact.salesperson | object,null | |
defaultcontact.salesperson.name | string,null | |
defaultcontact.salesperson.jobtitle | string,null | |
defaultcontact.salesperson.rel | string,null | |
defaultcontact.salesperson.title | string,null | |
defaultcontact.salesperson.id | integer | Required on PUT |
defaultcontact.salesperson.href | string,null | |
defaultcontact.defaultcompany | object,null | EXO Business Company Title: BaseCompany |
defaultcontact.defaultcompany.companytype | integer | |
defaultcontact.defaultcompany.accountname | string | |
defaultcontact.defaultcompany.email | string,null | |
defaultcontact.defaultcompany.phone | string,null | |
defaultcontact.defaultcompany.postaladdress | object | |
defaultcontact.defaultcompany.postaladdress.line1 | string,null | |
defaultcontact.defaultcompany.postaladdress.line2 | string,null | |
defaultcontact.defaultcompany.postaladdress.line3 | string,null | |
defaultcontact.defaultcompany.postaladdress.line4 | string,null | |
defaultcontact.defaultcompany.postaladdress.line5 | string,null | |
defaultcontact.defaultcompany.postalcode | string,null | |
defaultcontact.defaultcompany.deliveryaddress | object | |
defaultcontact.defaultcompany.deliveryaddress.line1 | string,null | |
defaultcontact.defaultcompany.deliveryaddress.line2 | string,null | |
defaultcontact.defaultcompany.deliveryaddress.line3 | string,null | |
defaultcontact.defaultcompany.deliveryaddress.line4 | string,null | |
defaultcontact.defaultcompany.deliveryaddress.line5 | string,null | |
defaultcontact.defaultcompany.deliveryaddress.line6 | string,null | |
defaultcontact.defaultcompany.defaultcontactid | integer,null | Required on PUT |
defaultcontact.defaultcompany.defaultcontact | undefined | |
defaultcontact.defaultcompany.contacts | object,null | |
defaultcontact.defaultcompany.contacts.rel | string,null | |
defaultcontact.defaultcompany.contacts.title | string,null | |
defaultcontact.defaultcompany.contacts.href | string,null | |
defaultcontact.defaultcompany.website | string,null | |
defaultcontact.defaultcompany.salespersonid | integer,null | Required on PUT |
defaultcontact.defaultcompany.salesperson | object,null | |
defaultcontact.defaultcompany.salesperson.name | string,null | |
defaultcontact.defaultcompany.salesperson.jobtitle | string,null | |
defaultcontact.defaultcompany.salesperson.rel | string,null | |
defaultcontact.defaultcompany.salesperson.title | string,null | |
defaultcontact.defaultcompany.salesperson.id | integer | Required on PUT |
defaultcontact.defaultcompany.salesperson.href | string,null | |
defaultcontact.defaultcompany.balance | number | |
defaultcontact.defaultcompany.contactname | string,null | |
defaultcontact.defaultcompany.latitude | number,null | |
defaultcontact.defaultcompany.longitude | number,null | |
defaultcontact.defaultcompany.geocodestatus | integer,null | |
defaultcontact.defaultcompany.lastupdated | string,null | |
defaultcontact.defaultcompany.extrafields | array,null | |
defaultcontact.defaultcompany.rel | string,null | |
defaultcontact.defaultcompany.title | string,null | |
defaultcontact.defaultcompany.id | integer | Required on PUT |
defaultcontact.defaultcompany.href | string,null | |
defaultcontact.defaultcompanyid | object,null | EXO Business Company Link Title: CompanyId Required on PUT |
defaultcontact.defaultcompanyid.companytype | integer | |
defaultcontact.defaultcompanyid.accno | integer | |
defaultcontact.defaultcompanyname | string,null | |
defaultcontact.latitude | number,null | |
defaultcontact.longitude | number,null | |
defaultcontact.geocodestatus | integer,null | |
defaultcontact.extrafields | array,null | |
defaultcontact.rel | string,null | |
defaultcontact.title | string,null | |
defaultcontact.id | integer | Required on PUT |
defaultcontact.href | string,null | |
contacts | object,null | |
contacts.rel | string,null | |
contacts.title | string,null | |
contacts.href | string,null | |
website | string,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 | |
balance | number | |
contactname | string,null | |
latitude | number,null | |
longitude | number,null | |
geocodestatus | integer,null | |
lastupdated | string,null | |
extrafields | array,null | |
rel | string,null | |
title | string,null | |
id | integer | Required on PUT |
href | string,null |
Example json GET response
Example
[
{
"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/debtor/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/