Versions Compared

Key

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

Overview

Excerpt

This method returns a list of locations ordered by the location name.

 

Request

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

Method: GET

Content-Type: URL Params.

Input parameters

:

  • authenticationToken (required)(string:50): Komet Sales security token.

  • id (optional)(integer:20): Komet Sales internal location

    id

    ID.

  • name (optional)(string:200):

    Name

    name of the location.

  • code (optional)(string:10):

    Code

    code of the location.

Info
  • You can send other parameters such as

the id
  • ID, code, and name in order to filter the results.

  • Filtering by

id
  • ID and code uses an exact match.

  • Filtering by name uses a "LIKE" expression. Filters are not case-sensitive.

curl

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

Response

Output

:

  • status (integer:1):

    Transaction

    transaction status. 1 for success or 0 for failure.

  • message (string:500):

    Description

    description of the status of the transaction.

  • locations: array of locations

    • id (integer:20): Komet Sales internal location

      Id

      ID.

    • name (string:200):

      Name

      name of the location.

    • code (string:10):

      Code

      code of the location.

Sample Response

Code Block
themeConfluence
languagejs
{
    "status": "1",
    "message": "OK",
    "locations": [
        {
            "id": "1",
 
          "name": "Locations I",
            "code": "LI"
        }
        ,
        {
            "id": "2",
            "name": "Locations II",
            "code": "LII"
        }
    ]
}

 

Panel
titleRelated Articles
Filter by label (Content by label)
showLabelsfalse
max10
showSpacefalse
sorttitle
cqllabel in ( "api-multilocation" , "locations" , "multilocation-setup" )
labelslocation mulltilocation