POST astro/rewards/redeem
Authorized only.
Request Information
URI Parameters
None.
Body Parameters
AstroRewardsRequestName | Description | Type | Additional information |
---|---|---|---|
CustomerId | integer |
None. |
|
string |
None. |
||
Address | string |
None. |
|
City | string |
None. |
|
State | string |
None. |
|
Zip | string |
None. |
|
Redemptions | Collection of AstroRewardItem |
None. |
|
Cancellations | Collection of AstroRewardItem |
None. |
Request Formats
application/json, text/json
Sample:
{ "CustomerId": 1, "Email": "sample string 1", "Address": "sample string 2", "City": "sample string 3", "State": "sample string 4", "Zip": "sample string 5", "Redemptions": [ { "RewardId": "sample string 1", "AstroItemId": "sample string 2", "ItemMobileId": 1 }, { "RewardId": "sample string 1", "AstroItemId": "sample string 2", "ItemMobileId": 1 } ], "Cancellations": [ { "RewardId": "sample string 1", "AstroItemId": "sample string 2", "ItemMobileId": 1 }, { "RewardId": "sample string 1", "AstroItemId": "sample string 2", "ItemMobileId": 1 } ] }
application/xml, text/xml
Sample:
<AstroRewardsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Services"> <Address>sample string 2</Address> <Cancellations> <AstroRewardItem> <AstroItemId>sample string 2</AstroItemId> <ItemMobileId>1</ItemMobileId> <RewardId>sample string 1</RewardId> </AstroRewardItem> <AstroRewardItem> <AstroItemId>sample string 2</AstroItemId> <ItemMobileId>1</ItemMobileId> <RewardId>sample string 1</RewardId> </AstroRewardItem> </Cancellations> <City>sample string 3</City> <CustomerId>1</CustomerId> <Email>sample string 1</Email> <Redemptions> <AstroRewardItem> <AstroItemId>sample string 2</AstroItemId> <ItemMobileId>1</ItemMobileId> <RewardId>sample string 1</RewardId> </AstroRewardItem> <AstroRewardItem> <AstroItemId>sample string 2</AstroItemId> <ItemMobileId>1</ItemMobileId> <RewardId>sample string 1</RewardId> </AstroRewardItem> </Redemptions> <State>sample string 4</State> <Zip>sample string 5</Zip> </AstroRewardsRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |