Create a tracking for handling units with same document reference.
Sample request:
POST /track-document
Body
Information of new tracking.
-
Customs indicators
Values are
Unknown
,Import
,Export
,Transit
,Transhipment
,DomesticIn
,DomesticOut
, orDomesticTranshipment
. -
Event location.
Maximum length is
20
. -
Agent code.
Maximum length is
64
. -
Webhook URL endpoint to receive tracking events' notifications.
Minimum length is
1
. Format should match the following pattern:^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$
. -
Reference of the announcement document
Minimum length is
1
.
POST
/track-document
curl \
--request POST 'https://soget-api-integration.azure-api.net/api-tracking-code-in-mass/v1/track-document' \
--header "Content-Type: application/json" \
--data '{"url":"https://my-webhook-endpoints.com","way":"Import","place":"MTDF","agentCode":"CCGM","documentReference":"3714238101"}'
Request example
{
"url": "https://my-webhook-endpoints.com",
"way": "Import",
"place": "MTDF",
"agentCode": "CCGM",
"documentReference": "3714238101"
}
Response examples (201)
{
"trackingId": "TRK0000000001",
"trackedHandlingUnits": [
{
"spi": "CNI0000000001",
"reference": "CGMU0000001"
},
{
"spi": "CNI0000000002",
"reference": "CGMU0000002"
}
]
}
Response examples (400)
{
"status": "string",
"timestamp": "2025-05-04T09:42:00Z",
"code": "string",
"message": "string",
"subErrors": [
{
"section": "string",
"field": "string",
"rejectedValue": "string",
"message": "string"
}
]
}
Response examples (401)
{
"status": "string",
"timestamp": "2025-05-04T09:42:00Z",
"code": "string",
"message": "string",
"subErrors": [
{
"section": "string",
"field": "string",
"rejectedValue": "string",
"message": "string"
}
]
}