Skip to main content
Avalara Help Center

How do I get a PCode for a country or state?

Overview

You want to get a PCode for a country or state.

Environment

Avalara AvaTax for Communications License

Resolution

  • Use the EZTaxZipToPCodeP4Ex function.  
    • If you are trying to find PCode for a country, specify the country ISO code and the rest of the field as null strings.  
    • If you are trying to find PCode for a state, specify the country ISO code, state abbreviation and the rest of the fields as null strings.