Contents

id

The offer identifier.

Declaration

let id: String?

Mentioned in

Discussion

The id is a string that contains the alphanumeric offer identifier you provide when you configure an offer in App Store Connect.

This value is nil if the offer is an introductory offer.

Pass the id to a method in purchase(options:) to create a purchase option based on the offer’s type. For example, pass the id for a promotional offer to the promotionalOffer(offerID:signature:) to apply the promotion to a purchase.

For more information about configuring offers in App Store Connect, see Product.SubscriptionOffer.