Resolve redemption
Approve or decline a store redemption that waits for your decision.
POST https://cotlet.dev/api/v1/streamelements/redemptions/{redemption_id}/resolve
write Confirm
Approves or declines one redemption, as the buttons on the Redemptions page do. Which items wait for a decision follows your Stream Store settings. The viewer sees the result. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| redemption_id string required | string | Redemption ID from list_redemptions. |
| action enum required | enum | approve or decline. |
Request
curl -X POST https://cotlet.dev/api/v1/streamelements/redemptions/rd_91a0f3/resolve \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"action":"approve"}' result = client.call("streamelements", "resolve_redemption", {"redemption_id":"rd_91a0f3","action":"approve"}) const result = await cotlet.call('streamelements', 'resolve_redemption', {"redemption_id":"rd_91a0f3","action":"approve"}); cotlet call streamelements resolve_redemption --data '{"redemption_id":"rd_91a0f3","action":"approve"}' Example response
{
"redemption_id": "rd_91a0f3",
"item": "Pick my next game",
"viewer": "luka_dev",
"status": "approved"
}