Object

responseBody

The JSON data sent in the server notification from the App Store.

Properties

auto_renew_adam_id
string

An identifier that App Store Connect generates and the App Store uses to uniquely identify the auto-renewable subscription that the user's subscription renews. Treat this value as a 64-bit integer.

auto_renew_product_id
string

The product identifier of the auto-renewable subscription that the user's subscription renews.

auto_renew_status
string

The current renewal status for an auto-renewable subscription product. Note that these values are different from those of the auto_renew_status in the receipt.

auto_renew_status_change_date
string

The time at which the renewal status for an auto-renewable subscription was turned on or off, in a date-time format similar to the ISO 8601 standard.

auto_renew_status_change_date_ms
string

The time at which the renewal status for an auto-renewable subscription was turned on or off, in UNIX epoch time format, in milliseconds. Use this time format for processing dates.

auto_renew_status_change_date_pst
string

The time at which the renewal status for an auto-renewable subscription was turned on or off, in the Pacific time zone.

environment
string

The environment for which the receipt was generated.

expiration_intent
integer

The reason a subscription expired. This field is only present for an expired auto-renewable subscription. See expiration_intent for more information.

latest_expired_receipt
byte

The latest Base64-encoded transaction receipt. This field appears in the notification instead of latest_receipt for expired transactions.

latest_expired_receipt_info
array

The JSON representation of the value in latest_expired_receipt. This array appears in the notification instead of latest_receipt_info for expired transactions.

latest_receipt
byte

The latest Base64-encoded transaction receipt.

The JSON representation of the value in latest_receipt. Note that this field is an array in the receipt but a single object in server-to-server notifications.

notification_type

The subscription event that triggered the notification.

password
string

The same value as the shared secret you submit in the password field of the requestBody when validating receipts.

unified_receipt

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

Discussion

Use these notification fields to react quickly to changes in your users’ subscription states. Note that the fields available in any one notification sent to your server are dependent on the type of notification.

Topics

Objects

object responseBody.Latest_receipt_info

An object that contains information about the latest in-app subscription transaction.

object unified_receipt

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

See Also

Server Notification

type notification_type

The type that describes the subscription event for which the App Store sent the notification.