Filter the equipment information by reference or by S)ONE ID.
Sample request :
GET /equipments?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.
Maximum value is
10
. Default value is5
. -
Index of the first returned result.
Default value is
0
.
GET
/equipments
curl \
--request GET 'https://soget-api-integration.azure-api.net/api-equipment/v1/equipments'
Response examples (200)
{
"total": 3,
"returned": 1,
"first": 0,
"items": [
{
"spi": "string",
"reference": "string",
"seals": [
{
"number": "string",
"origin": "string"
}
],
"measures": {
"volume": {
"value": 42.0,
"unit": "string"
}
},
"dimensions": {
"length": {
"value": 42.0,
"unit": "string"
},
"width": {
"value": 42.0,
"unit": "string"
},
"height": {
"value": 42.0,
"unit": "string"
}
},
"supplier": "string"
}
]
}
Response examples (400)
{
"status": "NotFound",
"timestamp": "2022-11-17T15:40:39.838Z",
"code": "R001",
"message": "No handling unit was found"
}
Response examples (404)
{
"status": "NotFound",
"timestamp": "2022-11-17T15:40:39.838Z",
"code": "R001",
"message": "No handling unit was found"
}