> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://ixopay.ferndocs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://ixopay.ferndocs.com/_mcp/server.

# CreditcardBinCountry

Matches transactions whose card-BIN issuer country is (or is not) in a configured list. Shown as "Credit card: BIN Country" in the condition catalogue.

## Parameters

| Field        | Type             | Required | Allowed values                                                          |
| ------------ | ---------------- | -------- | ----------------------------------------------------------------------- |
| `countries`  | array of strings | yes      | One or more ISO 3166-1 alpha-2 country codes, e.g. `["DE", "AT", "CH"]` |
| `comparator` | string           | yes      | `"in"` or `"notin"`                                                     |

## Example

```json
{
  "constraint": "CreditcardBinCountry",
  "params": {
    "countries": ["DE", "AT", "CH"],
    "comparator": "in"
  }
}
```

## Notes

* **Availability:** might not be included in your platform package — if this condition is missing from the catalogue returned by [List routing constraints](https://documentation.ixopay.com/api/provisioning/list-routing-constraints), contact your Customer Success Manager to have it activated.
* If no BIN data is found for the card, `"in"` conditions do not match while `"notin"` conditions match. For transactions without card data (or when the BIN lookup fails), rule evaluation stops and the default connector is used.
* Country codes must be uppercase ISO 3166-1 alpha-2.