<!--
{
  "availability" : [
    "iOS: 15.0.0 - 17.2.0",
    "iPadOS: 15.0.0 - 17.2.0",
    "macOS: 12.0.0 - 14.2.0",
    "tvOS: 15.0.0 - 17.2.0",
    "visionOS: 1.0.0 - 1.1.0",
    "watchOS: 8.0.0 - 10.2.0"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/Transaction/offerID",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "s:8StoreKit11TransactionV7offerIDSSSgvp"
  },
  "title" : "offerID"
}
-->

# offerID

A string that identifies an offer applied to the current subscription.

```
var offerID: String? { get }
```

## Discussion

This value is `nil` if there isn’t an offer, or if the offer type is [`introductory`](/documentation/StoreKit/Transaction/OfferType-swift.struct/introductory).

If the offer type is [`promotional`](/documentation/StoreKit/Transaction/OfferType-swift.struct/promotional), this value contains the promotional offer identifier you set up in App Store Connect. For more information about promotional offers, see [Set up promotional offers for auto-renewable subscriptions](https://help.apple.com/app-store-connect/#/dev16dfca448).

If the offer type is [`code`](/documentation/StoreKit/Transaction/OfferType-swift.struct/code), this value contains the reference name of the offer code you set up in App Store Connect. For more information about offer codes, see [Set up offer codes](https://help.apple.com/app-store-connect/#/dev6a098e4b1).

---

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)