UPS-API / api-documentation

MIT License
34 stars 19 forks source link

Tracking API: Missing properties & status codes reference #7

Open aldacosta opened 11 months ago

aldacosta commented 11 months ago

After doing some tests and comparing old APIs with the new ones, I have found that in the Tracking API, the property deliveryInformation of the package, never includes the field receivedBy, but in the old one (Tracking with signature) it was returned. I have tried passing the query parameter returnSignature set to true, but the property is not returned either, only the signature image is in the deliveryInformation property. Is this some kind of error?

On the other side, is there any kind of guide that shows all the possible values for the status codes returned and their description? For example, I would like to know the possible values for currentStatus. Is this possible?

Thanks!

chuntoulee commented 11 months ago

Thank you for bringing this concern to our attention. Our technical team is looking into it and will provide a more substantive response shortly.

timoraltinok commented 6 months ago

Is it possible to get an update on this topic? Those properties are still missing.

chacham2 commented 5 months ago

is there any kind of guide that shows all the possible values for the status codes returned and their description

https://developer.ups.com/api/reference/tracking/api-code

rrehbein commented 5 months ago

The status codes listed in https://developer.ups.com/api/reference/tracking/api-code appear incomplete. As of writing, there is no 059 code on the page.

Snippet of a response we're seeing for a problem tracking number.

{
  "currentStatus": {
    "description": "Damage Reported",
    "code": "059",
    "simplifiedTextDescription": "The package has been damaged. All merchandise has been discarded and the sender will be notified."
  }
}

Also, the reference to see the api-codes is on the statusCode field rather than the code field. The code value seem inconsistent between activity/status and currentStatus though the schema file suggests they are the same structure.

chacham2 commented 5 months ago

Yeah, something seems awry.

Fwiw, a different time, i got the following list, which is quite similar: Ups Activity Status Code list.txt

par5er commented 1 week ago

Any update on this issue? Common event statuses like "Departed from Facility" and "Arrived at Facility" are missing from the status reference making the API almost unusable

[
  {
    "type": "I",
    "description": "Departed from Facility",
    "code": "DP",
    "statusCode": "010"
  },
  {
    "type": "I",
    "description": "Arrived at Facility",
    "code": "OR",
    "statusCode": "160"
  }
]