getAllRedemptions

fun getAllRedemptions(broadcasterId: String, rewardId: String, status: RedemptionStatus? = null, ids: List<String> = emptyList(), sort: RedemptionSort? = null): Flow<RewardRedemption>

Twitch API: Get Custom Reward Redemption

Gets all redemptions for the specified reward. Automatically paginates through all results.

Return

a Flow of RewardRedemption objects.

Parameters

broadcasterId

the ID of the broadcaster that owns the custom reward. This ID must match the user ID found in the OAuth token.

rewardId

the ID that identifies the custom reward whose redemptions you want to get.

status

filters the list by redemption status. Possible values: CANCELED, FULFILLED, UNFULFILLED.

ids

a list of IDs to filter the redemptions by (max 50).

sort

the order to sort redemptions by. Possible values: OLDEST, NEWEST. Default: OLDEST.