Authentication
To access the API resources, you must include the Authkey
authorization header in your requests.
To access the API resources, you must include the Authkey
authorization header in your requests.
To search by zip code, make a GET request with the ZIP_CODE
parameter.
GET /us_postal_code_tax/?zip=ZIP_CODE
curl -H "Authkey: TU_TOKEN" https://apis.fonsecantero.com/us_postal_code_tax/?zip=ZIP_CODE
<?php $token = "YOU_TOKEN"; $zipCode = "ZIP_CODE"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://apis.fonsecantero.com/us_postal_code_tax/?zip=$zipCode"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HTTPHEADER, ["Authkey: $token"]); $response = curl_exec($ch); curl_close($ch); echo $response; ?>
const token = "YOU_TOKEN"; const zipCode = "ZIP_CODE"; fetch(`https://apis.fonsecantero.com/us_postal_code_tax/?zip=${zipCode}`, { method: 'GET', headers: { 'Authkey': token } }) .then(response => response.json()) .then(data => console.log(data)) .catch(error => console.error('Error:', error));
[ { "Id": "32860", "AreaName": "SOUTHERN", "AreaCode": "4G", "DistrictName": "LOUISIANA", "DistrictNo": "700", "Zip": "71203", "LocaleName": "MONROE", "DeliveryArea": "501 STERLINGTON RD", "City": "MONROE", "State": "LA", "PhysicalZip": "71203", "Zip4": "9998", "Lat": null, "Lng": null, "TaxTotal": "0.129500", "TaxState": "0.044500", "TaxCounty": "0.000000", "TaxCity": "0.000000", "TaxSpecial": "0.085000" } ]