UPS-API / api-documentation

MIT License
39 stars 19 forks source link

Querying ZipCode for Origin and Destination Addresses in Tracking API #95

Closed brunovu20 closed 5 months ago

brunovu20 commented 5 months ago

Hello,

I am currently working with the tracking API, and I'm looking to obtain the zip codes for both the origin and destination addresses from the tracking data. In the response I have these information without zipcode

"packageAddress": [
  {
    "address": {
      "city": "SPOKANE",
      "country": "US",
      "countryCode": "US",
      "stateProvince": "WA"
    },
    "type": "ORIGIN"
  },
  {
    "address": {
      "city": "AMERICAN FALLS",
      "country": "US",
      "countryCode": "US",
      "stateProvince": "ID"
    },
    "type": "DESTINATION"
  }
],

I've searched through the API documentation but couldn't find specific information on how to achieve this.

Could anyone guide me on how to extract this information from the API? An example query or a snippet of code would be greatly appreciated.

Thank you in advance.

UPSRahul commented 5 months ago

Hi, thank you for your comment. In order to access the zip code, the developer account your client credentials are tied to need to have a relationship with the UPS account that is responsible for the package.

UPSRahul commented 5 months ago

If you would like further support, the UPS Help Desk should be able to help: https://developer.ups.com/contactus