UPS-API/api-documentation

Tracking API returns status 200 response for "Tracking Information Not Found"

Closed this issue · 2 comments

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"
                    }
                ]
            }
        ]
    }
}

image

Hi, the Track API documentation pushed on 4/4/24 does not list a 401 response.

My apologies - I meant a 404 response, which IS listed in the documentation:

image