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": "0e4c1e6a-8ee6-4f26-ae65-d61ee877421b",
"SaleId": "20185416-f698-465f-8b70-e2faba0f0f13",
"ProductId": "6296d5ab-13c4-4836-bc36-9fc88c08d02b",
"PackingSizeId": "73c07d90-b09c-4a61-bdf3-55f1d6b0cdb0",
"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": "4f73b533-20dc-4888-b615-58f37e3f2801",
"SaleDate": "2026-02-01T08:56:32.7063504-06:00",
"ProductIdName": "sample string 12",
"CreatedBy": "60846610-37a9-4746-961d-c3e2c8100c6c",
"CreatedDate": "2026-02-01T08:56:32.7063504-06:00",
"EditedBy": "5f9a9279-14d0-4924-8a21-05b78e5393bd",
"EditedDate": "2026-02-01T08:56:32.7063504-06:00",
"IsActive": true,
"IsDelete": true
},
{
"SaleDetailId": "0e4c1e6a-8ee6-4f26-ae65-d61ee877421b",
"SaleId": "20185416-f698-465f-8b70-e2faba0f0f13",
"ProductId": "6296d5ab-13c4-4836-bc36-9fc88c08d02b",
"PackingSizeId": "73c07d90-b09c-4a61-bdf3-55f1d6b0cdb0",
"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": "4f73b533-20dc-4888-b615-58f37e3f2801",
"SaleDate": "2026-02-01T08:56:32.7063504-06:00",
"ProductIdName": "sample string 12",
"CreatedBy": "60846610-37a9-4746-961d-c3e2c8100c6c",
"CreatedDate": "2026-02-01T08:56:32.7063504-06:00",
"EditedBy": "5f9a9279-14d0-4924-8a21-05b78e5393bd",
"EditedDate": "2026-02-01T08:56:32.7063504-06: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">60846610-37a9-4746-961d-c3e2c8100c6c</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-02-01T08:56:32.7063504-06:00</CreatedDate>
<EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">5f9a9279-14d0-4924-8a21-05b78e5393bd</EditedBy>
<EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-02-01T08:56:32.7063504-06: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>73c07d90-b09c-4a61-bdf3-55f1d6b0cdb0</PackingSizeId>
<PackingSizeIdName>sample string 9</PackingSizeIdName>
<PricePerPack>5</PricePerPack>
<ProductId>6296d5ab-13c4-4836-bc36-9fc88c08d02b</ProductId>
<ProductIdName>sample string 12</ProductIdName>
<Qty>6</Qty>
<Return>8</Return>
<SaleDate>2026-02-01T08:56:32.7063504-06:00</SaleDate>
<SaleDetailId>0e4c1e6a-8ee6-4f26-ae65-d61ee877421b</SaleDetailId>
<SaleId>20185416-f698-465f-8b70-e2faba0f0f13</SaleId>
<StoreId>4f73b533-20dc-4888-b615-58f37e3f2801</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">60846610-37a9-4746-961d-c3e2c8100c6c</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-02-01T08:56:32.7063504-06:00</CreatedDate>
<EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">5f9a9279-14d0-4924-8a21-05b78e5393bd</EditedBy>
<EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-02-01T08:56:32.7063504-06: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>73c07d90-b09c-4a61-bdf3-55f1d6b0cdb0</PackingSizeId>
<PackingSizeIdName>sample string 9</PackingSizeIdName>
<PricePerPack>5</PricePerPack>
<ProductId>6296d5ab-13c4-4836-bc36-9fc88c08d02b</ProductId>
<ProductIdName>sample string 12</ProductIdName>
<Qty>6</Qty>
<Return>8</Return>
<SaleDate>2026-02-01T08:56:32.7063504-06:00</SaleDate>
<SaleDetailId>0e4c1e6a-8ee6-4f26-ae65-d61ee877421b</SaleDetailId>
<SaleId>20185416-f698-465f-8b70-e2faba0f0f13</SaleId>
<StoreId>4f73b533-20dc-4888-b615-58f37e3f2801</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.