Method RedeemCode
RedeemCode(String)
Redeems a Halo Waypoint code.
Declaration
public System.Threading.Tasks.Task<Den.Dev.Grunt.Models.HaloApiResultContainer<Den.Dev.Grunt.Models.Waypoint.CodeRedemptionResult,Den.Dev.Grunt.Models.RawResponseContainer>> RedeemCode (string code);
Parameters
Type | Name | Description |
---|---|---|
System.String | code | Code to be redeemed. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<HaloApiResultContainer<CodeRedemptionResult,RawResponseContainer>> | If call is successful, returns an instance of CodeRedemptionResult that contains information about the redeemed code. Otherwise, returns a null object and error details. |
Remarks
The codes redeemable here can be those that are obtained through Xbox Game Pass perks, but can also be outside the scope of that particular program.
Examples
Here is an example response from the API, as snapshotted on 9/6/2022:
{
"code": "submitted",
"offerName": "Xbox Game Pass Ultimate Perks - Pass Tense Rocket Warthog Bundle"
}