Channel benefits are issued as redemption codes. When you generate redemption codes, the quantity of the corresponding benefit is reduced.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecd:GetRedeemCodes |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CodeQuantity |
integer |
Yes |
Number of redemption codes to generate. Valid values: 1 to 100. |
1 |
| BenefitId |
string |
Yes |
ID of the benefit included in the redemption code. Get this ID by calling DescribeBenefits. |
6a79**** |
| RequestToken |
string |
Yes |
Request token for the channel service. Get this token by calling GetRequestToken. Each request token can be used only once. |
8789d7271c36979**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Response object. |
||
| RequestId |
string |
ID of the request. |
25BB1CE-6B47-12DC-9FE6-03726**** |
| RedeemCodes |
array |
List of redemption codes. |
|
|
string |
Redemption code. |
068c8-55a1a-***** |
Examples
Success response
JSON format
{
"RequestId": "25BB1CE-6B47-12DC-9FE6-03726****",
"RedeemCodes": [
"068c8-55a1a-*****"
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.