<!--
{
  "availability" : [
    "iOS: 17.2.0 -",
    "iPadOS: 17.2.0 -",
    "macOS: 14.2.0 -",
    "tvOS: 17.2.0 -",
    "visionOS: 1.1.0 -",
    "watchOS: 10.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/Transaction/offer-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "s:8StoreKit11TransactionV5offerAC5OfferVSgvp"
  },
  "title" : "offer"
}
-->

# offer

The offer that applies to the transaction, including its offer type, payment mode, and ID.

```
let offer: Transaction.Offer?
```

## Discussion

This value is `nil` if the transaction doesn’t include an offer.

You set up offers for auto-renewable subscriptions and other In-App Purchase product types in App Store Connect. If a customer redeems an offer, this property contains the offer details, including its [`type`](/documentation/StoreKit/Transaction/Offer-swift.struct/type), [`paymentMode`](/documentation/StoreKit/Transaction/Offer-swift.struct/paymentMode-swift.property), and [`id`](/documentation/StoreKit/Transaction/id). For more information, see [`Transaction.Offer`](/documentation/StoreKit/Transaction/Offer-swift.struct).

---

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)