/api/v2/afc/PCode Jurisdiction Determination endpoint returns a list of PCodes associated with a specified location.
The PCode Jurisdiction Determination endpoint accepts a PCode Lookup Request. Specify a location, best match or exact match, and how many results you want to see. Location data, including PCode, is returned along with additional details in the PCode Lookup Result.
Specify a location.
Fipsto get a range of values
The Best Match flag (
BestMatch) indicates the type of results.
true: Best match is returned
false: Only an exact match is returned
MatchTypeAppliedZip Lookup Result field to see which match type is used
Considerations when using the Best Match flag:
The Limit Results field (
LimitResults) is used to limit the number of matches returned in the Zip Lookup Result.
0sets the limit to the default
This example demonstrates a best match PCode Jurisdiction Determination request.
One location (
LocationData) is returned using a best match (
This example demonstrates a best match request using only a zip code (
Five locations (
LocationData) are returned using an exact match (
This example demonstrates a PCode lookup in India (
CountryISO is set to “IND”).
The country of India (
CountyISO) is returned even though a local jurisdiction is requested.
Similar to Example 3, but with an exact match requested (
BestMatch set to
No results are returned because an exact match for the requested jurisdiction can’t be found.
This example demonstrates both an NPANXX and Fips code range by using a “*”.
Results are limited to 14 jurisdictions: