POST astro/rewards/validate
Authorized only.
Request Information
URI Parameters
None.
Body Parameters
AstroRewardsName | Description | Type | Additional information |
---|---|---|---|
CustomerId | integer |
None. |
|
Rewards | Collection of AstroReward |
None. |
Request Formats
application/json, text/json
Sample:
{ "CustomerId": 1, "Rewards": [ { "RewardId": "sample string 1", "ProgramName": "sample string 2", "FreeQuantity": 3, "AddressRequired": true, "EmailRequired": true, "CurrentQuantity": 6, "TargetQuantity": 7, "EligibleProducts": [ { "Id": "sample string 1", "Sku": "sample string 2", "Quantity": 3.1 }, { "Id": "sample string 1", "Sku": "sample string 2", "Quantity": 3.1 } ], "IsValid": true }, { "RewardId": "sample string 1", "ProgramName": "sample string 2", "FreeQuantity": 3, "AddressRequired": true, "EmailRequired": true, "CurrentQuantity": 6, "TargetQuantity": 7, "EligibleProducts": [ { "Id": "sample string 1", "Sku": "sample string 2", "Quantity": 3.1 }, { "Id": "sample string 1", "Sku": "sample string 2", "Quantity": 3.1 } ], "IsValid": true } ] }
application/xml, text/xml
Sample:
<AstroRewards xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Services"> <CustomerId>1</CustomerId> <Rewards> <AstroReward> <AddressRequired>true</AddressRequired> <CurrentQuantity>6</CurrentQuantity> <EligibleProducts> <AstroItem> <Id>sample string 1</Id> <Quantity>3.1</Quantity> <Sku>sample string 2</Sku> </AstroItem> <AstroItem> <Id>sample string 1</Id> <Quantity>3.1</Quantity> <Sku>sample string 2</Sku> </AstroItem> </EligibleProducts> <EmailRequired>true</EmailRequired> <FreeQuantity>3</FreeQuantity> <IsValid>true</IsValid> <ProgramName>sample string 2</ProgramName> <RewardId>sample string 1</RewardId> <TargetQuantity>7</TargetQuantity> </AstroReward> <AstroReward> <AddressRequired>true</AddressRequired> <CurrentQuantity>6</CurrentQuantity> <EligibleProducts> <AstroItem> <Id>sample string 1</Id> <Quantity>3.1</Quantity> <Sku>sample string 2</Sku> </AstroItem> <AstroItem> <Id>sample string 1</Id> <Quantity>3.1</Quantity> <Sku>sample string 2</Sku> </AstroItem> </EligibleProducts> <EmailRequired>true</EmailRequired> <FreeQuantity>3</FreeQuantity> <IsValid>true</IsValid> <ProgramName>sample string 2</ProgramName> <RewardId>sample string 1</RewardId> <TargetQuantity>7</TargetQuantity> </AstroReward> </Rewards> </AstroRewards>
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. |