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 AppleVerifyReceiptResponse {
    environment: AppleEnvironment;
    exception?: string;
    is-retryable?: boolean;
    latest_receipt?: string;
    latest_receipt_info?: AppleTransaction[];
    pending_renewal_info?: ApplePendingRenewalInfo[];
    receipt: AppleVerifyReceiptResponseReceipt;
    status: number;
}

Hierarchy (view full)

Properties

environment: AppleEnvironment

The environment for which the receipt was generated. Possible values: Sandbox, Production.

exception?: string

Description of an error, when there's an internal server error at Apple.

is-retryable?: boolean

An indicator that an error occurred during the request. A value of 1 indicates a temporary issue; retry validation for this receipt at a later time. A value of 0 indicates an unresolvable issue; do not retry validation for this receipt. Only applicable to status codes 21100-21199.

latest_receipt?: string

The latest Base64 encoded app receipt. Only returned for receipts that contain auto-renewable subscriptions.

latest_receipt_info?: AppleTransaction[]

An array that contains all in-app purchase transactions. This excludes transactions for consumable products that have been marked as finished by your app. Only returned for receipts that contain auto-renewable subscriptions.

pending_renewal_info?: ApplePendingRenewalInfo[]

In the JSON file, an array where each element contains the pending renewal information for each auto-renewable subscription identified by the product_id. Only returned for app receipts that contain auto-renewable subscriptions.

A JSON representation of the receipt that was sent for verification.

status: number

Either 0 if the receipt is valid, or a status code if there is an error. The status code reflects the status of the app receipt as a whole. https://developer.apple.com/documentation/appstorereceipts/status