<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/SKError/Code",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "c:@E@SKErrorCode"
  },
  "title" : "SKError.Code"
}
-->

# SKError.Code

Error codes for StoreKit errors.

```
enum Code
```

## Topics

### Enumeration Cases

[`SKError.Code.unknown`](/documentation/StoreKit/SKError/Code/unknown)

Error code indicating that an unknown or unexpected error occurred.

[`SKError.Code.clientInvalid`](/documentation/StoreKit/SKError/Code/clientInvalid)

Error code indicating that the client is not allowed to perform the attempted action.

[`SKError.Code.paymentCancelled`](/documentation/StoreKit/SKError/Code/paymentCancelled)

Error code indicating that the user canceled a payment request.

[`SKError.Code.paymentInvalid`](/documentation/StoreKit/SKError/Code/paymentInvalid)

Error code indicating that one of the payment parameters wasn’t recognized by the App Store.

[`SKError.Code.paymentNotAllowed`](/documentation/StoreKit/SKError/Code/paymentNotAllowed)

Error code indicating that the user is not allowed to authorize payments.

[`SKError.Code.storeProductNotAvailable`](/documentation/StoreKit/SKError/Code/storeProductNotAvailable)

Error code indicating that the requested product is not available in the store.

[`SKError.Code.cloudServicePermissionDenied`](/documentation/StoreKit/SKError/Code/cloudServicePermissionDenied)

Error code indicating that the user has not allowed access to Cloud service information.

[`SKError.Code.cloudServiceNetworkConnectionFailed`](/documentation/StoreKit/SKError/Code/cloudServiceNetworkConnectionFailed)

Error code indicating that the device could not connect to the network.

[`SKError.Code.cloudServiceRevoked`](/documentation/StoreKit/SKError/Code/cloudServiceRevoked)

Error code indicating that the user has revoked permission to use this cloud service.

[`SKError.Code.privacyAcknowledgementRequired`](/documentation/StoreKit/SKError/Code/privacyAcknowledgementRequired)

Error code indicating that the user has not yet acknowledged Apple’s privacy policy for Apple Music.

[`SKError.Code.unauthorizedRequestData`](/documentation/StoreKit/SKError/Code/unauthorizedRequestData)

Error code indicating that the app is attempting to use a property for which it does not have the required entitlement.

[`SKError.Code.invalidOfferIdentifier`](/documentation/StoreKit/SKError/Code/invalidOfferIdentifier)

Error code indicating that the offer identifier is invalid.

[`SKError.Code.invalidOfferPrice`](/documentation/StoreKit/SKError/Code/invalidOfferPrice)

Error code indicating that the price you specified in App Store Connect is no longer valid.

[`SKError.Code.invalidSignature`](/documentation/StoreKit/SKError/Code/invalidSignature)

Error code indicating that the signature in a payment discount isn’t valid.

[`SKError.Code.missingOfferParams`](/documentation/StoreKit/SKError/Code/missingOfferParams)

Error code indicating that parameters are missing in a payment discount.

[`SKError.Code.ineligibleForOffer`](/documentation/StoreKit/SKError/Code/ineligibleForOffer)

An error code that indicates the user is ineligible for the subscription offer.

[`SKError.Code.overlayCancelled`](/documentation/StoreKit/SKError/Code/overlayCancelled)

An error code that indicates the cancellation of an overlay.

[`SKError.Code.overlayInvalidConfiguration`](/documentation/StoreKit/SKError/Code/overlayInvalidConfiguration)

An error code that indicates the overlay’s configuration is invalid.

[`SKError.Code.overlayPresentedInBackgroundScene`](/documentation/StoreKit/SKError/Code/overlayPresentedInBackgroundScene)

[`SKError.Code.overlayTimeout`](/documentation/StoreKit/SKError/Code/overlayTimeout)

[`SKError.Code.unsupportedPlatform`](/documentation/StoreKit/SKError/Code/unsupportedPlatform)

An error code that indicates the current platform doesn’t support overlays.

### Initializers

[`init(rawValue:)`](/documentation/StoreKit/SKError/Code/init(rawValue:))



---

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)