A purchase object returned by the receipt validator

interface VerifiedPurchase {
    cancelationReason?: CancelationReason;
    discountId?: string;
    expiryDate?: number;
    id: string;
    isBillingRetryPeriod?: boolean;
    isExpired?: boolean;
    isIntroPeriod?: boolean;
    isTrialPeriod?: boolean;
    lastRenewalDate?: number;
    platform?: Platform;
    priceConsentStatus?: PriceConsentStatus;
    purchaseDate?: number;
    purchaseId?: string;
    renewalIntent?: string;
    renewalIntentChangeDate?: number;
    transactionId?: string;
}

Properties

cancelationReason?: CancelationReason

The reason a subscription or purchase was cancelled.

discountId?: string

Identifier of the discount currently applied to a purchase.

Correspond to the product's offerId. When undefined it means there is only one offer for the given product.

expiryDate?: number

Date of expiry for a subscription.

id: string

Product identifier

isBillingRetryPeriod?: boolean

True when a subscription a subscription is in the grace period after a failed attempt to collect payment

isExpired?: boolean

True when a subscription is expired.

isIntroPeriod?: boolean

True when a subscription is in introductory pricing period

isTrialPeriod?: boolean

True when a subscription is in trial period

lastRenewalDate?: number

Last time a subscription was renewed.

platform?: Platform

Platform this purchase was made on

priceConsentStatus?: PriceConsentStatus

Whether or not the user agreed or has been notified of a price change.

purchaseDate?: number

Date of first purchase (timestamp).

purchaseId?: string

Purchase identifier (optional)

renewalIntent?: string

Renewal intent.

renewalIntentChangeDate?: number

Date the renewal intent was updated by the user.

transactionId?: string

Identifier of the last transaction (optional)