Skip to content

Company Files

Base endpoint for the MYOB Business API - returns a list of company files.

Released
Updated
URLSupports
{domain}/accountright/
GET

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

AttributeTypeNotes
IdGuid (36)Unique GUID for the company file.
NameStringGiven name of the company file.
LibraryPathStringPath name to the company file
ProductVersionStringMYOB AccountRight version this company file was created with. EG: 2020.3
ProductLevelobjectThe following set of information pulls through details for the AccountRight product
ProductLevel.CodeStringAccountRight product code.
ProductLevel.NameStringAccountRight product name, ie Basics, Standard, Plus.
SubscriptionObjectWill display as null by default unless the query $expand is provided. For more details check out our Knowledgebase article.
Subscription.IsTrialBooleanThis will return a true or false value to indicate if this is a trial or not.
Subscription.ProductArrayThe following set of information pulls through the details for the New Essentials product.
Subscription.Product.ProductLineStringProduct Line the product is associated with ie. New Essentials
Subscription.Product.NameStringNew Essentials product name
Subscription.Product.DisplayNameStringDisplay Name for the New Essentials product.
Subscription.Product.IdStringNew Essentials product code
CheckedOutDateDateTimeDate the online file was checked out offline, format YYYY-MM-DD HH:MM:SS
CheckedOutByStringmy.MYOB user that has checked out the file offline.
URIStringUniform resource identifier encompasses all types of names and addresses that refer to objects on the web.
CountryString (2)The 2 character country code. EG: AU or NZ
SerialNumberString (12)The 12 digit serial number of the AccountRight file.
UIAccessFlagsIntegerThe 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:

text
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

json
{
  "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"
}