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": "60a0f47b-3096-4332-bbbe-d28c76d6541a",
"SaleId": "ed62cb97-447c-45c1-81f5-ab11ff7b8f8a",
"ProductId": "3333e124-44fc-491b-8b1a-e6ce361ac8c7",
"PackingSizeId": "a03cc018-9a4b-4648-bf20-084a9b383fb4",
"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": "be930112-dfa7-4d09-90e5-c0dd5838c538",
"SaleDate": "2026-07-16T07:25:34.9415749-05:00",
"ProductIdName": "sample string 12",
"CreatedBy": "82dd20fb-2754-4e18-8d50-7f36e088927f",
"CreatedDate": "2026-07-16T07:25:34.9415749-05:00",
"EditedBy": "83e33057-a5f0-4518-90d0-93f2e7706b21",
"EditedDate": "2026-07-16T07:25:34.9415749-05:00",
"IsActive": true,
"IsDelete": true
},
{
"SaleDetailId": "60a0f47b-3096-4332-bbbe-d28c76d6541a",
"SaleId": "ed62cb97-447c-45c1-81f5-ab11ff7b8f8a",
"ProductId": "3333e124-44fc-491b-8b1a-e6ce361ac8c7",
"PackingSizeId": "a03cc018-9a4b-4648-bf20-084a9b383fb4",
"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": "be930112-dfa7-4d09-90e5-c0dd5838c538",
"SaleDate": "2026-07-16T07:25:34.9415749-05:00",
"ProductIdName": "sample string 12",
"CreatedBy": "82dd20fb-2754-4e18-8d50-7f36e088927f",
"CreatedDate": "2026-07-16T07:25:34.9415749-05:00",
"EditedBy": "83e33057-a5f0-4518-90d0-93f2e7706b21",
"EditedDate": "2026-07-16T07:25:34.9415749-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">82dd20fb-2754-4e18-8d50-7f36e088927f</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-07-16T07:25:34.9415749-05:00</CreatedDate>
<EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">83e33057-a5f0-4518-90d0-93f2e7706b21</EditedBy>
<EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-07-16T07:25:34.9415749-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>a03cc018-9a4b-4648-bf20-084a9b383fb4</PackingSizeId>
<PackingSizeIdName>sample string 9</PackingSizeIdName>
<PricePerPack>5</PricePerPack>
<ProductId>3333e124-44fc-491b-8b1a-e6ce361ac8c7</ProductId>
<ProductIdName>sample string 12</ProductIdName>
<Qty>6</Qty>
<Return>8</Return>
<SaleDate>2026-07-16T07:25:34.9415749-05:00</SaleDate>
<SaleDetailId>60a0f47b-3096-4332-bbbe-d28c76d6541a</SaleDetailId>
<SaleId>ed62cb97-447c-45c1-81f5-ab11ff7b8f8a</SaleId>
<StoreId>be930112-dfa7-4d09-90e5-c0dd5838c538</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">82dd20fb-2754-4e18-8d50-7f36e088927f</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-07-16T07:25:34.9415749-05:00</CreatedDate>
<EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">83e33057-a5f0-4518-90d0-93f2e7706b21</EditedBy>
<EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-07-16T07:25:34.9415749-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>a03cc018-9a4b-4648-bf20-084a9b383fb4</PackingSizeId>
<PackingSizeIdName>sample string 9</PackingSizeIdName>
<PricePerPack>5</PricePerPack>
<ProductId>3333e124-44fc-491b-8b1a-e6ce361ac8c7</ProductId>
<ProductIdName>sample string 12</ProductIdName>
<Qty>6</Qty>
<Return>8</Return>
<SaleDate>2026-07-16T07:25:34.9415749-05:00</SaleDate>
<SaleDetailId>60a0f47b-3096-4332-bbbe-d28c76d6541a</SaleDetailId>
<SaleId>ed62cb97-447c-45c1-81f5-ab11ff7b8f8a</SaleId>
<StoreId>be930112-dfa7-4d09-90e5-c0dd5838c538</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.