> ## 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.

# Phone Must Match Country

> Check that the phone number's dial code matches the shipping country.

Couriers often call or text the customer before delivery. This rule makes sure the shipping phone number starts with the dial code of the shipping country, for example `+44` for the United Kingdom.

## What it checks

The rule takes the phone number from the shipping address, removes spaces and symbols, and checks that it starts with the dial code of the shipping country.

| Shipping country | Phone | Result |
| - | - | - |
| United Kingdom | `+44 20 7946 0958` | Allowed |
| United Kingdom | `+1 212 555 0100` | Blocked |
| United States | `+1 212 555 0100` | Allowed |

The message appears next to the **phone** field in the contact section.

The rule doesn't block checkout when:

* The shipping address has no phone number.
* The shipping country isn't in the list below.

> [accordion] Supported countries and dial codes
>
> | Country | Dial code | Country | Dial code |
> | - | - | - | - |
> | Australia | 61 | Mexico | 52 |
> | Austria | 43 | Netherlands | 31 |
> | Belgium | 32 | New Zealand | 64 |
> | Brazil | 55 | Norway | 47 |
> | Canada | 1 | Poland | 48 |
> | Chile | 56 | Portugal | 351 |
> | China | 86 | Singapore | 65 |
> | Denmark | 45 | South Africa | 27 |
> | Finland | 358 | South Korea | 82 |
> | France | 33 | Spain | 34 |
> | Germany | 49 | Sweden | 46 |
> | Greece | 30 | Switzerland | 41 |
> | Hong Kong | 852 | Turkey | 90 |
> | India | 91 | United Arab Emirates | 971 |
> | Italy | 39 | United Kingdom | 44 |
> | Japan | 81 | United States | 1 |

> [!WARNING]
>
> Customers must enter the phone number with its country code. A local number such as `020 7946 0958` (without `+44`) is blocked for the United Kingdom.

## Settings

| Setting | Description |
| - | - |
| Countries | **All countries**, or only orders shipped to **Specific countries**. |
| Message to display | What the customer sees. English is required. |
| 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}
Please enter a phone number with the country code of your shipping country, for example +44.
```


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