Jan 17 2022 09:02 AM
Does anyone have a module to get status and info for parcels from USPS API ?
I have created the code below, but I don't know how to get the right response :
Dim html As HTMLDocument, dateString As String
Set html = New HTMLDocument
With CreateObject("MSXML2.XMLHTTP")
.Open "GET", "http://secure.shippingapis.com/ShippingAPI.dll?API=TrackV2&XML=<TrackRequest USERID=" & "988HONES7813" & "><TrackID ID=" & id & "></TrackID></TrackRequest>"
.send
GetRESPONSE = .responseText
Jan 17 2022 12:20 PM
SolutionJan 17 2022 01:48 PM - edited Jan 17 2022 01:49 PM
I think that it works. I get an error '80040B1A - API Authorization failure' but it seems that the userID is not valid. I'll let you know if it works when I solve the error. Thank you
Jan 17 2022 02:38 PM
Jan 17 2022 12:20 PM
Solution