Company
Return debtors, creditors and non accounts
Released
Updated
| URL | Supports |
|---|---|
{URI}/company | |
{URI}/company/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 companies that match the specified search string.
Attribute Details
| Attribute | Type | Notes |
|---|---|---|
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 |
contacts | object,null | |
website | string,null | |
salespersonid | integer,null | Required on PUT |
salesperson | object,null | |
balance | number | |
contactname | 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
[
{
"companytype": 1,
"accountname": "ACE INTERNATIONAL",
"email": "sales@aceinternational.example.com",
"phone": "02 9765 2345",
"line1": "300 Bondi Rd",
"line2": "Bondi Junction",
"line3": "Nsw",
"line4": "Australia",
"line5": "",
"postalcode": "2022",
"line6": "",
"rel": "collection/contact",
"href": "{URI}https://exo-stage.api.myob.com/debtor/31",
"salespersonid": 9,
"website": "www.aceinternational.com.au",
"privateaccount": false,
"active": true,
"balance": 0,
"latitude": -33.89436,
"longitude": 151.268372,
"geocodestatus": 0,
"id": 31
},
{
"companytype": 1,
"accountname": "ALL CAR PARTS",
"email": "spares@allcar.example.com",
"phone": "02 8476 11",
"line1": "438 Anzac Pde",
"line2": "Kingsford",
"line3": "NSW",
"line4": "Australia",
"line5": "",
"postalcode": "1330",
"line6": "",
"defaultcontactid": 52,
"rel": "collection/contact",
"href": "{URI}https://exo-stage.api.myob.com/debtor/2",
"salespersonid": 9,
"website": "",
"privateaccount": false,
"active": true,
"balance": 10995.8,
"contactname": "Murray Shackland",
"latitude": -33.92183,
"longitude": 151.2269,
"geocodestatus": 0,
"id": 2
},
{
"companytype": 1,
"accountname": "Allparts Automotive Ltd",
"phone": "(0114) 269 0550",
"line1": "Allparts Automotive Ltd",
"line2": "Unit 14b Orgreave Clo",
"line3": "Sheffield, Yorkshire",
"line4": "England, UK",
"line5": "",
"line6": "",
"rel": "collection/contact",
"href": "{URI}https://exo-stage.api.myob.com/debtor/20",
"salespersonid": 1,
"website": "",
"privateaccount": false,
"active": true,
"balance": 3145.62,
"geocodestatus": -1,
"id": 20
},
{
"companytype": 2,
"accountname": "American Express",
"phone": "",
"line1": "600 Kent Street",
"line2": "Sydney",
"line3": "Australia",
"line4": "",
"line5": "",
"line6": "",
"rel": "collection/contact",
"href": "{URI}https://exo-stage.api.myob.com/creditor/25",
"salespersonid": 0,
"website": "",
"privateaccount": false,
"active": true,
"balance": 0,
"geocodestatus": -1,
"id": 25
},
{
"companytype": 1,
"accountname": "Auckland Car Services Ltd",
"email": "robmyers@timarucars.example.com",
"phone": "+64 9-324 6215",
"line1": "59 Princes St",
"line2": "Auckland",
"line3": "",
"line4": "New Zealand",
"line5": "",
"line6": "",
"rel": "collection/contact",
"href": "{URI}https://exo-stage.api.myob.com/debtor/15",
"salespersonid": 4,
"website": "",
"privateaccount": false,
"active": true,
"balance": 394.55,
"geocodestatus": -1,
"id": 15
},
{
"companytype": 2,
"accountname": "Aussie Car Parts",
"email": "eric@partland.example.com",
"phone": "07 3784 0254",
"line1": "19 Maggana St",
"line2": "Brisbane",
"line3": "Qld",
"line5": "",
"line4": "Australia",
"line6": "",
"defaultcontactid": 111,
"rel": "collection/contact",
"href": "{URI}https://exo-stage.api.myob.com/creditor/8",
"salespersonid": 3,
"website": "",
"privateaccount": false,
"active": true,
"balance": 6550.81,
"contactname": "Scott Brand",
"geocodestatus": -1,
"id": 8
},
{
"companytype": 1,
"accountname": "Aussie Spares",
"email": "leigh@aussiespares.example.com",
"phone": "07 3372 2288",
"line1": "280 Grand Ave",
"line2": "Forest Lake",
"line3": "QLD",
"line4": "Australia",
"line5": "",
"postalcode": "4078",
"line6": "",
"rel": "collection/contact",
"href": "{URI}https://exo-stage.api.myob.com/debtor/3",
"salespersonid": 9,
"website": "",
"privateaccount": false,
"active": true,
"balance": 1538,
"latitude": -27.627213,
"longitude": 152.968808,
"geocodestatus": 0,
"id": 3
},
{
"companytype": 2,
"accountname": "Autobits Uk Car Parts",
"email": "warren@autobahn.example.com",
"phone": "+4415-1260 7448",
"line1": "364 High Street",
"line2": "West Acton",
"line3": "London",
"line5": "",
"line4": "United Kingdom",
"line6": "",
"rel": "collection/contact",
"href": "{URI}https://exo-stage.api.myob.com/creditor/11",
"salespersonid": 1,
"website": "",
"privateaccount": false,
"active": true,
"balance": 3280.05,
"geocodestatus": -1,
"id": 11
},
{
"companytype": 2,
"accountname": "Car-Part.Com",
"email": "parts@ias.example.com",
"phone": "1303-447 3387",
"line1": "472 Upper Ninth St",
"line2": "Brownsville",
"line3": "Chicago",
"line5": "",
"line4": "Usa",
"line6": "",
"rel": "collection/contact",
"href": "{URI}https://exo-stage.api.myob.com/creditor/5",
"salespersonid": 1,
"website": "",
"privateaccount": false,
"active": true,
"balance": 7484.75,
"geocodestatus": -1,
"id": 5
},
{
"companytype": 1,
"accountname": "Cash Sales",
"phone": "",
"line5": "",
"line6": "",
"rel": "collection/contact",
"href": "{URI}https://exo-stage.api.myob.com/debtor/0",
"salespersonid": 0,
"website": "",
"privateaccount": false,
"active": true,
"balance": 1341.74,
"geocodestatus": -1,
"id": 0
}
]{URI} is defined as: http://exo.api.myob.com/