Company Files
Base endpoint for the MYOB Business API - returns a list of company files.
Released
Updated
| URL | Supports |
|---|---|
{domain}/accountright/ |
The first thing you are going to want to do is get a list of the company files. This really couldn't be simpler as there is no specific end point for this, just call the base API url.
As soon as you request the API (provided you have authenticated and passed the right headers, you will be presented with a list of the company files on the computer or that the user has.
Attribute Details
| Attribute | Type | Notes |
|---|---|---|
Id | Guid (36) | Unique GUID for the company file. |
Name | String | Given name of the company file. |
LibraryPath | String | Path name to the company file |
ProductVersion | String | MYOB AccountRight version this company file was created with. EG: 2020.3 |
ProductLevel | object | The following set of information pulls through details for the AccountRight product |
ProductLevel.Code | String | AccountRight product code. |
ProductLevel.Name | String | AccountRight product name, ie Basics, Standard, Plus. |
Subscription | Object | Will display as null by default unless the query $expand is provided. For more details check out our Knowledgebase article. |
Subscription.IsTrial | Boolean | This will return a true or false value to indicate if this is a trial or not. |
Subscription.Product | Array | The following set of information pulls through the details for the New Essentials product. |
Subscription.Product.ProductLine | String | Product Line the product is associated with ie. New Essentials |
Subscription.Product.Name | String | New Essentials product name |
Subscription.Product.DisplayName | String | Display Name for the New Essentials product. |
Subscription.Product.Id | String | New Essentials product code |
CheckedOutDate | DateTime | Date the online file was checked out offline, format YYYY-MM-DD HH:MM:SS |
CheckedOutBy | String | my.MYOB user that has checked out the file offline. |
URI | String | Uniform resource identifier encompasses all types of names and addresses that refer to objects on the web. |
Country | String (2) | The 2 character country code. EG: AU or NZ |
SerialNumber | String (12) | The 12 digit serial number of the AccountRight file. |
UIAccessFlags | Integer | The file accessible product type identifier: 0. Local AccountRight 1. Online AccountRight 2. New Essentials 3. AccountRight & AccountRight Browser |
Default API Call
Pick the appropriate URL for your access needs:
http://localhost:8080/accountright/ - This will return files that are stored in the local library on your computer.
http://[IP OF NETWORK COMPUTER]:8080/accountright/ - This will return files that are stored over a network.Example json GET response
Example
{
"Id": "770ed441-0abb-4832-bd2b-2032d035656e",
"Name": "API Team Sandbox",
"LibraryPath": "API Team Sandbox",
"ProductVersion": "2021.4",
"ProductLevel": {
"Code": "50",
"Name": "Premier"
},
"Subscription": {
"IsTrial": "False",
"Product": {
"ProductLine": "MYOB Essentials (New)",
"Name": "Accounting + Payroll",
"DisplayName": "Accounting + Payroll",
"Id": "52"
}
},
"CheckedOutDate": "null",
"CheckedOutBy": "null",
"Uri": "{cf_uri}",
"Country": "AU",
"SerialNumber": "xxxxxxxxxxxx",
"UIAccessFlags": "2"
}