<!--
{
  "availability" : [
    "iOS: 12.2.0 - 18.0.0",
    "iPadOS: 12.2.0 - 18.0.0",
    "macCatalyst: 13.1.0 - 18.0.0",
    "macOS: 10.14.4 - 15.0.0",
    "tvOS: 12.2.0 - 18.0.0",
    "visionOS: 1.0.0 - 2.0.0",
    "watchOS: 6.2.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/SKPaymentDiscount/keyIdentifier",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SKPaymentDiscount(py)keyIdentifier"
  },
  "title" : "keyIdentifier"
}
-->

# keyIdentifier

A string that identifies the key used to generate the signature.

```
var keyIdentifier: String { get }
```

## Discussion

You generate and download keys from App Store Connect. See the “KEY ID” column in App Store Connect to use as the [`keyIdentifier`](/documentation/StoreKit/SKPaymentDiscount/keyIdentifier).

---

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)