<!--
{
  "availability" : [
    "iOS: 11.0.0 - 18.0.0",
    "iPadOS: 11.0.0 - 18.0.0",
    "macCatalyst: 13.1.0 - 18.0.0",
    "macOS: 11.0.0 - 15.0.0",
    "tvOS: 11.0.0 - 18.0.0",
    "watchOS: 7.0.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/SKCloudServiceController/requestStorefrontCountryCode(completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SKCloudServiceController(im)requestStorefrontCountryCodeWithCompletionHandler:"
  },
  "title" : "requestStorefrontCountryCode(completionHandler:)"
}
-->

# requestStorefrontCountryCode(completionHandler:)

Gets the country code for the storefront associated with a customer’s iTunes account.

```
func requestStorefrontCountryCode(completionHandler: @escaping @Sendable (String?, (any Error)?) -> Void)
```

## Parameters

`completionHandler`

A block that is called when the storefront country code is returned. The block takes the following parameters:

- storefrontCountryCode: The country code of a specific storefront.
- error: An error value that indicates the reason for failure. See [`SKError.Code`](/documentation/StoreKit/SKError/Code) for possible error values.

## Discussion

You need to get the appropriate storefront country code before you specify a product as each country or region contains different products.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)