Skip to main content
Question

Granted entitlement revoking is not working as expected

  • January 15, 2025
  • 1 reply
  • 22 views

Forum|alt.badge.img

Hi,


When granting an entitlement to a user, then revoking it, the event RC sends is incorrect:

{
  "app_user_id": "xxxxxxx",
  "country_code": null,
  "currency": "USD",
  "entitlement_ids": [
    "premium"
  ],
  "environment": "PRODUCTION",
  "event_timestamp_ms": 1736906680737,
  "expiration_at_ms": 1736906680737,
  "expiration_reason": "UNSUBSCRIBE",
  "is_family_share": null,
  "offer_code": null,
  "period_type": "PROMOTIONAL",
  "presented_offering_context": null,
  "presented_offering_id": null,
  "price": 0,
  "price_in_purchased_currency": 0,
  "product_display_name": null,
  "product_id": "rc_promo_premium_monthly",
  "product_price_in_purchased_currency": 0,
  "purchased_at_ms": 1736906503135,
  "renewal_number": null,
  "store": "PROMOTIONAL",
  "takehome_percentage": 1,
  "transaction_id": "yyyyyyy"
}

In the payload above (which was taken from the Event Details screen), you can spot that the event ts and the expiration ts is the same (which is correct and means that it’s expired right now), but the entitlement_ids still contains the `premium` id, which is incorrect (should be an empty array).

The user didn’t have any other grants / subscriptions (brand new user just for the sake of this test):

 

Seems like a bug, please advise.

This post has been closed for comments

1 reply

kaitlin
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 365 replies
  • January 17, 2025

Hey ​@idan-gozlan-91a42a!

The `entitlement_ids` field of the payload is just reflecting the entitlement that is attached to the product in question - in this case, it’s not a product but the entitlement itself. It is expected that this would be present in any event related to an entitlement that was granted, either manually or via a subscription, and doesn’t necessarily reflect if the entitlement is active or not. It would only be null if the product is unattached to an entitlement.

Hope this helps! Let me know if I can clarify anything here.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings