POST api/BonusRedeemTran
Request Information
URI Parameters
None.
Body Parameters
BonusRedeemTran| Name | Description | Type | Additional information |
|---|---|---|---|
| OuterMemberCode | string |
None. |
|
| ShopMemberCode | string |
None. |
|
| ShopId | integer |
None. |
|
| TotalPrice | decimal number |
None. |
|
| OrderId | string |
None. |
|
| MaxDiscountPrice | decimal number |
None. |
|
| DiscountPrice | decimal number |
None. |
|
| Points | decimal number |
None. |
|
| Description | string |
None. |
|
| SkuList | Collection of SkuList |
None. |
|
| TotalPointsPay | TotalPointsPay |
None. |
|
| PointsPaySkuList | Collection of PointsPaySkuList |
None. |
Request Formats
application/json, text/json
Sample:
{
"OuterMemberCode": "sample string 1",
"ShopMemberCode": "sample string 2",
"ShopId": 3,
"TotalPrice": 4.1,
"OrderId": "sample string 5",
"MaxDiscountPrice": 6.1,
"DiscountPrice": 7.1,
"Points": 8.1,
"Description": "sample string 9",
"SkuList": [
{
"SkuId": 1,
"OuterId": "sample string 2",
"Qty": 3,
"Price": 4.1,
"MaxDiscountPrice": 5.1,
"DiscountPrice": 6.1,
"Points": 7.1
},
{
"SkuId": 1,
"OuterId": "sample string 2",
"Qty": 3,
"Price": 4.1,
"MaxDiscountPrice": 5.1,
"DiscountPrice": 6.1,
"Points": 7.1
}
],
"TotalPointsPay": {
"TotalPrice": 1.1,
"TotalDiscount": 1.1,
"TotalPoints": 1.1
},
"PointsPaySkuList": [
{
"SkuId": 1,
"OuterId": "sample string 1",
"Qty": 1,
"Price": 1.1,
"MaxDiscountPrice": 1.1,
"DiscountPrice": 1.1,
"Points": 1.1
},
{
"SkuId": 1,
"OuterId": "sample string 1",
"Qty": 1,
"Price": 1.1,
"MaxDiscountPrice": 1.1,
"DiscountPrice": 1.1,
"Points": 1.1
}
]
}
application/xml, text/xml
Sample:
<BonusRedeemTran xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/_91AppWebApi.Models">
<Description>sample string 9</Description>
<DiscountPrice>7.1</DiscountPrice>
<MaxDiscountPrice>6.1</MaxDiscountPrice>
<OrderId>sample string 5</OrderId>
<OuterMemberCode>sample string 1</OuterMemberCode>
<Points>8.1</Points>
<PointsPaySkuList>
<PointsPaySkuList>
<DiscountPrice>1.1</DiscountPrice>
<MaxDiscountPrice>1.1</MaxDiscountPrice>
<OuterId>sample string 1</OuterId>
<Points>1.1</Points>
<Price>1.1</Price>
<Qty>1</Qty>
<SkuId>1</SkuId>
</PointsPaySkuList>
<PointsPaySkuList>
<DiscountPrice>1.1</DiscountPrice>
<MaxDiscountPrice>1.1</MaxDiscountPrice>
<OuterId>sample string 1</OuterId>
<Points>1.1</Points>
<Price>1.1</Price>
<Qty>1</Qty>
<SkuId>1</SkuId>
</PointsPaySkuList>
</PointsPaySkuList>
<ShopId>3</ShopId>
<ShopMemberCode>sample string 2</ShopMemberCode>
<SkuList>
<SkuList>
<DiscountPrice>6.1</DiscountPrice>
<MaxDiscountPrice>5.1</MaxDiscountPrice>
<OuterId>sample string 2</OuterId>
<Points>7.1</Points>
<Price>4.1</Price>
<Qty>3</Qty>
<SkuId>1</SkuId>
</SkuList>
<SkuList>
<DiscountPrice>6.1</DiscountPrice>
<MaxDiscountPrice>5.1</MaxDiscountPrice>
<OuterId>sample string 2</OuterId>
<Points>7.1</Points>
<Price>4.1</Price>
<Qty>3</Qty>
<SkuId>1</SkuId>
</SkuList>
</SkuList>
<TotalPointsPay>
<TotalDiscount>1.1</TotalDiscount>
<TotalPoints>1.1</TotalPoints>
<TotalPrice>1.1</TotalPrice>
</TotalPointsPay>
<TotalPrice>4.1</TotalPrice>
</BonusRedeemTran>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
BonusResultModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ResultCode | string |
None. |
|
| ResultData | Object |
None. |
|
| ResultMessage | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ResultCode": "sample string 1",
"ResultData": {},
"ResultMessage": "sample string 3"
}
application/xml, text/xml
Sample:
<BonusResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/_91AppWebApi.Models"> <ResultCode>sample string 1</ResultCode> <ResultData /> <ResultMessage>sample string 3</ResultMessage> </BonusResultModel>