# DIL: Get PCode within the US

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

Guide: Communications

# DIL: Get PCode within the US

Use the [GeoCode](https://developer.avalara.com/api-reference/communications/v2/methods/Jurisdiction%20Determination/Geocode/) endpoint to retrieve a PCode for location within the US.

## Request

**View example**:

This example shows how to use the [GeoCode](https://developer.avalara.com/api-reference/communications/v2/methods/Jurisdiction%20Determination/Geocode/) endpoint to retrieve a PCode for the Seattle, WA 98104 zip code.

```
curl
   --request POST
   --header 'Content-Type: application/json'
  --header 'Authorization: Basic {Base64-encoded credentials}'
  --location
   -g
   --data-raw '[
    {
      "ref": "string",
      "cass": true,
      "lat": "",
      "long": "",
      "addr": "100 king street",
      "city": "Seattle",
      "st": "WA",
      "zip": "98104"
    }
  ]'
  'https://communicationsua.avalara.net/api/v2/geo/Geocode'
```

## Response

**View example**:

The response returns Geo-code data for the requested address. This data includes the PCode (`pcd`).

```
[
    {"ref": "string","cass": {    "addr": "100 S KING ST",    "city": "SEATTLE",    "st": "WA",    "zip": "98104-3844"},"cBlk": 2008,"cTrc": 9300,"cnty": "KING","feat": 2411856,"fips": "5303363000","inc": true,"jur": "SEATTLE","lat": 47.59833106855962,"long": -122.3341999995931,"pcd": 4133800,"scr": 1.0
    }
]
```