We are having an issue from Sandbox webhook events, where the lookup on API for active_entitlements is [], instead of active.
The request body to the webhook looks like (note environment :SANDBOX):
{
"api_version": "1.0",
"event": {
"aliases": [
"my_user_id"
],
"app_id": "app_id",
"app_user_id": "my_user_id",
"commission_percentage": 0.15,
"country_code": "US",
"currency": "USD",
"entitlement_id": null,
"entitlement_ids": null,
"environment": "SANDBOX",
"event_timestamp_ms": 1771460315227,
"expiration_at_ms": 1771542723000,
"id": "1653F954-2771-4656-8265-B13A9371F9D5",
"is_family_share": false,
"metadata": null,
"offer_code": null,
"original_app_user_id": "my_user_id",
"original_transaction_id": "2000001123561347",
"period_type": "NORMAL",
"presented_offering_id": null,
"price": 20,
"price_in_purchased_currency": 20,
"product_id": "ios_monthly_dancer_2000",
"purchased_at_ms": 1771456323000,
"renewal_number": 1,
"store": "APP_STORE",
"subscriber_attributes": {
"$attConsentStatus": {
"updated_at_ms": 1771460314809,
"value": "notDetermined"
}
},
"takehome_percentage": 0.85,
"tax_percentage": 0,
"transaction_id": "2000001123561347",
"type": "INITIAL_PURCHASE"
}
}But when we then query the Rest API
curl -H "Authorization: Bearer sk_*****************************" "https://api.revenuecat/. com/v2/projects/{id}/customers/{cust_id}/active_entitlements" , nothing is found. It was suggested to use the optional header - -H "X-Is-Sandbox: true" - , but this doesn’t seem to make a difference.
Even querying just the customer or /subscriptions also doesn’t work
SO, how can I correctly capture & find the event from Sandbox in the active entitlements?


