The problem
Apple now gives subscription apps five ways to discount: introductory offers, offer codes, promotional offers, win-back offers, and retention offers attached to retention messages. They overlap, each has its own eligibility rules and limits, and several of them can be redeemed in places your app never sees, such as the App Store, a redemption link or the person’s subscription settings. Pick the wrong one and you either cannot target the people you want or give a discount to people who would have paid anyway. This guide maps each offer to its job, lists the rules from Apple’s documentation as of November 2026, and shows the StoreKit 2 code for each.
Which offer for which job
| Job | Offer | Who decides eligibility |
|---|---|---|
| Convert a first-time visitor | Introductory offer | Apple: one per subscription group per person |
| Campaign you distribute (newsletter, partner, podcast, support) | Offer code | You choose new, existing or expired subscribers; Apple enforces |
| Upsell or save a current subscriber inside the app | Promotional offer | You, in your own logic, signed by your server |
| Bring back someone whose subscription lapsed | Win-back offer | Apple, from criteria you set in App Store Connect |
| Catch someone at the moment they cancel | Retention message and retention offer | Your server, in real time, from messages you set up |
Every one of these needs the same foundation: a task that iterates Transaction.updates from launch, and a check of Transaction.currentEntitlements and Transaction.unfinished at launch. Apple’s offer code and win-back articles both repeat this, because the redemption often completes while your app is closed.
Offer codes
Rules
From Apple’s offer codes article and App Store Connect Help:
- Offer codes work for auto-renewable subscriptions from iOS 14.2, and for consumables, non-consumables and non-renewing subscriptions from iOS 16.3.
- Two production types: one-time use codes (system generated, 500 to 25,000 per batch, expire within six months) and custom codes (a name you choose such as
SPRINGPROMO, up to 64 characters, optional redemption limit up to 25,000 per batch and optional expiry up to six months). A third type, sandbox codes, is for testing. - Up to 10 active offers per subscription, and up to 1,000,000 codes per app per quarter. Deactivated, unredeemed codes do not return to the quota.
- Eligibility is chosen per offer: new subscribers, existing subscribers (including those in billing retry or grace period with auto-renew on), expired subscribers, or a combination.
- Offers cannot be edited after creation, and deactivating one is permanent.
- Codes can take up to an hour to become redeemable, and the app must be Ready for Sale.
Redeeming in the app
Supporting the system sheet is optional but recommended. People can also enter the code in the App Store or open a redemption URL.
import StoreKit
import SwiftUI
struct RedeemCodeButton: View {
@State private var isPresented = false
@State private var failure: String?
var body: some View {
Button("Redeem code") { isPresented = true }
.offerCodeRedemption(isPresented: $isPresented) { result in
if case .failure(let error) = result {
failure = error.localizedDescription
}
}
.alert("Couldn't redeem the code", isPresented: Binding(
get: { failure != nil },
set: { if !$0 { failure = nil } }
)) {
Button("OK", role: .cancel) {}
} message: {
Text(failure ?? "")
}
}
}
offerCodeRedemption(isPresented:onCompletion:) is available from iOS 16. The resulting transaction arrives through Transaction.updates, so the button itself never unlocks anything. Apple’s documentation also lists a newer offerCodeRedemption(options:isPresented:onCompletion:) that returns the verified transaction directly, but it requires iOS 27; gate it with if #available(iOS 27.0, *) if you want it.
Apple’s offer code documentation says redemption inside your app must use this system sheet; a custom text field that validates codes is not allowed.
Identifying redemptions
In the app, a transaction’s offer?.type is .code. On your server, offerType is 3 in the decoded transaction, and the notification is OFFER_REDEEMED for an active subscription or SUBSCRIBED for a new or returning one. Log the offerIdentifier so you can tell which campaign worked.
Promotional offers
Rules
App Store Connect Help describes promotional offers as discounts for current and previous subscribers:
- Up to 10 active offers per subscription.
- Offer types are pay as you go, pay up front or free.
- They apply in every storefront where the subscription is sold; you cannot limit them to certain countries, though you can set storefront prices.
- People can redeem a promotional offer even if they already used an introductory offer.
- After creation, only the price can be edited.
Eligibility is entirely yours. Apple’s subscriptions page recommends using App Store Server Notifications to decide who qualifies.
Signing and purchasing
The purchase must carry a signature generated on your server with an in-app purchase key. The current API is Product.PurchaseOption.promotionalOffer(_:compactJWS:), back-deployed to iOS 15. The older promotionalOffer(offerID:keyID:nonce:signature:timestamp:) is deprecated. Apple’s App Store Server Library includes a function that generates the JWS.
import StoreKit
import SwiftUI
struct SignedOffer: Decodable, Sendable {
let offerID: String
let compactJWS: String
}
struct PromotionalOfferButton: View {
@Environment(\.purchase) private var purchase
let product: Product
let offer: Product.SubscriptionOffer
let fetchSignature: @Sendable (Product.ID, String) async throws -> SignedOffer
let onResult: (Product.PurchaseResult) async -> Void
let onError: (any Error) -> Void
var body: some View {
Button("Switch for \(offer.displayPrice)") {
guard let offerID = offer.id else { return }
Task {
do {
let signed = try await fetchSignature(product.id, offerID)
let options = Set(Product.PurchaseOption.promotionalOffer(
signed.offerID, compactJWS: signed.compactJWS))
let result = try await purchase(product, options: options)
await onResult(result)
} catch {
onError(error)
}
}
}
}
}
fetchSignature is your own network call; it is left abstract here because it depends on your backend and authentication. offer comes from product.subscription?.promotionalOffers, where every offer has an id. Pass onResult to the same process(_:) method your store uses for ordinary purchases.
Using them well
Antoine van der Lee describes three promotional offers in RocketSim in his SwiftLee article: a discounted move from monthly to yearly shown before the end of the third month, a discounted renewal for people who turned off auto-renew, shown shortly before their subscription ends, and a win-back for former subscribers. He re-checks eligibility each time the app becomes active. That is a sound pattern: offers driven by subscription state, evaluated often, shown at a moment that makes sense.
Win-back offers
Rules
Win-back offers arrived with iOS 18. Apple defines the target precisely in Supporting win-back offers: a churned subscription, meaning the expirationDate is in the past and willAutoRenew is false. Subscriptions in billing retry or grace period are not eligible.
App Store Connect Help lists the limits:
| Setting | Allowed values |
|---|---|
| Minimum paid duration | 1 to 24 months, or 3, 4 or 5 years |
| Time since last subscribed | Minimum 1 month, maximum 24 months (both required) |
| Wait between offers (optional) | 2 to 24 months |
| Offers per subscription | Up to 350 |
| Active at once | Up to 5 per storefront per subscription |
| Shortest run | 3 days, starting no earlier than tomorrow |
The subscription itself must be approved before you can add a win-back offer. Reference name, identifier and price are fixed once created. Where offers overlap, Apple shows one based on price, duration and the person’s paid tenure.
Surfaces have different minimums: the Manage Subscriptions page works from iOS 14.3, while the in-app win-back sheet and App Store promotion need iOS 18. Promoting a win-back offer on the App Store requires an App Review approved subscription image that cannot match your icon or a screenshot, and it replaces your in-app purchase promotions in that storefront.
Streamlined Purchasing
By default, Streamlined Purchasing is on. Someone who redeems from the App Store or a direct link completes the purchase there, and your app receives a finished transaction next time it runs. If you turn it off, your app receives a PurchaseIntent instead and completes the purchase itself, for example after asking the person to sign in. Apple notes that your latest approved binary must use the PurchaseIntent API before you can turn the option off, and that redemptions from the Manage Subscriptions page always behave as if it were on.
Merchandising in the app
StoreKit shows a win-back sheet at launch by default when the App Store sends a .winBackOffer message. If you prefer to show it at a better moment, intercept the message:
import os
import StoreKit
import SwiftUI
struct RootView: View {
@Environment(\.displayStoreKitMessage) private var displayStoreKitMessage
@State private var deferredWinBack: StoreKit.Message?
var body: some View {
ContentView(onFirstAction: showDeferredWinBack)
.task {
for await message in StoreKit.Message.messages {
if #available(iOS 18.0, *), message.reason == .winBackOffer {
deferredWinBack = message
} else {
display(message)
}
}
}
}
private func showDeferredWinBack() {
guard let message = deferredWinBack else { return }
deferredWinBack = nil
display(message)
}
private func display(_ message: StoreKit.Message) {
do {
try displayStoreKitMessage(message)
} catch {
Logger.store.error("StoreKit message failed: \(error.localizedDescription)")
}
}
}
The snippet assumes your own ContentView takes an onFirstAction closure and that you define Logger.store with os.Logger. Call the closure when the person finishes their first action in the session, so the offer appears once they are already using the app. StoreKit.Message is spelled out because SwiftUI apps often have their own Message type.
SubscriptionStoreView shows eligible win-back pricing automatically. Use preferredSubscriptionOffer(_:) when someone is eligible for more than one offer. For a fully custom paywall, read the eligible IDs from renewal info and match them to the product’s offers:
import StoreKit
@available(iOS 18.0, *)
func bestWinBackOffer(for product: Product) async throws -> Product.SubscriptionOffer? {
guard let subscription = product.subscription else { return nil }
for status in try await subscription.status {
guard case .verified(let renewal) = status.renewalInfo,
let bestID = renewal.eligibleWinBackOfferIDs.first else { continue }
return subscription.winBackOffers.first { $0.id == bestID }
}
return nil
}
Apple sorts eligibleWinBackOfferIDs with the best offer first. Pass the result to the purchase as .winBackOffer(offer).
Before you email a win-back link, check eligibility on your server with Get All Subscription Statuses; the renewal info contains eligibleWinBackOfferIds. Apple’s documentation asks you to send the link only to eligible customers.
Community view
On RevenueCat’s WWDC24 Sub Club recap, David Barnard welcomed how little setup win-back offers need: configure a few fields in App Store Connect and Apple handles the rest. Pınar Güler’s guide to win-back offers adds the counterweight: the three eligibility criteria are all you get, so use them deliberately to avoid training people to cancel for a discount, and match the incentive to the likely reason they left.
How big is the pool? RevenueCat’s State of Subscription Apps 2026 reports that within a year of churning, 20% of monthly subscribers, 9% of weekly and 5% of annual subscribers come back. Win-back offers are aimed at improving those numbers, not replacing them, so measure redemptions against that baseline.
Retention messages
The newest tool works at the moment of cancellation. Apple’s retention messaging setup guide describes messages shown on the subscription details page when someone is about to cancel, optionally paired with a retention offer for the same subscription.
- An app has at most 10 retention messages; a subscription has at most one.
- Each localization has a header of up to 66 characters and a body of up to 144.
- Every message version goes through App Review and cannot be modified after creation.
- Retention offers require a minimum paid duration of 1 to 24, 36, 48 or 60 months, and can set a wait between offers of 2 to 24 months. A subscription can have up to 10 active retention offers per target plan type.
With the Retention Messaging API, the App Store calls your server in real time while the person views the page, and you choose which preconfigured message to show. Without a server you can still assign one static message per subscription.
Traps
- No listener, no offer. Every offer above can complete outside the app. Without
Transaction.updatesand a launch-time entitlement check, people pay and see nothing. - Discounting your best customers. Promotional offers to everyone with auto-renew off include people who turned it off by habit and would have renewed. Require some paid tenure.
- Stacking. Offer codes for expired subscribers and win-back offers can target the same people. Decide which channel owns lapsed users.
- Unreadable results. Use one offer identifier per campaign and record it on your server; the transaction carries it.
- Editing expectations. Offer codes, intro offers and most offer fields cannot be edited. Create a new offer instead.
Checklist
| Item | Done when |
|---|---|
| Foundation | Transaction.updates from launch; currentEntitlements and unfinished checked at launch |
| Offer codes | Redeem button uses the system sheet; campaigns use distinct offers |
| Promotional offers | Server signs with JWS; app uses promotionalOffer(_:compactJWS:) |
| Win-back | Criteria set from your churn data; sheet timing decided; links sent only after eligibility check |
| Streamlined Purchasing | Left on, or PurchaseIntent handled before turning it off |
| Retention messages | One message per subscription, localized, approved |
| Server | Notifications V2 handled for OFFER_REDEEMED and SUBSCRIBED; offerType and offerIdentifier logged |
Sources and further reading
- Auto-renewable subscriptions Apple Developer
- Supporting offer codes in your app Apple Developer Documentation
- Set up offer codes App Store Connect Help
- Set up promotional offers for auto-renewable subscriptions App Store Connect Help
- promotionalOffer(_:compactJWS:) Apple Developer Documentation
- Supporting win-back offers in your app Apple Developer Documentation
- Merchandising win-back offers in your app Apple Developer Documentation
- Set up win-back offers App Store Connect Help
- Setting up retention messaging for auto-renewable subscriptions Apple Developer Documentation
- Promotional offers: Increase App Revenue using discounts Antoine van der Lee, SwiftLee
- The beginner's guide to Apple win-back offers Pınar Güler, RevenueCat
- WWDC '24 recap on the Sub Club podcast RevenueCat
- State of Subscription Apps 2026 RevenueCat