POST api/SaleDetail/Create
Request Information
URI Parameters
None.
Body Parameters
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": "82228f2e-56a7-4175-99d0-9aa29a3ac3da",
"SaleId": "c7fd3ee2-6520-4691-ae4e-4f1002c7f7c9",
"ProductId": "9a1e7769-75e1-4e70-9460-3dff679055be",
"PackingSizeId": "9c2b60dc-2e5e-4205-9c17-7281f456e345",
"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": "2ec7e3b1-74f8-4432-b4aa-6678dc3a5ae1",
"SaleDate": "2026-07-16T06:02:43.1795426-05:00",
"ProductIdName": "sample string 12",
"CreatedBy": "f5d7ed21-7765-4e22-a2ea-6490793d9f93",
"CreatedDate": "2026-07-16T06:02:43.1795426-05:00",
"EditedBy": "61246b06-d1db-4209-8df2-a9d14ee017a3",
"EditedDate": "2026-07-16T06:02:43.1795426-05:00",
"IsActive": true,
"IsDelete": true
}
application/xml, text/xml
Sample:
<SaleDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core2.Model">
<CreatedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">f5d7ed21-7765-4e22-a2ea-6490793d9f93</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-07-16T06:02:43.1795426-05:00</CreatedDate>
<EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">61246b06-d1db-4209-8df2-a9d14ee017a3</EditedBy>
<EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-07-16T06:02:43.1795426-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>9c2b60dc-2e5e-4205-9c17-7281f456e345</PackingSizeId>
<PackingSizeIdName>sample string 9</PackingSizeIdName>
<PricePerPack>5</PricePerPack>
<ProductId>9a1e7769-75e1-4e70-9460-3dff679055be</ProductId>
<ProductIdName>sample string 12</ProductIdName>
<Qty>6</Qty>
<Return>8</Return>
<SaleDate>2026-07-16T06:02:43.1795426-05:00</SaleDate>
<SaleDetailId>82228f2e-56a7-4175-99d0-9aa29a3ac3da</SaleDetailId>
<SaleId>c7fd3ee2-6520-4691-ae4e-4f1002c7f7c9</SaleId>
<StoreId>2ec7e3b1-74f8-4432-b4aa-6678dc3a5ae1</StoreId>
<response xmlns:d2p1="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">
<d2p1:Error>sample string 1</d2p1:Error>
<d2p1:Success>sample string 2</d2p1:Success>
</response>
</SaleDetail>
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.