Add tracking to an order.
Path parameters
-
publicId
string Required order's publicId
Body
Required
-
tracking_number
string Required tracking number
-
slug
string Shipper slug (dhl, fedex, ups, dpd, ...)
POST
/api/v2/trackings/{publicId}
curl \
-X POST https://sandbox-w6wvm5a-qhobd463uhz3w.eu-2.platformsh.site/api/v2/trackings/{publicId} \
-H "apikey: $API_KEY" \
-d '{"tracking_number":"string","slug":"string"}'
Request example
{
"tracking_number": "string",
"slug": "string"
}
Response examples (200)
{
"code": 200,
"msg": "Success"
}
Response examples (400)
{
"code": 400,
"msg": "Bad Request"
}
Response examples (500)
{
"code": 500,
"msg": "Internale Server Error"
}