Keys are missing in App Store Server API

For the subscription API, we’re using the Get All Subscription Statuses API to replace the deprecated verifyReceipt method. To determine if a user has canceled their subscription, we’re using the expirationIntent key from JWSRenewalInfo data. However, we’ve noticed that we sometimes receive this key and other times not.

We’re also facing an issue with the offertype key. We use this key to determine if a user is currently in the introductory offer, the promotion offer, or neither. To obtain this key, we’re using JWSTransaction, but we occasionally receive it and other times not.

Note: These issues are being tested in the sandbox environment.

Thank you.

expirationIntent should not be used to determine if a user is expired or not, as you have found. If you are using the Get All Subscription Statuses API, use the status field returned which will directly tell you the state of the subscription, active, grace period, billing retry, etc.

If you have a transaction that you believe should have had an offer type but did not, please file a ticket in Feedback Assistant (feedbackassistant.apple.com) with the transaction details and post the FB number here, so we can take a look.

Keys are missing in App Store Server API
 
 
Q