USPS / api-examples

86 stars 19 forks source link

TrackInfo.Service field provides inconsistent results #3

Open madedigba opened 1 year ago

madedigba commented 1 year ago

WARNING: Do not post secrets or personally identifiable information in this form

Describe the bug "Services" field in TrackInfo on the Single Tracking API response returns inconsistent responses breaking JSON standards returning a single value a times and returning an array at others containing multipe values. Single string value returned: "Service": "USPS Tracking®" Which I don't understand what the above value means. Array value returned: "Service": [ "PO to Addressee", "Signature Service", "Up to $100 insurance included" ],

To Reproduce Steps to reproduce the behavior: Track two separate tracking numbers that fall into the two categories. Exact tracking number that produced that response can be provided privately.

Expected behavior The API to always return an Array (or single value) for the "Service" field.

Screenshots

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context

charlenebedford-usps commented 1 year ago

I have added this issue to the application team board. Thank you for your comments and time.