<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/StoreKitError",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "s:8StoreKit0aB5ErrorO"
  },
  "title" : "StoreKitError"
}
-->

# StoreKitError

StoreKit In-App Purchase error codes.

```
enum StoreKitError
```

## Topics

### StoreKit Error Codes

[`StoreKitError.networkError(_:)`](/documentation/StoreKit/StoreKitError/networkError(_:))

A network error occurred.

[`StoreKitError.systemError(_:)`](/documentation/StoreKit/StoreKitError/systemError(_:))

A system error occurred.

[`StoreKitError.userCancelled`](/documentation/StoreKit/StoreKitError/userCancelled)

The user canceled.

[`StoreKitError.notAvailableInStorefront`](/documentation/StoreKit/StoreKitError/notAvailableInStorefront)

The function isn’t available on devices configured for this storefront.

[`StoreKitError.notEntitled`](/documentation/StoreKit/StoreKitError/notEntitled)

The app doesn’t have the appropriate entitlements to use the functionality.

[`StoreKitError.unknown`](/documentation/StoreKit/StoreKitError/unknown)

An unknown error occurred.

[`StoreKitError.unsupported`](/documentation/StoreKit/StoreKitError/unsupported)

The operation doesn’t support this product.

## Relationships

### Conforms To

[`Error`](/documentation/Swift/Error)

[`Sendable`](/documentation/Swift/Sendable)

[`Escapable`](/documentation/Swift/Escapable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Copyable`](/documentation/Swift/Copyable)

[`LocalizedError`](/documentation/Foundation/LocalizedError)

---

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)