POST api/WeChat/CreateGiftReport?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
CreateGiftReportDto| Name | Description | Type | Additional information |
|---|---|---|---|
| CustomerID | globally unique identifier |
None. |
|
| ProductList | Collection of GiftReportProductItem |
None. |
Request Formats
application/json, text/json
Sample:
{
"CustomerID": "60215f0d-9ae3-49b3-977c-3eb2f43b9576",
"ProductList": [
{
"TID": "c8604e97-7745-49b8-b036-80b95b2fadc1",
"ProductStatusKey": "sample string 2",
"ProductStatusName": "sample string 3",
"UseTypeKey": "sample string 4",
"ProductCount": 5.0,
"StandardPrice": 6.0,
"Price": 1.0,
"LotNumber": "sample string 7",
"Amount": 1.0,
"InCount": 1.0,
"UsageCount": 1.0
},
{
"TID": "c8604e97-7745-49b8-b036-80b95b2fadc1",
"ProductStatusKey": "sample string 2",
"ProductStatusName": "sample string 3",
"UseTypeKey": "sample string 4",
"ProductCount": 5.0,
"StandardPrice": 6.0,
"Price": 1.0,
"LotNumber": "sample string 7",
"Amount": 1.0,
"InCount": 1.0,
"UsageCount": 1.0
}
]
}
application/xml, text/xml
Sample:
<CreateGiftReportDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JT.VSFA.Entity">
<CustomerID>60215f0d-9ae3-49b3-977c-3eb2f43b9576</CustomerID>
<ProductList>
<GiftReportProductItem>
<Amount>1</Amount>
<InCount>1</InCount>
<LotNumber>sample string 7</LotNumber>
<Price>1</Price>
<ProductCount>5</ProductCount>
<ProductStatusKey>sample string 2</ProductStatusKey>
<ProductStatusName>sample string 3</ProductStatusName>
<StandardPrice>6</StandardPrice>
<TID>c8604e97-7745-49b8-b036-80b95b2fadc1</TID>
<UsageCount>1</UsageCount>
<UseTypeKey>sample string 4</UseTypeKey>
</GiftReportProductItem>
<GiftReportProductItem>
<Amount>1</Amount>
<InCount>1</InCount>
<LotNumber>sample string 7</LotNumber>
<Price>1</Price>
<ProductCount>5</ProductCount>
<ProductStatusKey>sample string 2</ProductStatusKey>
<ProductStatusName>sample string 3</ProductStatusName>
<StandardPrice>6</StandardPrice>
<TID>c8604e97-7745-49b8-b036-80b95b2fadc1</TID>
<UsageCount>1</UsageCount>
<UseTypeKey>sample string 4</UseTypeKey>
</GiftReportProductItem>
</ProductList>
</CreateGiftReportDto>
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>