The details of a discount offer for a subscription product.


class SKProductDiscount : NSObject


You set up discount offers in App Store Connect, as described in App Store Connect Developer Help. SKProductDiscount contains the offer information as retrieved from the App Store.


Identifying the Discount

var identifier: String?

A string used to uniquely identify a discount offer for a product.

var type: SKProductDiscount.Type

The type of discount offer.

enum SKProductDiscount.Type

Values representing the types of discount offers an app can present.

Getting Price and Payment Mode

var price: NSDecimalNumber

The discount price of the product in the local currency.

var priceLocale: Locale

The locale used to format the discount price of the product.

var paymentMode: SKProductDiscount.PaymentMode

The payment mode for this product discount.

enum SKProductDiscount.PaymentMode

Values representing the payment modes for a product discount.

Getting the Discount Duration

var numberOfPeriods: Int

An integer that indicates the number of periods the product discount is available.

var subscriptionPeriod: SKProductSubscriptionPeriod

An object that defines the period for the product discount.


Inherits From

Conforms To

See Also

Retrieving Product Information

class SKProductsRequest

An object that can retrieve localized information from the App Store about a specified list of products.

class SKProduct

Information about a product previously registered in App Store Connect.

class SKProductsResponse

An App Store response to a request for information about a list of products.

class SKProductSubscriptionPeriod

An object containing the subscription period duration information.