Skip to content

Branch

Return branch information

Released
Updated
URLSupports
{URI}/branch/
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.

Attribute Details

AttributeTypeNotes
Namestring,null
Codestring,null
Relstring,null
Titlestring,null
Idstring
Hrefstring,null

Example json GET response

Example

json
[
  {
    "name": "SYDNEY",
    "code": "SYD",
    "id": 0,
    "href": "{URI}/branch/0"
  },
  {
    "name": "MELBOURNE",
    "code": "MEL",
    "id": 1,
    "href": "{URI}/branch/1"
  },
  {
    "name": "BRISBANE",
    "code": "BRIS",
    "id": 2,
    "href": "{URI}/branch/2"
  },
  {
    "name": "AUCKLAND",
    "code": "AKLD",
    "id": 3,
    "href": "{URI}/branch/3"
  },
  {
    "name": "FIJI",
    "code": "FIJI",
    "id": 4,
    "href": "{URI}/branch/4"
  },
  {
    "name": "UK",
    "code": "UK",
    "id": 5,
    "href": "{URI}/branch/5"
  },
  {
    "name": "US",
    "code": "US",
    "id": 6,
    "href": "{URI}/branch/6"
  }
]

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