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

Parameters: resolve_redemption
NameTypeDescription
redemption_id string required string Redemption ID from list_redemptions.
action enum required enum approve or decline.

Request

cURL
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"}'
Python
result = client.call("streamelements", "resolve_redemption", {"redemption_id":"rd_91a0f3","action":"approve"})
Node.js
const result = await cotlet.call('streamelements', 'resolve_redemption', {"redemption_id":"rd_91a0f3","action":"approve"});
CLI
cotlet call streamelements resolve_redemption --data '{"redemption_id":"rd_91a0f3","action":"approve"}'

Example response

JSON

{
  "redemption_id": "rd_91a0f3",
  "item": "Pick my next game",
  "viewer": "luka_dev",
  "status": "approved"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.