# Get all Channel points redemptions for client\_id

**URL:** <https://staging-discuss.dev.twitch.com/t/get-all-channel-points-redemptions-for-client-id/30474>\
**Category:** API\
**Created:** [February 16, 2021, 10:34am UTC](https://staging-discuss.dev.twitch.com/t/get-all-channel-points-redemptions-for-client-id/30474 "2021-02-16T10:34:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/dancarlyon/32/9277_2.png) [@DanCarlyon](https://staging-discuss.dev.twitch.com/u/DanCarlyon)\
**Post date:** [February 16, 2021, 10:34am UTC](https://staging-discuss.dev.twitch.com/t/get-all-channel-points-redemptions-for-client-id/30474/1 "2021-02-16T10:34:34Z")

</div>

According to the API docs when calling `https://api.twitch.tv/helix/channel_points/custom_rewards/redemptions` without a reward ID I should

> Returns Custom Reward Redemption objects for a Custom Reward on a channel that was created by the same `client_id` .

Which my understanding means we can call the API **without** a reward\_id and get all the redemptions for the rewards my client\_id has created however a few lines down in the documentation also says that reward\_id is a required parameter

 ![Screenshot 2021-02-16 at 10.24.35](https://d2spem0quai2ol.cloudfront.net/original/2X/2/288d44a98b27f71beb7e274467805795863dd990.png)

My aim is for my app to create probably around 12-16 rewards and then poll for redemptions for them. (The creating rewards works fine, I have a few created so far for testing, cerated through my app/client\_id)

I was taking inspiration from the Twitch Channel points Node sample on github, but when calling the API without a reward\_id like so:

```
let {body} = await got(`https://api.twitch.tv/helix/channel_points/custom_rewards/redemptions?broadcaster_id=${userId}&status=UNFULFILLED`, {
            headers: headers,
            responseType: 'json',
        });

```

I just get a bad request HTTPError: Response code 400 (Bad Request)  
But if i specify a reward ID i get the redemptions for that ID, what am i missing/doing wrong?

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [February 16, 2021, 12:30pm UTC](https://staging-discuss.dev.twitch.com/t/get-all-channel-points-redemptions-for-client-id/30474/2 "2021-02-16T12:30:46Z")

</div>

> [@DanCarlyon](#):
>
> I just get a bad request HTTPError: Response code 400 (Bad Request)

Read the body of the response not just the HTTP code.

That’ll tell you the issue.

You will find the response is

```auto
{
  error: 'Bad Request',
  status: 400,
  message: 'Missing required parameter "reward_id"'
}

```

A `reward_id` is required.

When it says `When ID is not provided` it means the optional query string parameter of id

 ![image](https://d2spem0quai2ol.cloudfront.net/original/2X/c/cbd3c4ab639aa4761e70ec1d996f4262deab2a3c.png)

IE you either look up redeems by up to 50 single redeem ID’s or by one rewardID

> [@DanCarlyon](#):
>
> My aim is for my app to create probably around 12-16 rewards and then poll for redemptions for them. (The creating rewards works fine, I have a few created so far for testing, cerated through my app/client\_id)

Consider using EventSub to be notified of a redemption instead of long polling

---

<div class="post-metadata">

**Author:** ![DanCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/dancarlyon/32/9277_2.png) [@DanCarlyon](https://staging-discuss.dev.twitch.com/u/DanCarlyon)\
**Post date:** [February 16, 2021, 2:04pm UTC](https://staging-discuss.dev.twitch.com/t/get-all-channel-points-redemptions-for-client-id/30474/3 "2021-02-16T14:04:53Z")

</div>

> Consider using EventSub to be notified of a redemption instead of long polling

Good shout, i’d completly forgotten about EventSub.

Cheers Barry

---

<div class="post-metadata">

**Author:** ![system](https://d2spem0quai2ol.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://staging-discuss.dev.twitch.com/u/system)\
**Post date:** [March 18, 2021, 2:04pm UTC](https://staging-discuss.dev.twitch.com/t/get-all-channel-points-redemptions-for-client-id/30474/4 "2021-03-18T14:04:55Z")

</div>

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