I\'m creating a service which allows users to register on any number of devices (web, Android, Roku, iOS, Apple TV), and then purchase a monthly subscription to watch video
For the initial subscription purchase:
To keep the server in sync with the iTunes subscription:
Now if someone logs into their account on a Roku or some other device, the subscription can be honored because my DB is the source of truth.
I know this is old, but Apple recently introduced Status Update Notifactions which accomplishes what the OP asked for via webhooks:
200
status code to report a success.You'll be able to handle the following notification types: INITIAL_BUY
, CANCEL
, RENEWAL
, INTERACTIVE_RENEWAL
, DID_CHANGE_RENEWAL_PREFERENCE
The documentation in the link above explains implementation and types in more detail.