# Invalid Country Code
source: https://developer.mastercard.com/mastercard-developers-api/documentation/errors/invalid-country-code/index.md

The country code is not a valid ISO 3166-1 alpha 3 code.

### Solution {#solution}

The country code you're using might not be in the correct format. Enter a valid, three-letter ISO code representing the country. This must be in ISO 3166-1 alpha-3 form. For example, for the United States, the code would be 'USA'.

### API Error Response {#api-error-response}

**HTTP code 400**

```JSON
{
  "Errors": {
    "Error": [
      {
        "Source": "DEVELOPERS_API",
        "ReasonCode": "INVALID_COUNTRY_CODE",
        "Description": "The country code is not a valid ISO 3166-1 alpha 3 code.",
        "Details": "1662389676788-7e6e4701-8434-47ae-a181-26cfa8f89c01",
        "Recoverable": false
      }
    ]
  }
}
```

[Back to Errors List](https://developer.mastercard.com/mastercard-developers-api/documentation/code-and-formats/index.md#list-of-common-api-errors)​​
