Filter handling units' customs information relating to the merchandise by reference or by S)ONE ID.
Sample request
GET /customs?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 identification 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
/customs
curl \
--request GET 'https://soget-api-integration.azure-api.net/api-customs/v1/customs'
Response examples (200)
{
"total": 3,
"returned": 1,
"first": 0,
"items": [
{
"reference": "string",
"spi": "string",
"customsInformationsItems": [
{
"commodityCode": "string",
"commodityCodeType": "string",
"mrn": "string",
"mrnItem": 42,
"document": "string",
"status": "string"
}
]
}
]
}
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"
}