The /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.
CountryISO
)State
)County
)City
)ZipCode
)NpaNxx
)Fips
)NpaNxx
and Fips
to get a range of valuesThe Best Match flag (BestMatch
) indicates the type of results.
true
: Best match is returnedfalse
: Only an exact match is returnedMatchTypeApplied
Zip Lookup Result field to see which match type is usedThe Limit Results field (LimitResults
) is used to limit the number of matches returned in the Zip Lookup Result.
0
sets the limit to the defaultThis example demonstrates a best match PCode Jurisdiction Determination request.
One location (LocationData
) is returned using a best match (MatchTypeApplied
).
This example demonstrates a best match request using only a zip code (ZipCode
).
Five locations (LocationData
) are returned using an exact match (MatchTypeApplied
).
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 false
).
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: