updateRedemptionStatus

suspend fun updateRedemptionStatus(broadcasterId: String, rewardId: String, redemptionIds: List<String>, status: RedemptionStatus): List<RewardRedemption>

Twitch API: Update Redemption Status

Updates a redemption's status. You may update a redemption only if its status is UNFULFILLED. The app used to create the reward is the only app that may update the redemption.

Return

the list of updated redemptions.

Parameters

broadcasterId

the ID of the broadcaster that's updating the redemption. This ID must match the user ID in the user access token.

rewardId

the ID that identifies the reward that's been redeemed.

redemptionIds

a list of IDs that identify the redemptions to update. You may specify a maximum of 50 IDs.

status

the status to set the redemption to. Possible values are: CANCELED, FULFILLED. Setting the status to CANCELED refunds the user's channel points.


suspend fun updateRedemptionStatus(broadcasterId: String, rewardId: String, redemptionId: String, status: RedemptionStatus): List<RewardRedemption>

Convenience overload that updates a single redemption's status.

See also