An object that contains information about the most recent in-app purchase transactions for the app.

https://developer.apple.com/documentation/appstoreservernotifications/unified_receipt

interface AppleUnifiedReceipt {
    environment: AppleEnvironment;
    latest_receipt?: string;
    latest_receipt_info?: AppleTransaction[];
    pending_renewal_info?: ApplePendingRenewalInfo[];
    status: number;
}

Hierarchy (view full)

Properties

environment: AppleEnvironment

The environment for which the receipt was generated.

latest_receipt?: string

The latest Base64-encoded app receipt.

latest_receipt_info?: AppleTransaction[]

An array that contains the latest 100 in-app purchase transactions of the decoded value in latest_receipt. This array excludes transactions for consumable products that your app has marked as finished. The contents of this array are identical to those in responseBody.Latest_receipt_info in the verifyReceipt endpoint response for receipt validation.

pending_renewal_info?: ApplePendingRenewalInfo[]

An array where each element contains the pending renewal information for each auto-renewable subscription identified in product_id. The contents of this array are identical to those in responseBody.Pending_renewal_info in the verifyReciept endpoint response for receipt validation.

status: number

The status code, where 0 indicates that the notification is valid.