Calling Web API
-
Sign on for authorization – this example is using 3rd party tool Fiddler to the endpoint
https://api.trueaddress.net/api/Address/CorrectAddr
2. Request and Response –
Address Request in NY:
POST https://api.trueaddress.net/api/Address/CorrectAddr HTTP/1.1
User-Agent: Fiddler
Authorization: Basic ZHNrYXJha2hvZDpoMVpyOHJ4JXNIeTNhQjlj
Host: api.trueaddress.net
Content-Length: 215
Content-Type: application/json
Accept: application/json
{
Full_Name: "Alan Alda",
Firm_Name: "Martin Bergman Productions, Inc.",
Address_Line_1: "641 Lexington Avenue",
Address_Line_2: "Suite 1400",
City: "New York",
State: "NY",
ZIP_Code: "10022"
}
Received Response:
HTTP/1.1 202 Accepted
Cache-Control: no-cache
Content-Type: application/json; charset=utf-8
Date: Wed, 13 May 2020 20:09:00 GMT
Expires: -1
Pragma: no-cache
Server: Microsoft-IIS/10.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Content-Length: 688
Connection: keep-alive
{
"Address_ID": "",
"Address_Line_1": "641 Lexington Ave",
"Address_Line_2": "Suite 1400",
"City": "New York",
"State": "NY",
"ZIP_Code": "10022",
"Plus4": "4503",
"Firm_Name": "Martin Bergman Productions, Inc.",
"Last_Line": "New York NY 10022-4503",
"Urbanization": "",
"Delivery_Point_Barcode": "99",
"Deliverability_Score": "3",
"USPS_Score": "",
"Non_USPS_Score": "",
"RDI": "N",
"DPV_Confirm": "D",
"DPV_Footnotes": "AAN1",
"ZIP4_Footnotes": "GHN",
"LACSLink_Return_Code": " ",
"SuiteLink_Return_Code": "00",
"ZIP4_Record_Type": "H",
"DPV_CMRA_Flag": "N",
"DPV_PBSA_Flag": "N",
"DPV_Vacant_Flag": "N",
"DPV_Nostats_Flag": "Y",
"Carrier_Route": "C383",
"eLOT_Number": "0105",
"eLOT_Ascending_Descending": "A",
"City_Abbreviated": "New York"
}
"Carrier_Route": "H088",
"eLOT_Number": "0149",
"eLOT_Ascending_Descending": "A",
"City_Abbreviated": "Castle Rock"
}
Return to Additional References