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

# requestStorefrontIdentifier(completionHandler:)

Gets the device’s storefront identifier.

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

## Parameters

`completionHandler`

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

- storefrontIdentifier: The identifier of a specific storefront.
- error: An error value that indicates the reason for failure. Possible values are [`SKError.Code.unknown`](/documentation/StoreKit/SKError/Code/unknown), [`SKError.Code.cloudServicePermissionDenied`](/documentation/StoreKit/SKError/Code/cloudServicePermissionDenied), and [`SKError.Code.cloudServiceNetworkConnectionFailed`](/documentation/StoreKit/SKError/Code/cloudServiceNetworkConnectionFailed).

## Discussion

You need to get the appropriate storefront before you specify a product, because product identifiers are meaningful within the context of a store.

---

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)