Filter locations
Sample request:
GET /locations?type=164&offset=0&limit=10
or
GET /locations?type=164,248&offset=0&limit=10
If you want to search for multiple values for a given parameter, enter :
param=val1,val2
For example, the query shown above would return the locations that have a type of either 164
or 248
.
Query parameters
-
Location code.
Default value is empty.
-
Location name.
Default value is empty.
-
Location type.
Default value is empty.
-
Location country.
Default value is empty.
-
Parent location code (eg. Parent of MTDF-Terminal de France is FRLEH-Le Havre).
Default value is empty.
-
Boolean that indicates the sort order. If it is set to true, results will be sorted by descending order.
Default value is
false
. -
Index of the first returned result.
Default value is
0
. -
Number of results to be returned. Max value is 10.
Default value is
10
.
curl \
-X GET https://soget-api-integration.azure-api.net/api-referential-list/v1/locations \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Ocp-Apim-Subscription-Key: $API_KEY"
{
"total": 11,
"first": 3,
"items": [
{
"code": "FRLEH",
"name": "Le Havre",
"type": 248,
"country": "FRA",
"parent": "FRLEH"
}
]
}
{
"status": "400",
"timestamp": "2022-10-18T14:53:52.239Z",
"code": "R001",
"message": "Information not found."
}