Subscriptions Missing receipt data / server notifications?

We are working with free trials with subscriptions and it seems that we are not getting (webhook) events/notifications for all renewal receipts from Apple. Our receipts / revenue data from our servers do not match apple app store connect dashboard data, it seems we are missing over half the transactions.


For example we have a 3 day trial receipt and assuming the the user doesn't "cancel" (DID_CHANGE_RENEWAL_STATUS), 3 days after a purchase of a free/trial subscription are we supposed to get a notification when a free trial renews? If not, how can we check that this user was successfully billed? What happens when the subscription goes into billing retry?


I am trying to wrap my head around how to accurately track trials, subscriptions, renewals and total revenue using the sever-to-server notification data. I think I am missing some logic here



Thanks in advance!

Answered by PBK in 379094022

Relying on the notifications is, IMHO, not a 'best practice' since those notifications are not sent reliable. Check the receipt. In an autorenewable subscription all you need is one receipt - any receipt - use that first receipt. Send that to the Apple servers and they will send back a 'latest_receipt_info' field.

Gone thru the Receipt section of the IAP FAQ, yet to see if any clarity there?

Accepted Answer

Relying on the notifications is, IMHO, not a 'best practice' since those notifications are not sent reliable. Check the receipt. In an autorenewable subscription all you need is one receipt - any receipt - use that first receipt. Send that to the Apple servers and they will send back a 'latest_receipt_info' field.

thanks for the replies everyone. Both have been quite helpful and I have figured out the problem

Subscriptions Missing receipt data / server notifications?
 
 
Q