POST api/Sale/Create
Request Information
URI Parameters
None.
Body Parameters
Collection of SaleDetail| Name | Description | Type | Additional information |
|---|---|---|---|
| SaleDetailId | globally unique identifier |
None. |
|
| SaleId | globally unique identifier |
None. |
|
| ProductId | globally unique identifier |
None. |
|
| PackingSizeId | globally unique identifier |
None. |
|
| PricePerPack | decimal number |
None. |
|
| Qty | decimal number |
None. |
|
| FreeQty | decimal number |
None. |
|
| Return | decimal number |
None. |
|
| response | Response |
None. |
|
| PackingSizeIdName | string |
None. |
|
| StoreId | globally unique identifier |
None. |
|
| SaleDate | date |
None. |
|
| ProductIdName | string |
None. |
|
| CreatedBy | globally unique identifier |
None. |
|
| CreatedDate | date |
None. |
|
| EditedBy | globally unique identifier |
None. |
|
| EditedDate | date |
None. |
|
| IsActive | boolean |
None. |
|
| IsDelete | boolean |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"SaleDetailId": "f228aed5-1be4-49a5-bb9a-5c170e0bc828",
"SaleId": "6c063e6a-df13-4613-9fe9-c9a3b47063bb",
"ProductId": "abce2f95-c4bd-4059-a83a-3749be29c3a6",
"PackingSizeId": "955b1080-0be2-4bc7-b686-84668706b11a",
"PricePerPack": 5.0,
"Qty": 6.0,
"FreeQty": 7.0,
"Return": 8.0,
"response": {
"Error": "sample string 1",
"Success": "sample string 2"
},
"PackingSizeIdName": "sample string 9",
"StoreId": "0d0132b2-5669-4d8b-82e1-b5a1234b19f0",
"SaleDate": "2026-05-17T05:47:36.6957104-05:00",
"ProductIdName": "sample string 12",
"CreatedBy": "77357905-6699-4964-b17b-0dc7ea6f1424",
"CreatedDate": "2026-05-17T05:47:36.6957104-05:00",
"EditedBy": "25a506b9-2fad-4746-a37a-0b7aac267294",
"EditedDate": "2026-05-17T05:47:36.6957104-05:00",
"IsActive": true,
"IsDelete": true
},
{
"SaleDetailId": "f228aed5-1be4-49a5-bb9a-5c170e0bc828",
"SaleId": "6c063e6a-df13-4613-9fe9-c9a3b47063bb",
"ProductId": "abce2f95-c4bd-4059-a83a-3749be29c3a6",
"PackingSizeId": "955b1080-0be2-4bc7-b686-84668706b11a",
"PricePerPack": 5.0,
"Qty": 6.0,
"FreeQty": 7.0,
"Return": 8.0,
"response": {
"Error": "sample string 1",
"Success": "sample string 2"
},
"PackingSizeIdName": "sample string 9",
"StoreId": "0d0132b2-5669-4d8b-82e1-b5a1234b19f0",
"SaleDate": "2026-05-17T05:47:36.6957104-05:00",
"ProductIdName": "sample string 12",
"CreatedBy": "77357905-6699-4964-b17b-0dc7ea6f1424",
"CreatedDate": "2026-05-17T05:47:36.6957104-05:00",
"EditedBy": "25a506b9-2fad-4746-a37a-0b7aac267294",
"EditedDate": "2026-05-17T05:47:36.6957104-05:00",
"IsActive": true,
"IsDelete": true
}
]
application/xml, text/xml
Sample:
<ArrayOfSaleDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core2.Model">
<SaleDetail>
<CreatedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">77357905-6699-4964-b17b-0dc7ea6f1424</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-05-17T05:47:36.6957104-05:00</CreatedDate>
<EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">25a506b9-2fad-4746-a37a-0b7aac267294</EditedBy>
<EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-05-17T05:47:36.6957104-05:00</EditedDate>
<IsActive xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">true</IsActive>
<IsDelete xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">true</IsDelete>
<FreeQty>7</FreeQty>
<PackingSizeId>955b1080-0be2-4bc7-b686-84668706b11a</PackingSizeId>
<PackingSizeIdName>sample string 9</PackingSizeIdName>
<PricePerPack>5</PricePerPack>
<ProductId>abce2f95-c4bd-4059-a83a-3749be29c3a6</ProductId>
<ProductIdName>sample string 12</ProductIdName>
<Qty>6</Qty>
<Return>8</Return>
<SaleDate>2026-05-17T05:47:36.6957104-05:00</SaleDate>
<SaleDetailId>f228aed5-1be4-49a5-bb9a-5c170e0bc828</SaleDetailId>
<SaleId>6c063e6a-df13-4613-9fe9-c9a3b47063bb</SaleId>
<StoreId>0d0132b2-5669-4d8b-82e1-b5a1234b19f0</StoreId>
<response xmlns:d3p1="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">
<d3p1:Error>sample string 1</d3p1:Error>
<d3p1:Success>sample string 2</d3p1:Success>
</response>
</SaleDetail>
<SaleDetail>
<CreatedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">77357905-6699-4964-b17b-0dc7ea6f1424</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-05-17T05:47:36.6957104-05:00</CreatedDate>
<EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">25a506b9-2fad-4746-a37a-0b7aac267294</EditedBy>
<EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-05-17T05:47:36.6957104-05:00</EditedDate>
<IsActive xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">true</IsActive>
<IsDelete xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">true</IsDelete>
<FreeQty>7</FreeQty>
<PackingSizeId>955b1080-0be2-4bc7-b686-84668706b11a</PackingSizeId>
<PackingSizeIdName>sample string 9</PackingSizeIdName>
<PricePerPack>5</PricePerPack>
<ProductId>abce2f95-c4bd-4059-a83a-3749be29c3a6</ProductId>
<ProductIdName>sample string 12</ProductIdName>
<Qty>6</Qty>
<Return>8</Return>
<SaleDate>2026-05-17T05:47:36.6957104-05:00</SaleDate>
<SaleDetailId>f228aed5-1be4-49a5-bb9a-5c170e0bc828</SaleDetailId>
<SaleId>6c063e6a-df13-4613-9fe9-c9a3b47063bb</SaleId>
<StoreId>0d0132b2-5669-4d8b-82e1-b5a1234b19f0</StoreId>
<response xmlns:d3p1="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">
<d3p1:Error>sample string 1</d3p1:Error>
<d3p1:Success>sample string 2</d3p1:Success>
</response>
</SaleDetail>
</ArrayOfSaleDetail>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.