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": "e7ea266f-2e0d-41b2-b00f-fec385a10217",
"SaleId": "1bd5f303-7300-4c78-9d60-e63b1f6c6f14",
"ProductId": "d60d8e5b-c3d0-4870-8be9-d2a2556df68f",
"PackingSizeId": "1d8cb87a-3336-40fb-a53b-694c051e758d",
"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": "1f4b1d03-c29a-430e-93fc-ed3a39018719",
"SaleDate": "2026-07-16T05:58:49.98282-05:00",
"ProductIdName": "sample string 12",
"CreatedBy": "ad28b016-0b48-4bb3-aed6-94c37c54a108",
"CreatedDate": "2026-07-16T05:58:49.98282-05:00",
"EditedBy": "ef7c5ff8-0c76-488b-810f-4ac2ee95a3d8",
"EditedDate": "2026-07-16T05:58:49.98282-05:00",
"IsActive": true,
"IsDelete": true
},
{
"SaleDetailId": "e7ea266f-2e0d-41b2-b00f-fec385a10217",
"SaleId": "1bd5f303-7300-4c78-9d60-e63b1f6c6f14",
"ProductId": "d60d8e5b-c3d0-4870-8be9-d2a2556df68f",
"PackingSizeId": "1d8cb87a-3336-40fb-a53b-694c051e758d",
"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": "1f4b1d03-c29a-430e-93fc-ed3a39018719",
"SaleDate": "2026-07-16T05:58:49.98282-05:00",
"ProductIdName": "sample string 12",
"CreatedBy": "ad28b016-0b48-4bb3-aed6-94c37c54a108",
"CreatedDate": "2026-07-16T05:58:49.98282-05:00",
"EditedBy": "ef7c5ff8-0c76-488b-810f-4ac2ee95a3d8",
"EditedDate": "2026-07-16T05:58:49.98282-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">ad28b016-0b48-4bb3-aed6-94c37c54a108</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-07-16T05:58:49.98282-05:00</CreatedDate>
<EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">ef7c5ff8-0c76-488b-810f-4ac2ee95a3d8</EditedBy>
<EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-07-16T05:58:49.98282-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>1d8cb87a-3336-40fb-a53b-694c051e758d</PackingSizeId>
<PackingSizeIdName>sample string 9</PackingSizeIdName>
<PricePerPack>5</PricePerPack>
<ProductId>d60d8e5b-c3d0-4870-8be9-d2a2556df68f</ProductId>
<ProductIdName>sample string 12</ProductIdName>
<Qty>6</Qty>
<Return>8</Return>
<SaleDate>2026-07-16T05:58:49.98282-05:00</SaleDate>
<SaleDetailId>e7ea266f-2e0d-41b2-b00f-fec385a10217</SaleDetailId>
<SaleId>1bd5f303-7300-4c78-9d60-e63b1f6c6f14</SaleId>
<StoreId>1f4b1d03-c29a-430e-93fc-ed3a39018719</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">ad28b016-0b48-4bb3-aed6-94c37c54a108</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-07-16T05:58:49.98282-05:00</CreatedDate>
<EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">ef7c5ff8-0c76-488b-810f-4ac2ee95a3d8</EditedBy>
<EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-07-16T05:58:49.98282-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>1d8cb87a-3336-40fb-a53b-694c051e758d</PackingSizeId>
<PackingSizeIdName>sample string 9</PackingSizeIdName>
<PricePerPack>5</PricePerPack>
<ProductId>d60d8e5b-c3d0-4870-8be9-d2a2556df68f</ProductId>
<ProductIdName>sample string 12</ProductIdName>
<Qty>6</Qty>
<Return>8</Return>
<SaleDate>2026-07-16T05:58:49.98282-05:00</SaleDate>
<SaleDetailId>e7ea266f-2e0d-41b2-b00f-fec385a10217</SaleDetailId>
<SaleId>1bd5f303-7300-4c78-9d60-e63b1f6c6f14</SaleId>
<StoreId>1f4b1d03-c29a-430e-93fc-ed3a39018719</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.