<!--
{
  "availability" : [
    "iOS: 17.4.0 - 26.0.0",
    "iPadOS: 17.4.0 - 26.0.0",
    "macOS: 14.4.0 - 26.0.0",
    "tvOS: 17.4.0 - 26.0.0",
    "visionOS: 1.1.0 - 26.0.0",
    "watchOS: 10.4.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/Product/SubscriptionOffer/Signature/init(keyID:nonce:timestamp:signature:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "s:8StoreKit7ProductV17SubscriptionOfferV9SignatureV5keyID5nonce9timestamp9signatureAGSS_10Foundation4UUIDVSiAL4DataVtcfc"
  },
  "title" : "init(keyID:nonce:timestamp:signature:)"
}
-->

# init(keyID:nonce:timestamp:signature:)

Creates a subscription offer signature instance.

```
init(keyID: String, nonce: UUID, timestamp: Int, signature: Data)
```

## Parameters

`keyID`

A string that identifies the private key you use to generate the signature. You set up this key in App Store Connect. For more information, see [Generate keys for Apple In-App Purchases](https://developer.apple.com/help/app-store-connect/configure-in-app-purchase-settings/generate-keys-for-in-app-purchases).

`nonce`

A one-time UUID value that your server generates. Generate a new nonce for each signature. The string representation of the nonce you use in the signature must be lowercase.

`timestamp`

A timestamp your server generates in UNIX time format, in milliseconds. The timestamp keeps the offer active for 24 hours.

`signature`

The cryptographic signature your server generates to sign the promotional offer.

---

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)