POST api/AwardExchange/SaveAwardExchangeApplyInfo?DomainId={DomainId}&AccountId={AccountId}&PersonId={PersonId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
DomainId

域Id

globally unique identifier

None.

AccountId

账户Id

globally unique identifier

None.

PersonId

人员Id

globally unique identifier

None.

Body Parameters

SaveAwardExchangeApplyVM
NameDescriptionTypeAdditional 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": "7ff1f553-34f7-4b3e-9b5a-894eef652c26",
  "AllExAmount": 1.0,
  "AllExCardCount": 2.0,
  "AllExCategoryCount": 3.0,
  "Detail": [
    {
      "AwardCardID": "f2d71c75-a4e3-421d-9819-475ecad3e3f1",
      "Products": [
        {
          "ProductID": "2b83e750-87b5-4d4c-9950-0c8f9b787ace",
          "AwardCardCount": 1
        },
        {
          "ProductID": "2b83e750-87b5-4d4c-9950-0c8f9b787ace",
          "AwardCardCount": 1
        }
      ]
    },
    {
      "AwardCardID": "f2d71c75-a4e3-421d-9819-475ecad3e3f1",
      "Products": [
        {
          "ProductID": "2b83e750-87b5-4d4c-9950-0c8f9b787ace",
          "AwardCardCount": 1
        },
        {
          "ProductID": "2b83e750-87b5-4d4c-9950-0c8f9b787ace",
          "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>f2d71c75-a4e3-421d-9819-475ecad3e3f1</AwardCardID>
      <Products>
        <CardDetailProduct>
          <AwardCardCount>1</AwardCardCount>
          <ProductID>2b83e750-87b5-4d4c-9950-0c8f9b787ace</ProductID>
        </CardDetailProduct>
        <CardDetailProduct>
          <AwardCardCount>1</AwardCardCount>
          <ProductID>2b83e750-87b5-4d4c-9950-0c8f9b787ace</ProductID>
        </CardDetailProduct>
      </Products>
    </CardDetail>
    <CardDetail>
      <AwardCardID>f2d71c75-a4e3-421d-9819-475ecad3e3f1</AwardCardID>
      <Products>
        <CardDetailProduct>
          <AwardCardCount>1</AwardCardCount>
          <ProductID>2b83e750-87b5-4d4c-9950-0c8f9b787ace</ProductID>
        </CardDetailProduct>
        <CardDetailProduct>
          <AwardCardCount>1</AwardCardCount>
          <ProductID>2b83e750-87b5-4d4c-9950-0c8f9b787ace</ProductID>
        </CardDetailProduct>
      </Products>
    </CardDetail>
  </Detail>
  <WarehouseID>7ff1f553-34f7-4b3e-9b5a-894eef652c26</WarehouseID>
</SaveAwardExchangeApplyVM>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResultModelOfBoolean
NameDescriptionTypeAdditional 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>