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

Valid Tokens: Company.

note

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.

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.


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.


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.


{
   "status": "1",
   "message": "OK",
   "locations": [
      {
         "id": "1",
         "name": "Locations I",
         "code": "LI"
      },
      {
         "id": "2",
         "name": "Locations II",
         "code": "LII"
      }
   ]
}
defaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacockf9396c9e-a02f-4c4d-a592-1c37a4c6568dari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacockfbd005c6-ab65-4b14-8fc8-ca2a2ca8967ddefaultcom.atlassian.ecosystemfc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacockf9396c9e-a02f-4c4d-a592-1c37a4c6568dari:cloud:ecosystem::extension/fc909b09-b512-4c31-a844-dd855b0e6aae/db1c8759-c7e5-4e80-9022-d19e47b0e2b0/static/macroPeacockfbd005c6-ab65-4b14-8fc8-ca2a2ca8967d