---
title: Transaction.Offer
framework: storekit
role: symbol
role_heading: Structure
path: storekit/transaction/offer-swift.struct
---

# Transaction.Offer

Discounts or promotions that apply to a transaction.

## Declaration

```swift
struct Offer
```

## Overview

Overview You set up offers for auto-renewable subscriptions and other In-App Purchase types in App Store Connect. If a customer redeems an offer, it appears in the offer property of the transaction. For auto-renewable subscriptions, if the offer applies to one or more renewal periods, it also appears in the offer property of Product.SubscriptionInfo.RenewalInfo. For more information on configuring the various offers in App Store Connect, see: Create offer codes for In-App Purchases Providing subscription offers. Set up offer codes Set up introductory offers for auto-renewable subscriptions Set up promotional offers for auto-renewable subscriptions Set up win-back offers

## Topics

### Getting offer details

- [id](storekit/transaction/offer-swift.struct/id.md)
- [type](storekit/transaction/offer-swift.struct/type.md)
- [Transaction.OfferType](storekit/transaction/offertype-swift.struct.md)
- [paymentMode](storekit/transaction/offer-swift.struct/paymentmode-swift.property.md)
- [Transaction.Offer.PaymentMode](storekit/transaction/offer-swift.struct/paymentmode-swift.struct.md)
- [period](storekit/transaction/offer-swift.struct/period.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Getting offers

- [offer](storekit/product/subscriptioninfo/renewalinfo/offer.md)
- [eligibleWinBackOfferIDs](storekit/product/subscriptioninfo/renewalinfo/eligiblewinbackofferids.md)
