# Whether a webhook of type drop.entitlement.grant is issued when the Drops campaign is \`Test

**URL:** <https://discuss.dev.twitch.com/t/whether-a-webhook-of-type-drop-entitlement-grant-is-issued-when-the-drops-campaign-is-test/54082>\
**Category:** API\
**Created:** [January 16, 2024, 8:37am UTC](https://discuss.dev.twitch.com/t/whether-a-webhook-of-type-drop-entitlement-grant-is-issued-when-the-drops-campaign-is-test/54082 "2024-01-16T08:37:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tunacook](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/tunacook/32/28128_2.png) [@tunacook](https://discuss.dev.twitch.com/u/tunacook)\
**Post date:** [January 16, 2024, 8:37am UTC](https://discuss.dev.twitch.com/t/whether-a-webhook-of-type-drop-entitlement-grant-is-issued-when-the-drops-campaign-is-test/54082/1 "2024-01-16T08:37:52Z")

</div>

We are implementing a feature that will allow you to receive pre-set Twitch Drops rewards.  
We have set up a Drops campaign and its rewards and created an Eventsub subscription.

We expect a `drop.entitlement.grant` type webhook to come in for watching a pre-defined amount of time.

However, even though the viewer has received the Drops reward, the webhook does not seem to be coming.  
When a viewer receives a reward, does the webhook get issued if the Drops campaign is set to `Test`?  
Or does it have to be set to `Enable` for it to be issued?

---

<div class="post-metadata">

**Author:** ![tunacook](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/tunacook/32/28128_2.png) [@tunacook](https://discuss.dev.twitch.com/u/tunacook)\
**Post date:** [January 16, 2024, 8:49am UTC](https://discuss.dev.twitch.com/t/whether-a-webhook-of-type-drop-entitlement-grant-is-issued-when-the-drops-campaign-is-test/54082/2 "2024-01-16T08:49:43Z")

</div>

Eventsub subscription is made with this command  
The `<>` enclosures contain specific values.

```auto
curl -X POST 'https://api.twitch.tv/helix/eventsub/subscriptions' \
-H 'Authorization: Bearer <AppAccessToken>' \
-H 'Client-Id: <ClientId>' \
-H 'Content-Type: application/json' \
-d '{"type":"drop.entitlement.grant","version":"1","condition":{"organization_id": "<OrganizationId>"},"transport":{"method":"webhook","callback":"<Callback URL>","secret":"<Secret>"}, "is_batching_enabled": true}' 

```

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [January 16, 2024, 12:39pm UTC](https://discuss.dev.twitch.com/t/whether-a-webhook-of-type-drop-entitlement-grant-is-issued-when-the-drops-campaign-is-test/54082/3 "2024-01-16T12:39:10Z")

</div>

> [@tunacook](#):
>
> We expect a `drop.entitlement.grant` type webhook to come in for watching a pre-defined amount of time.

It occurs when someone clicks the claim button on the drops page

For example if/when I complete the inprogress drop a [claim] button will appear (similar to the [connect] button). When it’s claimed then you should get a notification.

 ![image](https://d2opxh93rbxzdn.cloudfront.net/original/3X/d/1/d13ea2cea4d3cbed0fb441e6d10228082f0df171.png)

---

<div class="post-metadata">

**Author:** ![tunacook](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/tunacook/32/28128_2.png) [@tunacook](https://discuss.dev.twitch.com/u/tunacook)\
**Post date:** [January 16, 2024, 1:32pm UTC](https://discuss.dev.twitch.com/t/whether-a-webhook-of-type-drop-entitlement-grant-is-issued-when-the-drops-campaign-is-test/54082/4 "2024-01-16T13:32:47Z")

</div>

Thank you for your reply.  
I also apologize for the lack of explanation.  
I have completed the in-progress drop and pressed the CLAIM button, but I do not receive the webhook.

Does it matter in this case that the status of the campaign is `Test`?  
Do I need to set the status to `Enable` instead of `Test` for the webhook to be delivered?

---

<div class="post-metadata">

**Author:** ![Xemdo](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/xemdo/32/29273_2.png) [@Xemdo](https://discuss.dev.twitch.com/u/Xemdo)\
**Post date:** [January 16, 2024, 7:53pm UTC](https://discuss.dev.twitch.com/t/whether-a-webhook-of-type-drop-entitlement-grant-is-issued-when-the-drops-campaign-is-test/54082/5 "2024-01-16T19:53:19Z")

</div>

The webhook should be delivered when the campaign is set to Test.  
Check the [Get Drops Entitlements API call](https://dev.twitch.tv/docs/api/reference/#get-drops-entitlements) to make sure it was properly inserted, and also [verify your EventSub subscriptions](https://dev.twitch.tv/docs/api/reference/#get-eventsub-subscriptions) to make sure you are correctly set up for receiving the drop event.

---

<div class="post-metadata">

**Author:** ![tunacook](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/tunacook/32/28128_2.png) [@tunacook](https://discuss.dev.twitch.com/u/tunacook)\
**Post date:** [January 17, 2024, 7:49am UTC](https://discuss.dev.twitch.com/t/whether-a-webhook-of-type-drop-entitlement-grant-is-issued-when-the-drops-campaign-is-test/54082/6 "2024-01-17T07:49:17Z")

</div>

Thanks for the reply.

I had neglected to run the Get Drops Entitlements API to check.  
It was due to not checking the webhook\_callback\_verification properly.  
I have fixed it and confirmed that the webhook is coming in correctly!

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [February 16, 2024, 7:49am UTC](https://discuss.dev.twitch.com/t/whether-a-webhook-of-type-drop-entitlement-grant-is-issued-when-the-drops-campaign-is-test/54082/7 "2024-02-16T07:49:51Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
