Skip to main content
Question

Transfer Webhook Event

  • 12 July 2024
  • 1 reply
  • 46 views

Based on the TRANSFER flow here, we know that a TRANSFER event is triggered when user1 signs in, makes a purchase, signs out, then user2 signs in and restores purchases. Will EXPIRATION and RENEWAL events also be triggered for the respective users to indicate that user1 no longer has entitlements and user2 has entitlements?

We have been relying on the INITIAL_PURCHASE and RENEWAL events to determine when a user has started or is continuing a subscription. Likewise, we use the EXPIRATION and SUBSCRIPTION_PAUSED events to determine when a user has stopped a subscription.

However, we’re not sure if there are additional events that are triggered after a TRANSFER.

This post has been closed for comments

1 reply

Userlevel 2
Badge +4

Hi @novarian-ecotrop! When entitlements are transferred, only the TRANSFER event will be sent. Once the entitlements have been transferred to a new user, only that user will receive subsequent events related to their subscription.

If you’re keeping track of entitlements in your backend, what you can do is catch the TRANSFER event, extract the app user IDs, and use our API to verify entitlement information for one or both of the users.

{
"event": {
"app_id": "1234567890",
"event_timestamp_ms": 78789789798798,
"id": "CD489E0E-5D52-4E03-966B-A7F17788E432",
"store": "APP_STORE",
"transferred_from": ["00005A1C-6091-4F81-BE77-F0A83A271AB6"],
"transferred_to": ["4BEDB450-8EF2-11E9-B475-0800200C9A66"],
"type": "TRANSFER",
"environment": "PRODUCTION"
},
"api_version": "1.0"
}