POST api/AwardExchange/SaveAwardExchangeApplyInfo?DomainId={DomainId}&AccountId={AccountId}&PersonId={PersonId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| DomainId |
域Id |
globally unique identifier |
None. |
| AccountId |
账户Id |
globally unique identifier |
None. |
| PersonId |
人员Id |
globally unique identifier |
None. |
Body Parameters
SaveAwardExchangeApplyVM| Name | Description | Type | Additional information |
|---|---|---|---|
| WarehouseID | globally unique identifier |
None. |
|
| AllExAmount | decimal number |
None. |
|
| AllExCardCount | decimal number |
None. |
|
| AllExCategoryCount | decimal number |
None. |
|
| Detail | Collection of CardDetail |
None. |
Request Formats
application/json, text/json
Sample:
{
"WarehouseID": "9419e58e-2b05-4d38-8deb-711f17a399d8",
"AllExAmount": 1.0,
"AllExCardCount": 2.0,
"AllExCategoryCount": 3.0,
"Detail": [
{
"AwardCardID": "f3220c93-2f05-4601-bf82-24ad12ea8dbc",
"Products": [
{
"ProductID": "f2c858cd-22ca-48cc-b457-2b53c7a2d1bd",
"AwardCardCount": 1
},
{
"ProductID": "f2c858cd-22ca-48cc-b457-2b53c7a2d1bd",
"AwardCardCount": 1
}
]
},
{
"AwardCardID": "f3220c93-2f05-4601-bf82-24ad12ea8dbc",
"Products": [
{
"ProductID": "f2c858cd-22ca-48cc-b457-2b53c7a2d1bd",
"AwardCardCount": 1
},
{
"ProductID": "f2c858cd-22ca-48cc-b457-2b53c7a2d1bd",
"AwardCardCount": 1
}
]
}
]
}
application/xml, text/xml
Sample:
<SaveAwardExchangeApplyVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JT.VSFA.App.WebAPI.Areas.AwardExchange.ViewModel">
<AllExAmount>1</AllExAmount>
<AllExCardCount>2</AllExCardCount>
<AllExCategoryCount>3</AllExCategoryCount>
<Detail>
<CardDetail>
<AwardCardID>f3220c93-2f05-4601-bf82-24ad12ea8dbc</AwardCardID>
<Products>
<CardDetailProduct>
<AwardCardCount>1</AwardCardCount>
<ProductID>f2c858cd-22ca-48cc-b457-2b53c7a2d1bd</ProductID>
</CardDetailProduct>
<CardDetailProduct>
<AwardCardCount>1</AwardCardCount>
<ProductID>f2c858cd-22ca-48cc-b457-2b53c7a2d1bd</ProductID>
</CardDetailProduct>
</Products>
</CardDetail>
<CardDetail>
<AwardCardID>f3220c93-2f05-4601-bf82-24ad12ea8dbc</AwardCardID>
<Products>
<CardDetailProduct>
<AwardCardCount>1</AwardCardCount>
<ProductID>f2c858cd-22ca-48cc-b457-2b53c7a2d1bd</ProductID>
</CardDetailProduct>
<CardDetailProduct>
<AwardCardCount>1</AwardCardCount>
<ProductID>f2c858cd-22ca-48cc-b457-2b53c7a2d1bd</ProductID>
</CardDetailProduct>
</Products>
</CardDetail>
</Detail>
<WarehouseID>9419e58e-2b05-4d38-8deb-711f17a399d8</WarehouseID>
</SaveAwardExchangeApplyVM>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultModelOfBoolean| Name | Description | Type | Additional information |
|---|---|---|---|
| Code | ReturnCode |
None. |
|
| Message | string |
None. |
|
| Data | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"Code": 200,
"Message": "sample string 1",
"Data": true
}
application/xml, text/xml
Sample:
<ResultModelOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JT.VSFA.Utility"> <Code>Success</Code> <Data>true</Data> <Message>sample string 1</Message> </ResultModelOfboolean>