# Jurisdiction determination

Source: https://developer.avalara.com/products/communications/integration-guides/communications-integration/wxd0796936084727/

Guide: Communications

# Jurisdiction determination

Learn how to determine the correct jurisdiction for tax calculations using various methods provided by AFC.

Picking the correct jurisdiction is critical because taxes are location specific. AFC provides different ways to determine the jurisdiction:

-   Populate a location on the Invoice and Line Item.

    -   Set the BillTo address (`bill`).
    -   If applicable, set the origination (`from`) and termination (`to`) locations
-   Use the [Geocode lookup](https://developer.avalara.com/api-reference/communications/v2/methods/Jurisdiction%20Determination/Geocode/) endpoint.

    -   Perform lookups separately on a monthly or quarterly basis.
    -   Store the PCode (`pcd`) and Incorporated flag (`inc`) returned in the geocode result for the address or latitude/longitude requested.
    -   Up to 1,000 addresses are supported in a single geocode request.
    -   Communications PCodes are updated monthly.
    -   Communications geocoded addresses are updated quarterly.
    -   Only addresses in the United States and US Territories are supported.
    -   Street-level lookup is supported.
-   Use the [Geo Batch Upload](https://developer.avalara.com/api-reference/communications/v2/methods/Jurisdiction%20Determination/BatchFileUpload/) endpoint for high-volume geocoding requests.

    -   Use the [Geo Batch Upload](https://developer.avalara.com/api-reference/communications/v2/methods/Jurisdiction%20Determination/BatchFileUpload/) endpoint for high-volume geocoding requests.
        -   Upload a CSV containing your address or latitude/longitude geocoding requests.
            -   Limit CSV files to 200k records to reduce processing time and loss of information in the event of an error.
            -   Download and export the results to your database.
            -   Call the Geo Batch Status endpoint (`/api/v2/geo/batch/status/{processId}`) every minute to retrieve results as quickly as possible.
            -   Geo Batch Status endpoint download links are only active for 1 minute; reprocess the endpoint to retrieve a new valid link.
            -   5,000 consecutive errors cause the entire batch to fail immediately.
        -   Embed a geocode request within the transaction by setting `geo` = `true` within a location.
            -   Usage of the embedded geocode lookup is only to be used if you have low transaction counts.
            -   Only addresses in the United States and US Territories are supported.
            -   Street-level lookup is supported.
            -   This adds a considerable amount of time to the calculation throughput.
        -   Use the [PCode lookup](https://developer.avalara.com/api-reference/communications/v2/methods/Jurisdiction%20Determination/GetPCode/) endpoint.
            -   Perform lookups separately on a monthly or quarterly basis.
            -   Store the PCode (`pcd`) returned in the PCode Lookup Result for the location requested.
            -   Street-level lookup isn’t supported.
            -   Communications PCodes are updated monthly