Skip to content

Search Template

List all search templates or return search results based on a search template set up in MYOB EXO Business.

Released
Updated
URLSupports
{URI}/searchtemplate
GET
{URI}/searchtemplate/{id}{parameters}
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.

Calling the endpoint by itself returns a list of search templates.

To use a search template to return search results, call the endpoint with the ID number of the search template you want to use, for example:

http://exo.api.myob.com/searchtemplate/1

Depending on the search template being called, the call may need to pass parameters to filter the search results, for example:

http://exo.api.myob.com/searchtemplate/1?accno=21&q=airfil

This will return search results using the search template with the ID number 1 and passing in the Debtor account number 21 and the search string “airfil” as parameters.

Attribute Details

AttributeTypeNotes
namestring,null
activeboolean
typestring,null
parametersarray,null
relstring,null
titlestring,null
idintegerRequired on PUT
hrefstring,null

Example json GET response

Example

json
[
  {
    "paramname": "CURRENTLAT",
    "paramtype": "FLOAT"
  },
  {
    "paramname": "CURRENTLONG",
    "paramtype": "FLOAT"
  },
  {
    "paramname": "RADIUS",
    "paramtype": "FLOAT"
  },
  {
    "paramname": "SALESNO",
    "paramtype": "INTEGER"
  },
  {
    "name": "All Active Companies",
    "active": true,
    "type": "G",
    "id": 11,
    "href": "{URI}/searchtemplate/11"
  },
  {
    "name": "Available Stock",
    "active": true,
    "type": "S",
    "paramname": "LOCNO",
    "paramtype": "INTEGER",
    "id": 2,
    "href": "{URI}/searchtemplate/2"
  },
  {
    "paramname": "CURRENTLAT",
    "paramtype": "FLOAT"
  },
  {
    "paramname": "CURRENTLONG",
    "paramtype": "FLOAT"
  },
  {
    "paramname": "RADIUS",
    "paramtype": "FLOAT"
  },
  {
    "name": "Customers Active last 30 days",
    "active": true,
    "type": "G",
    "id": 8,
    "href": "{URI}/searchtemplate/8"
  },
  {
    "paramname": "CURRENTLAT",
    "paramtype": "FLOAT"
  },
  {
    "paramname": "CURRENTLONG",
    "paramtype": "FLOAT"
  },
  {
    "paramname": "RADIUS",
    "paramtype": "FLOAT"
  },
  {
    "name": "Customers Owe Me Money",
    "active": true,
    "type": "G",
    "id": 6,
    "href": "{URI}/searchtemplate/6"
  },
  {
    "paramname": "CURRENTLAT",
    "paramtype": "FLOAT"
  },
  {
    "paramname": "CURRENTLONG",
    "paramtype": "FLOAT"
  },
  {
    "paramname": "RADIUS",
    "paramtype": "FLOAT"
  },
  {
    "name": "Customers with Current Orders",
    "active": true,
    "type": "G",
    "id": 7,
    "href": "{URI}/searchtemplate/7"
  },
  {
    "name": "Last 100 Items Sold To This Account",
    "active": true,
    "type": "S",
    "paramname": "ACCNO",
    "paramtype": "INTEGER",
    "id": 1,
    "href": "{URI}/searchtemplate/1"
  },
  {
    "paramname": "CURRENTLAT",
    "paramtype": "FLOAT"
  },
  {
    "paramname": "CURRENTLONG",
    "paramtype": "FLOAT"
  },
  {
    "paramname": "RADIUS",
    "paramtype": "FLOAT"
  },
  {
    "paramname": "SALESNO",
    "paramtype": "INTEGER"
  },
  {
    "name": "My Active Companies",
    "active": true,
    "type": "G",
    "id": 10,
    "href": "{URI}/searchtemplate/10"
  },
  {
    "name": "Previous Invoice to this Account",
    "active": true,
    "type": "S",
    "paramname": "ACCNO",
    "paramtype": "INTEGER",
    "id": 3,
    "href": "{URI}/searchtemplate/3"
  },
  {
    "paramname": "CURRENTLAT",
    "paramtype": "FLOAT"
  },
  {
    "paramname": "CURRENTLONG",
    "paramtype": "FLOAT"
  },
  {
    "paramname": "RADIUS",
    "paramtype": "FLOAT"
  },
  {
    "name": "Prospects Active Last 30 days",
    "active": true,
    "type": "G",
    "id": 9,
    "href": "{URI}/searchtemplate/9"
  },
  {
    "name": "Sell Down Items",
    "active": true,
    "type": "S",
    "paramname": "ACCNO",
    "paramtype": "INTEGER",
    "id": 5,
    "href": "{URI}/searchtemplate/5"
  }
]

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