Questions tagged [usps]

The United States Postal Service provides a web API for accessing postal data such as zip codes and rates.

The United States Postal Service provides a web API for accessing postal data such as zip codes and rates.

See https://www.usps.com/business/webtools.htm

167 questions
3
votes
2 answers

USPS Package Track API is not returning XML child elements for TrackSummary

Please see the temporary solution at the end. Summary (added 12/24/22 for clarification): USPS's tracking API is not returning responses in the same format as their documentation. The actual format makes it difficult to extract the event date since…
3
votes
1 answer

USPS - How do I get international shipping rates via the API?

I am trying to get international shipping rate quotes via the USPS API at http://production.shippingapis.com/ShippingAPI.dll I have a username and account number and can use the API successfully for domestic rate quotes. I can't find the info for…
Evik James
  • 10,335
  • 18
  • 71
  • 122
3
votes
2 answers

How to distinguish UPS Mail Innovations from USPS tracking number

I'm struggling to identify the shipping carrier by the tracking number provided, if this is a UPS Mail Innovations number. I"m writing a small C# library to complete this task and the best resource I've ever found is a Ruby based one called…
kalitsov
  • 1,319
  • 3
  • 20
  • 33
3
votes
1 answer

How to Test USPS Package Tracking API without test tracking numbers

USPS recommends testing their API with test tracking numbers but doesn't provide any. How can the USPS API be tested without valid testing tracking numbers. I've been looking for USPS tracking API test tracking numbers to see USPS tracking API…
Andre Bulatov
  • 1,090
  • 3
  • 16
  • 47
3
votes
3 answers

USPS API for tracking shipments in PHP

I have a problem. I registered on the USPS website and from there I took user and pass to access their API. But when I try to access the tracking I get as a result a single string of text with all the result without formatting XML The script that I…
Vincenzo
  • 39
  • 1
  • 5
3
votes
1 answer

Cross Domain access to USPS Address validation API

I am trying to hit USPS address validation API by AJAX call and I am getting 'Cross-Origin Request Blocked' error. However when I am trying to access the same address though URL, I am getting the results. Has this error something to do with approval…
Hari Chaudhary
  • 630
  • 1
  • 7
  • 20
3
votes
4 answers

What are some Physical Mailing Services with APIs? (pdf to delivered letter)

I'm writing a bill generation service for a client, and I would like to program my self out of the most time consuming part of the process. It goes something like this. print X number of pdfs and envelopes, stuff envelops, stamp, and bring to post…
reconbot
  • 5,138
  • 6
  • 45
  • 63
3
votes
1 answer

USPS shipping calculator API not returning valid response

I am getting this error from USPS I am making query at http://production.shippingapis.com/ShippingAPI.dll?API=RateV4&XML= 80040b1a Authorization failure. You are not authorized to connect to this…
Ravish Kumar
  • 602
  • 1
  • 8
  • 20
2
votes
1 answer

OSCommerce USPS convert weight unit from Pound to Ounces

I am working on an OSCommerce site, and for the USPS Shipping method I want to convert the weight unit from Pounds to Ounces, but not getting the way how. Can anyone help?
Dheeraj Agrawal
  • 2,347
  • 11
  • 46
  • 63
2
votes
1 answer

How to fix USPS "The element has invalid child element" API error?

I'm trying to use USPS API to calculate shipping charge. Here's the request I'm sending to https://secure.shippingapis.com/ShippingAPI.dll:
msrumon
  • 1,250
  • 1
  • 10
  • 27
2
votes
1 answer

Unclear why Fetch for UPS XML API failing

I'm working on an airtable automation that is putting in an address validation request to the USPS API. For some reason, when I try to fetch it times out. I've validated that the URL I'm testing on works just fine and provides a response, but no…
j_kathleen
  • 21
  • 1
2
votes
1 answer

USPS Address Validation API using XML and Javascript

I ran the following code (with my user Id entered): const xhttp = new XMLHttpRequest(); const url = 'https://secure.shippingapis.com/ShippingAPI.dll?API=Verify'; xhttp.open('GET', url, true); xhttp.onreadystatechange = (e) => { if…
Erich Buelow
  • 65
  • 1
  • 10
2
votes
1 answer

USPS API for Address Correction Response Question

I want to use the USPS API https://www.usps.com/business/web-tools-apis/address-information-api.htm for correcting addresses typed into our application. Specifically, I will add a little button next to the address that will allow the user send the…
Be Kind To New Users
  • 9,672
  • 13
  • 78
  • 125
2
votes
1 answer

USPS Shipping API Standard Post Machinable tag

Ok so I've been trying to days now to figure out how to use the USPS shipping API to get the shipping rate of a package under the service "Standard Post". I can do media mail, priority mail and first class but every time I try to do "Standard Post"…
user796679
  • 69
  • 1
  • 2
2
votes
0 answers

Send XML Request to USPS Server

I am trying to use the USPS Address Standardization Web Tool and integrate it with Adobe AEM Forms. In this link it explains the three steps: Build the XML Request Make the Internet Connection & Send the XML Request Unpack the XML Response The…
1
2
3
11 12