Filter handling units relating to the merchandise by reference or by S)ONE ID.
Sample request
GET /dangerous?reference=AAAU1234566&spi=CNI1234567890&limit=5&offset=0&desc=true
Query parameters
-
Handling unit reference with which to filter.
Default value is empty.
-
Handling unit ID with which to filter. ID corresponds to the single passage identificator in S)ONE.
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
. -
Number of results to be returned. Max value is 10.
Default value is
5
. -
Index of the first returned result.
Default value is
0
.
GET
/dangerous
curl \
--request GET 'https://soget-api-integration.azure-api.net/api-dangerous/v1/dangerous'
Response examples (200)
{
"total": 3,
"returned": 1,
"first": 0,
"items": [
{
"reference": "string",
"spi": "string",
"hazardousItems": [
{
"imoClass": "1.1",
"limitedQuantity": true,
"undgNumber": "3534",
"packagingGroup": "1",
"state": "Solid"
}
]
}
]
}
Response examples (400)
{
"status": "NotFound",
"timestamp": "2022-11-17T15:40:39.8381389Z",
"code": "R001",
"message": "No handling unit was found"
}
Response examples (404)
{
"status": "NotFound",
"timestamp": "2022-11-17T15:40:39.8381389Z",
"code": "R001",
"message": "No handling unit was found"
}