# Display and store the VAT code in responses

Source: https://developer.avalara.com/vat-erp/transactions/certification-requirements/vat-code-in-responses/

**Element type:** Required

**Endpoints/models used:** N/A

Your integration must should store VAT codes returned by the AvaTax engine. This code can then be passed to an ERP system. This requirement is handled through your back end and not directly via an AvaTax API call.

## VAT code formatting

The VAT code is a series of characters generated by the AvaTax engine and describes the nature of a transaction. The code is formatted as follows:

_CC D T VVV G DD SS_  

-   _CC_: 2-digit ISO country code

-   _D_: Document type. Available types include:

    -   `S`: Sales invoice

    -   `P`: Purchase invoice

    -   `X`: Sales credit

    -   `T`: Sales transfer

-   _T_: Transaction type. Available types include:

    -   `C`: Reverse charge (RC) (EU) (art. 196)

    -   `I`: Intra-Community (IC)

    -   `L`: Domestic (LOCAL) (with Sales: LOCAL SALES, with purchase: LOCAL)

    -   `M`: Domestic reverse charge (LOCAL RV) (Art. 194)

    -   `T`: Triangulation (TRIN)

    -   `V`: Postponement of VAT (in case of import)

    -   `E`: Exempt (in case of importation or Export) (EXPORT)

    -   `Z`: Outside the scope of VAT

    -   `N`: Reverse charge (non-EU) (art. 196)

    -   `A`: Distance sale

    -   `4`: Deemed export GB-NI

    -   `0`: IOSS

    -   `5`: Deemed Import for XI

-   _VVV_: The 3-digit VAT rate. A VAT rate of `196`, for example, would be 19.6%.

-   _G_: The type of goods. Available types vary for purchases and sales.

    -   Purchase:

        -   `C`: Commodities

        -   `S`: Services

    -   Sales:

        -   `C`: Commodities

        -   `D`: Services

-   _DD_: The percentage deductible VAT rate. This value is blank if the transaction is 100% deductible and is `00` if nothing is deductible.

-   _SS_: The 2-character ISO code for the ship-from country. This is only applicable for certain sales documents.