---
title: "requestStorefrontCountryCode(completionHandler:)"
framework: storekit
role: symbol
role_heading: Instance Method
path: "storekit/skcloudservicecontroller/requeststorefrontcountrycode(completionhandler:)"
---

# requestStorefrontCountryCode(completionHandler:)

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

## Declaration

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

```swift
func requestStorefrontCountryCode() async throws -> String
```

## Parameters

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

## Discussion

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

## See Also

### Determining capabilities

- [Determining a person’s Apple Music capabilities](storekit/determining-a-person-s-apple-music-capabilities.md)
- [requestUserToken(forDeveloperToken:completionHandler:)](storekit/skcloudservicecontroller/requestusertoken(fordevelopertoken:completionhandler:).md)
- [requestCapabilities(completionHandler:)](storekit/skcloudservicecontroller/requestcapabilities(completionhandler:).md)
- [SKCloudServiceCapability](storekit/skcloudservicecapability.md)
- [requestStorefrontIdentifier(completionHandler:)](storekit/skcloudservicecontroller/requeststorefrontidentifier(completionhandler:).md)
- [requestPersonalizationToken(forClientToken:withCompletionHandler:)](storekit/skcloudservicecontroller/requestpersonalizationtoken(forclienttoken:withcompletionhandler:).md)
