Tracking API returns status 200 response for "Tracking Information Not Found"
Closed this issue · 2 comments
ataylorkato commented
Per the documentation, a 401 (edit: 404, not 401) status response would be expected to be returned from the Tracking API in the event that tracking information was not found. However, the Tracking API seems to return a 200 status response instead.
Request URL:
https://onlinetools.ups.com/api/track/v1/details/1Z5629230309413682?locale=en_US&returnSignature=true&returnPOD=true
Response:
{
"trackResponse": {
"shipment": [
{
"inquiryNumber": "1Z5629230309413682",
"warnings": [
{
"code": "TW0001",
"message": "Tracking Information Not Found"
}
]
}
]
}
}
UPSRahul commented
Hi, the Track API documentation pushed on 4/4/24 does not list a 401 response.
ataylorkato commented