--- title: CountryCode - Storefront API description: > The code designating a country/region, which generally follows ISO 3166-1 alpha-2 guidelines. If a territory doesn't have a country code value in the `CountryCode` enum, then it might be considered a subdivision of another country. For example, the territories associated with Spain are represented by the country code `ES`, and the territories associated with the United States of America are represented by the country code `US`. api_version: 2026-01 api_name: storefront type: enum api_type: graphql source_url: html: 'https://shopify.dev/docs/api/storefront/latest/enums/CountryCode' md: 'https://shopify.dev/docs/api/storefront/latest/enums/CountryCode.md' --- # Country​Code enum The code designating a country/region, which generally follows ISO 3166-1 alpha-2 guidelines. If a territory doesn't have a country code value in the `CountryCode` enum, then it might be considered a subdivision of another country. For example, the territories associated with Spain are represented by the country code `ES`, and the territories associated with the United States of America are represented by the country code `US`. ## Valid values * AC * AD * AE * AF * AG * AI * AL * AM * AN * AO * AR * AT * AU * AW * AX * AZ * BA * BB * BD * BE * BF * BG * BH * BI * BJ * BL * BM * BN * BO * BQ * BR * BS * BT * BV * BW * BY * BZ * CA * CC * CD * CF * CG * CH * CI * CK * CL * CM * CN * CO * CR * CU * CV * CW * CX * CY * CZ * DE * DJ * DK * DM * DO * DZ * EC * EE * EG * EH * ER * ES * ET * FI * FJ * FK * FO * FR * GA * GB * GD * GE * GF * GG * GH * GI * GL * GM * GN * GP * GQ * GR * GS * GT * GW * GY * HK * HM * HN * HR * HT * HU * ID * IE * IL * IM * IN * IO * IQ * IR * IS * IT * JE * JM * JO * JP * KE * KG * KH * KI * KM * KN * KP * KR * KW * KY * KZ * LA * LB * LC * LI * LK * LR * LS * LT * LU * LV * LY * MA * MC * MD * ME * MF * MG * MK * ML * MM * MN * MO * MQ * MR * MS * MT * MU * MV * MW * MX * MY * MZ * NA * NC * NE * NF * NG * NI * NL * NO * NP * NR * NU * NZ * OM * PA * PE * PF * PG * PH * PK * PL * PM * PN * PS * PT * PY * QA * RE * RO * RS * RU * RW * SA * SB * SC * SD * SE * SG * SH * SI * SJ * SK * SL * SM * SN * SO * SR * SS * ST * SV * SX * SY * SZ * TA * TC * TD * TF * TG * TH * TJ * TK * TL * TM * TN * TO * TR * TT * TV * TW * TZ * UA * UG * UM * US * UY * UZ * VA * VC * VE * VG * VN * VU * WF * WS * XK * YE * YT * ZA * ZM * ZW * ZZ *** ## Fields * * * * * * * * * *** ## Map ### Fields with this enum * [Cart​Buyer​Identity.countryCode](https://shopify.dev/docs/api/storefront/latest/objects/CartBuyerIdentity#field-CartBuyerIdentity.fields.countryCode) * [Cart​Delivery​Coordinates​Preference.countryCode](https://shopify.dev/docs/api/storefront/latest/objects/CartDeliveryCoordinatesPreference#field-CartDeliveryCoordinatesPreference.fields.countryCode) * [Country.isoCode](https://shopify.dev/docs/api/storefront/latest/objects/Country#field-Country.fields.isoCode) * [Mailing​Address.countryCodeV2](https://shopify.dev/docs/api/storefront/latest/objects/MailingAddress#field-MailingAddress.fields.countryCodeV2) * [Payment​Settings.countryCode](https://shopify.dev/docs/api/storefront/latest/objects/PaymentSettings#field-PaymentSettings.fields.countryCode) * [Shop.shipsToCountries](https://shopify.dev/docs/api/storefront/latest/objects/Shop#field-Shop.fields.shipsToCountries) ### Inputs with this enum * [Cart​Buyer​Identity​Input.countryCode](https://shopify.dev/docs/api/storefront/latest/input-objects/CartBuyerIdentityInput#fields-countryCode) * [Cart​Delivery​Address​Input.countryCode](https://shopify.dev/docs/api/storefront/latest/input-objects/CartDeliveryAddressInput#fields-countryCode) * [Cart​Delivery​Coordinates​Preference​Input.countryCode](https://shopify.dev/docs/api/storefront/latest/input-objects/CartDeliveryCoordinatesPreferenceInput#fields-countryCode)