POST astro/offers/cancel
Authorized only.
Request Information
URI Parameters
None.
Body Parameters
CancelAstroOffersRequestName | Description | Type | Additional information |
---|---|---|---|
CustomerId | integer |
None. |
|
Data | ApplyOffersData |
None. |
Request Formats
application/json, text/json
Sample:
{ "CustomerId": 1, "Data": { "ProcessedItems": [ { "TransactionId": "sample string 1", "OrderItemMobileId": 3, "IsProcessed": true, "IsFreeItem": true, "IsRebate": true, "IsRedeemed": true, "RewardId": "sample string 8", "RebateAmount": 9.0 }, { "TransactionId": "sample string 1", "OrderItemMobileId": 3, "IsProcessed": true, "IsFreeItem": true, "IsRebate": true, "IsRedeemed": true, "RewardId": "sample string 8", "RebateAmount": 9.0 } ] } }
application/xml, text/xml
Sample:
<CancelAstroOffersRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Services"> <CustomerId>1</CustomerId> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/IConnect.Domain.Models"> <d2p1:CustomerId>1</d2p1:CustomerId> <d2p1:ProcessedItems> <d2p1:ProcessedItem> <d2p1:IsFreeItem>true</d2p1:IsFreeItem> <d2p1:IsProcessed>true</d2p1:IsProcessed> <d2p1:IsRebate>true</d2p1:IsRebate> <d2p1:IsRedeemed>true</d2p1:IsRedeemed> <d2p1:OrderItemMobileId>3</d2p1:OrderItemMobileId> <d2p1:RebateAmount>9</d2p1:RebateAmount> <d2p1:RewardId>sample string 8</d2p1:RewardId> <d2p1:Sku>sample string 2</d2p1:Sku> <d2p1:TransactionId>sample string 1</d2p1:TransactionId> </d2p1:ProcessedItem> <d2p1:ProcessedItem> <d2p1:IsFreeItem>true</d2p1:IsFreeItem> <d2p1:IsProcessed>true</d2p1:IsProcessed> <d2p1:IsRebate>true</d2p1:IsRebate> <d2p1:IsRedeemed>true</d2p1:IsRedeemed> <d2p1:OrderItemMobileId>3</d2p1:OrderItemMobileId> <d2p1:RebateAmount>9</d2p1:RebateAmount> <d2p1:RewardId>sample string 8</d2p1:RewardId> <d2p1:Sku>sample string 2</d2p1:Sku> <d2p1:TransactionId>sample string 1</d2p1:TransactionId> </d2p1:ProcessedItem> </d2p1:ProcessedItems> </Data> </CancelAstroOffersRequest>
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. |