Filter the list of handling units linked to a shipment and/or voyage agent.
One of the following parameters must be provided: documentReference, voyageAgentReference or voyageAgentId. Sample request :
GET /handling-units/search?documentReference=3714238101
Query parameters
-
Announcement document reference.
-
Voyage agent reference to filter.
-
S)One identifier of the voyage agent to filter.
-
Type of flow.
Values are
Unknown
,Import
,Export
,Transhipment
, orTransit
. -
Agent code of shipping company.
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
/handling-units/search
curl \
--request GET 'https://soget-api-integration.azure-api.net/api-tracing-code-in-mass/v1/handling-units/search' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Ocp-Apim-Subscription-Key: $API_KEY"
Response examples (200)
{
"total": 3,
"returned": 1,
"first": 0,
"items": [
{
"reference": "CGMU2436601",
"pswId": "CNI0000063978",
"freightFamily": "Container",
"sizeType": "22G1",
"packagingCode": "PK",
"measures": {
"quantity": 10,
"weight": {
"tare": {
"value": 13030,
"unit": "KGM"
},
"grossWeight": {
"value": 13030,
"unit": "KGM"
},
"netWeight": {
"value": 13030,
"unit": "KGM"
}
},
"volume": {
"value": 13030,
"unit": "KGM"
},
"remainingQuantity": 4,
"availableQuantity": 3,
"reportedQuantity": 6,
"remainingWeight": {
"value": 13030,
"unit": "KGM"
}
},
"indicators": {
"hazardous": true,
"empty": false,
"reefer": true,
"pollutant": false,
"fumigation": false,
"quarantine": false
},
"references": [
{
"type": "Rank",
"value": "20NL050BC243E2C8A0"
}
],
"customsFlag": "Unknown",
"huLocation": {
"place": "FRLEH",
"location": "MTDF"
},
"actors": {
"freightAgent": "CCGM",
"freightForwarder": "2308522"
},
"temperatures": {
"setPoint": -1,
"rangeMin": -5,
"rangeMax": 2
},
"shipments": [
{
"documentReference": "HLCUEUR2002APIK9",
"documentId": "DAI0000387547",
"documentType": 705,
"documentDate": "2020-05-07T14:38:54+02:00",
"originLocation": "FRTLS",
"destinationLocation": "FRNTE",
"processingIndicator": "Unknown",
"merchantHaulage": true
}
],
"transport": {
"meansName": "MSC EYRA",
"voyageId": "VOS0000034525",
"mode": 1,
"meansNationality": "GBR",
"voyageDates": {
"eta": "2020-05-19T22:00:00+00:00",
"etd": "2020-05-20T23:00:00+00:00",
"ata": "2020-05-19T22:43:17+00:00",
"atd": "2020-05-20T23:00:17+00:00"
},
"schedulePlace": "FRLEH",
"voyageAgentId": "VAG0000034525",
"voyageAgentReference": "OWL-RDM-2305",
"meansType": "MVE",
"meansId": [
{
"type": "IMONumber",
"name": "9360142"
}
],
"arrivalScheduleReference": "BA649R",
"departureScheduleReference": "BA649A"
},
"events": [
{
"eventType": "GIR",
"eventDate": "2019-11-12T07:41:00+08:30",
"eventPlace": "FRLEH",
"eventLocation": "MTNOTMS",
"eventWay": "In",
"eventTransportMode": 1
}
],
"hazardousItems": [
{
"imoClass": "1.1",
"limitedQuantity": true
}
],
"emptyReturn": {
"dueDate": "2022-11-19T22:00:00+00:00",
"finishDateEarliest": "2022-11-20T22:00:00+00:00",
"finishDateLatest": "2022-11-21T22:00:00+00:00"
}
}
]
}
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"
}