POST api/PromotionActivity/SaveSaleOrder?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
SaveSaleOrderVM| Name | Description | Type | Additional information |
|---|---|---|---|
| Remark | string |
None. |
|
| PayMethod | string |
None. |
|
| TotalAmount | decimal number |
None. |
|
| ReceivableAmount | decimal number |
None. |
|
| PayMoney | decimal number |
None. |
|
| Privilege | decimal number |
None. |
|
| WarehouseID | string |
None. |
|
| ActivityID | string |
None. |
|
| SkuItemLines | Collection of SkuItemLine |
None. |
Request Formats
application/json, text/json
Sample:
{
"Remark": "sample string 1",
"PayMethod": "sample string 2",
"TotalAmount": 3.0,
"ReceivableAmount": 4.0,
"PayMoney": 5.0,
"Privilege": 6.0,
"WarehouseID": "sample string 7",
"ActivityID": "sample string 8",
"SkuItemLines": [
{
"SKU": "78257902-1d64-4bf8-ab26-d01e8eb8515c",
"StockStatus": "sample string 1",
"Batch": "sample string 2",
"UseTypeItems": [
{
"UseTypeKey": "sample string 1",
"ProductItems": [
{
"ProductID": "3f642088-6d80-404f-bc30-b7a89c8629a6",
"SalesPrice": 1.0,
"SalesCount": 1.0
},
{
"ProductID": "3f642088-6d80-404f-bc30-b7a89c8629a6",
"SalesPrice": 1.0,
"SalesCount": 1.0
}
]
},
{
"UseTypeKey": "sample string 1",
"ProductItems": [
{
"ProductID": "3f642088-6d80-404f-bc30-b7a89c8629a6",
"SalesPrice": 1.0,
"SalesCount": 1.0
},
{
"ProductID": "3f642088-6d80-404f-bc30-b7a89c8629a6",
"SalesPrice": 1.0,
"SalesCount": 1.0
}
]
}
]
},
{
"SKU": "78257902-1d64-4bf8-ab26-d01e8eb8515c",
"StockStatus": "sample string 1",
"Batch": "sample string 2",
"UseTypeItems": [
{
"UseTypeKey": "sample string 1",
"ProductItems": [
{
"ProductID": "3f642088-6d80-404f-bc30-b7a89c8629a6",
"SalesPrice": 1.0,
"SalesCount": 1.0
},
{
"ProductID": "3f642088-6d80-404f-bc30-b7a89c8629a6",
"SalesPrice": 1.0,
"SalesCount": 1.0
}
]
},
{
"UseTypeKey": "sample string 1",
"ProductItems": [
{
"ProductID": "3f642088-6d80-404f-bc30-b7a89c8629a6",
"SalesPrice": 1.0,
"SalesCount": 1.0
},
{
"ProductID": "3f642088-6d80-404f-bc30-b7a89c8629a6",
"SalesPrice": 1.0,
"SalesCount": 1.0
}
]
}
]
}
]
}
application/xml, text/xml
Sample:
<SaveSaleOrderVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JT.VSFA.App.WebAPI.Areas.PromotionActivity.ViewModel">
<ActivityID>sample string 8</ActivityID>
<PayMethod>sample string 2</PayMethod>
<PayMoney>5</PayMoney>
<Privilege>6</Privilege>
<ReceivableAmount>4</ReceivableAmount>
<Remark>sample string 1</Remark>
<SkuItemLines>
<SkuItemLine>
<Batch>sample string 2</Batch>
<SKU>78257902-1d64-4bf8-ab26-d01e8eb8515c</SKU>
<StockStatus>sample string 1</StockStatus>
<UseTypeItems>
<UseTypeItem>
<ProductItems>
<ProductItem>
<ProductID>3f642088-6d80-404f-bc30-b7a89c8629a6</ProductID>
<SalesCount>1</SalesCount>
<SalesPrice>1</SalesPrice>
</ProductItem>
<ProductItem>
<ProductID>3f642088-6d80-404f-bc30-b7a89c8629a6</ProductID>
<SalesCount>1</SalesCount>
<SalesPrice>1</SalesPrice>
</ProductItem>
</ProductItems>
<UseTypeKey>sample string 1</UseTypeKey>
</UseTypeItem>
<UseTypeItem>
<ProductItems>
<ProductItem>
<ProductID>3f642088-6d80-404f-bc30-b7a89c8629a6</ProductID>
<SalesCount>1</SalesCount>
<SalesPrice>1</SalesPrice>
</ProductItem>
<ProductItem>
<ProductID>3f642088-6d80-404f-bc30-b7a89c8629a6</ProductID>
<SalesCount>1</SalesCount>
<SalesPrice>1</SalesPrice>
</ProductItem>
</ProductItems>
<UseTypeKey>sample string 1</UseTypeKey>
</UseTypeItem>
</UseTypeItems>
</SkuItemLine>
<SkuItemLine>
<Batch>sample string 2</Batch>
<SKU>78257902-1d64-4bf8-ab26-d01e8eb8515c</SKU>
<StockStatus>sample string 1</StockStatus>
<UseTypeItems>
<UseTypeItem>
<ProductItems>
<ProductItem>
<ProductID>3f642088-6d80-404f-bc30-b7a89c8629a6</ProductID>
<SalesCount>1</SalesCount>
<SalesPrice>1</SalesPrice>
</ProductItem>
<ProductItem>
<ProductID>3f642088-6d80-404f-bc30-b7a89c8629a6</ProductID>
<SalesCount>1</SalesCount>
<SalesPrice>1</SalesPrice>
</ProductItem>
</ProductItems>
<UseTypeKey>sample string 1</UseTypeKey>
</UseTypeItem>
<UseTypeItem>
<ProductItems>
<ProductItem>
<ProductID>3f642088-6d80-404f-bc30-b7a89c8629a6</ProductID>
<SalesCount>1</SalesCount>
<SalesPrice>1</SalesPrice>
</ProductItem>
<ProductItem>
<ProductID>3f642088-6d80-404f-bc30-b7a89c8629a6</ProductID>
<SalesCount>1</SalesCount>
<SalesPrice>1</SalesPrice>
</ProductItem>
</ProductItems>
<UseTypeKey>sample string 1</UseTypeKey>
</UseTypeItem>
</UseTypeItems>
</SkuItemLine>
</SkuItemLines>
<TotalAmount>3</TotalAmount>
<WarehouseID>sample string 7</WarehouseID>
</SaveSaleOrderVM>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ObjectNone.
Response Formats
application/json, text/json
Sample:
{}
application/xml, text/xml
Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />