Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

Use this method to get a list of Locations ordered by Location name.

Tip

Valid Tokens: Company.

You can send parameters such as id, code, and name to filter the results. When you use these filters, keep the following statements in mind:

  • Filtering by id and code uses an exact match.

  • Filtering by name uses a "LIKE" expression.

  • Filters are not case-sensitive.


Filter by label (Content by label)
showLabelsfalse
max5
titleRelated Articles
cqllabel in ( "locations-setup" , "location-setup" , "locations" , "company-token" )

Request


URL: https://app.kometsales.com/api/location.list

Method: GET

Content-Type: URL Parameters


Input parameters

authenticationToken (required)(string:50)

Komet Sales security token.


id (optional)(integer:20)

Komet Sales internal Location ID.


name (optional)(string:200)

Location name.


code (optional)(string:10)

Location code.


Code Block
languagejs
https://api.kometsales.com/api/location.list?
authenticationToken=token_info_goes_here

Response


status (integer:1)

Transaction status. 1 = Success | 0 = Failure


message (string:500)

Transaction status description.


locations (array)

An array of locations.


id (integer:20)

Komet Sales internal Location ID.


name (string:200)

Location name.


code (string:10)

Location code.


Code Block
languagejs
{
   "status": "1",
   "message": "OK",
   "locations": [
      {
         "id": "1",
         "name": "Locations I",
         "code": "LI"
      },
      {
         "id": "2",
         "name": "Locations II",
         "code": "LII"
      }
   ]
}
We've encountered an issue exporting this macro. Please try exporting this page again later.