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": "bed0ea80-6ce3-46ee-924e-ee9cc2b87a39",
"SaleId": "dd2aa11e-7eba-4a14-a926-edcb8f505d82",
"ProductId": "97097def-c9d6-4102-b01a-393780a53b64",
"PackingSizeId": "172a7950-6527-4a37-b564-b9b380b54723",
"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": "14fbd72b-6d6d-48bc-bc23-640d772bbcdb",
"SaleDate": "2025-12-10T21:42:18.8771091-06:00",
"ProductIdName": "sample string 12",
"CreatedBy": "56ff9b63-2c9c-45ef-9b26-7bfb488171f1",
"CreatedDate": "2025-12-10T21:42:18.8771091-06:00",
"EditedBy": "67b159a3-3402-4ba6-8451-75f7c5a7bcfc",
"EditedDate": "2025-12-10T21:42:18.8771091-06:00",
"IsActive": true,
"IsDelete": true
},
{
"SaleDetailId": "bed0ea80-6ce3-46ee-924e-ee9cc2b87a39",
"SaleId": "dd2aa11e-7eba-4a14-a926-edcb8f505d82",
"ProductId": "97097def-c9d6-4102-b01a-393780a53b64",
"PackingSizeId": "172a7950-6527-4a37-b564-b9b380b54723",
"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": "14fbd72b-6d6d-48bc-bc23-640d772bbcdb",
"SaleDate": "2025-12-10T21:42:18.8771091-06:00",
"ProductIdName": "sample string 12",
"CreatedBy": "56ff9b63-2c9c-45ef-9b26-7bfb488171f1",
"CreatedDate": "2025-12-10T21:42:18.8771091-06:00",
"EditedBy": "67b159a3-3402-4ba6-8451-75f7c5a7bcfc",
"EditedDate": "2025-12-10T21:42:18.8771091-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">56ff9b63-2c9c-45ef-9b26-7bfb488171f1</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2025-12-10T21:42:18.8771091-06:00</CreatedDate>
<EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">67b159a3-3402-4ba6-8451-75f7c5a7bcfc</EditedBy>
<EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2025-12-10T21:42:18.8771091-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>172a7950-6527-4a37-b564-b9b380b54723</PackingSizeId>
<PackingSizeIdName>sample string 9</PackingSizeIdName>
<PricePerPack>5</PricePerPack>
<ProductId>97097def-c9d6-4102-b01a-393780a53b64</ProductId>
<ProductIdName>sample string 12</ProductIdName>
<Qty>6</Qty>
<Return>8</Return>
<SaleDate>2025-12-10T21:42:18.8771091-06:00</SaleDate>
<SaleDetailId>bed0ea80-6ce3-46ee-924e-ee9cc2b87a39</SaleDetailId>
<SaleId>dd2aa11e-7eba-4a14-a926-edcb8f505d82</SaleId>
<StoreId>14fbd72b-6d6d-48bc-bc23-640d772bbcdb</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">56ff9b63-2c9c-45ef-9b26-7bfb488171f1</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2025-12-10T21:42:18.8771091-06:00</CreatedDate>
<EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">67b159a3-3402-4ba6-8451-75f7c5a7bcfc</EditedBy>
<EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2025-12-10T21:42:18.8771091-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>172a7950-6527-4a37-b564-b9b380b54723</PackingSizeId>
<PackingSizeIdName>sample string 9</PackingSizeIdName>
<PricePerPack>5</PricePerPack>
<ProductId>97097def-c9d6-4102-b01a-393780a53b64</ProductId>
<ProductIdName>sample string 12</ProductIdName>
<Qty>6</Qty>
<Return>8</Return>
<SaleDate>2025-12-10T21:42:18.8771091-06:00</SaleDate>
<SaleDetailId>bed0ea80-6ce3-46ee-924e-ee9cc2b87a39</SaleDetailId>
<SaleId>dd2aa11e-7eba-4a14-a926-edcb8f505d82</SaleId>
<StoreId>14fbd72b-6d6d-48bc-bc23-640d772bbcdb</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.