> ## Documentation Index
> Fetch the complete documentation index at: https://codebeans-cb-checkout-rules.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Additional Information Validation

> Require customs and tax IDs for countries that need them on international orders.

Some countries require extra information on international parcels, such as a personal customs code or a tax ID. Without it, parcels can be held at customs or returned. This rule blocks checkout until the customer provides the ID for their shipping country.

## Supported IDs

| Country | ID | What the rule checks |
| - | - | - |
| South Korea | Personal Customs Clearance Code (PCCC) | Required, and must be `P` followed by 12 digits, for example `P123456789012`. |
| Brazil | CPF / CNPJ | Required |
| Italy | Codice Fiscale / PEC | Required |
| China | Resident ID Number | Required |
| Mexico | RFC (Registro Federal de Contribuyentes) | Required |

Each ID is only checked when the order ships to its country. For example, the PCCC is only required for orders shipped to South Korea. The message appears next to the **Company** field of the shipping address.

## How customers enter the ID

The rule reads the ID from a **cart attribute**, which is extra information saved with the cart. Your store needs a field on the cart page or at checkout that saves the ID under the exact key below:

| Country | Cart attribute key |
| - | - |
| South Korea | `KR_PCCC` |
| Brazil | `BR_CPF_CNPJ` |
| Italy | `IT_CODICE_FISCALE` |
| China | `CN_RESIDENT_ID` |
| Mexico | `MX_RFC` |

> [!WARNING]
>
> If your store doesn't collect the ID under these keys, the rule blocks every order shipped to the selected countries. Set up the field first, then test the rule with the **Testing** status.

## Settings

| Setting | Description |
| - | - |
| Countries | **All countries**, or only orders shipped to **Specific countries**. Each ID is already limited to its own country, so **All countries** is usually right. |
| Compliance Fields | Tick the IDs you want to require. |
| Message to display | What the customer sees. English is required. One message is used for every ID, so mention them in a general way. |
| Rule status | Active, Testing or Deactivated. See [Rule status and testing](https://codebeans-cb-checkout-rules.mintlify.site/rules/rule-status-and-testing.md). |
| Checkout behavior | See [Common rule settings](https://codebeans-cb-checkout-rules.mintlify.site/rules/common-settings.md#checkout-behavior). |

## Example message

```text theme={null}
Your country requires a customs or tax ID for this order. Please add it before you continue.
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.