Geolocation Search Template

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

Date Released: May 30th 2014 Date Updated: May 30th 2014
URLSupports

{URI}/geolocationtemplate

{URI}/geolocationtemplate/{id}{parameters}

GET |  PUT |  POST

GET |  PUT |  POST

{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 location-based search templates (search templates whose type is "G").

To use a geolocation 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/geolocationtemplate/6

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

http://exo.api.myob.com/geolocationtemplate/6?salesno=8&currentlat=-36.8694985&currentlong=174.7641415&radius=10

This will return search results using the search template with the ID number 6 and passing in staff member number 8 along with location details and a search radius.

The elements list below details information for Geolocation Search Template. To view the descriptions for the elements you can either hover any attribute to reveal details or click here to show all details inline.

Attribute Details

    • name string,null
    • Type: string,null
    • active boolean
    • Type: boolean
    • type string,null
    • Type: string,null
    • parameters array,null
    • Type: array,null
    • rel string,null
    • Type: string,null
    • title string,null
    • Type: string,null
    • id integer
    • Required on PUT
    • href string,null
    • Type: string,null

Example json GET response

  • {
    • 0
      • {
        • name : All Active Companies
        • active : true
        • type : G
        • parameters
          • {
            • 0
              • {
                • paramname : CURRENTLAT
                • paramtype : FLOAT
              • }
            • 1
              • {
                • paramname : CURRENTLONG
                • paramtype : FLOAT
              • }
            • 2
              • {
                • paramname : RADIUS
                • paramtype : FLOAT
              • }
            • 3
              • {
                • paramname : SALESNO
                • paramtype : INTEGER
              • }
          • }
        • id : 11
        • href : {URI}/searchtemplate/11
      • }
    • 1
      • {
        • name : Customers Active last 30 days
        • active : true
        • type : G
        • parameters
          • {
            • 0
              • {
                • paramname : CURRENTLAT
                • paramtype : FLOAT
              • }
            • 1
              • {
                • paramname : CURRENTLONG
                • paramtype : FLOAT
              • }
            • 2
              • {
                • paramname : RADIUS
                • paramtype : FLOAT
              • }
          • }
        • id : 8
        • href : {URI}/searchtemplate/8
      • }
    • 2
      • {
        • name : Customers Owe Me Money
        • active : true
        • type : G
        • parameters
          • {
            • 0
              • {
                • paramname : CURRENTLAT
                • paramtype : FLOAT
              • }
            • 1
              • {
                • paramname : CURRENTLONG
                • paramtype : FLOAT
              • }
            • 2
              • {
                • paramname : RADIUS
                • paramtype : FLOAT
              • }
          • }
        • id : 6
        • href : {URI}/searchtemplate/6
      • }
    • 3
      • {
        • name : Customers with Current Orders
        • active : true
        • type : G
        • parameters
          • {
            • 0
              • {
                • paramname : CURRENTLAT
                • paramtype : FLOAT
              • }
            • 1
              • {
                • paramname : CURRENTLONG
                • paramtype : FLOAT
              • }
            • 2
              • {
                • paramname : RADIUS
                • paramtype : FLOAT
              • }
          • }
        • id : 7
        • href : {URI}/searchtemplate/7
      • }
    • 4
      • {
        • name : My Active Companies
        • active : true
        • type : G
        • parameters
          • {
            • 0
              • {
                • paramname : CURRENTLAT
                • paramtype : FLOAT
              • }
            • 1
              • {
                • paramname : CURRENTLONG
                • paramtype : FLOAT
              • }
            • 2
              • {
                • paramname : RADIUS
                • paramtype : FLOAT
              • }
            • 3
              • {
                • paramname : SALESNO
                • paramtype : INTEGER
              • }
          • }
        • id : 10
        • href : {URI}/searchtemplate/10
      • }
    • 5
      • {
        • name : Prospects Active Last 30 days
        • active : true
        • type : G
        • parameters
          • {
            • 0
              • {
                • paramname : CURRENTLAT
                • paramtype : FLOAT
              • }
            • 1
              • {
                • paramname : CURRENTLONG
                • paramtype : FLOAT
              • }
            • 2
              • {
                • paramname : RADIUS
                • paramtype : FLOAT
              • }
          • }
        • id : 9
        • href : {URI}/searchtemplate/9
      • }
  • }

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