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": "4967caaa-7832-46a9-aae0-4c65489683f2",
"SaleId": "b1247fca-e109-4e6f-9115-cafbcf0b22e9",
"ProductId": "20b8db2f-9f49-4bdc-9b4e-c6c6a59c7b4e",
"PackingSizeId": "0a581866-6cd3-46bb-9072-a9986d2b5942",
"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": "b38825d3-50c0-4dab-bf4f-36361000ad61",
"SaleDate": "2026-05-17T05:50:11.0952537-05:00",
"ProductIdName": "sample string 12",
"CreatedBy": "b0c5ef04-ae68-4954-9258-063d2c6dfce4",
"CreatedDate": "2026-05-17T05:50:11.0952537-05:00",
"EditedBy": "3629d60e-8cc2-4d3d-b687-b36854f19f50",
"EditedDate": "2026-05-17T05:50:11.0952537-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">b0c5ef04-ae68-4954-9258-063d2c6dfce4</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-05-17T05:50:11.0952537-05:00</CreatedDate>
<EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">3629d60e-8cc2-4d3d-b687-b36854f19f50</EditedBy>
<EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-05-17T05:50:11.0952537-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>0a581866-6cd3-46bb-9072-a9986d2b5942</PackingSizeId>
<PackingSizeIdName>sample string 9</PackingSizeIdName>
<PricePerPack>5</PricePerPack>
<ProductId>20b8db2f-9f49-4bdc-9b4e-c6c6a59c7b4e</ProductId>
<ProductIdName>sample string 12</ProductIdName>
<Qty>6</Qty>
<Return>8</Return>
<SaleDate>2026-05-17T05:50:11.0952537-05:00</SaleDate>
<SaleDetailId>4967caaa-7832-46a9-aae0-4c65489683f2</SaleDetailId>
<SaleId>b1247fca-e109-4e6f-9115-cafbcf0b22e9</SaleId>
<StoreId>b38825d3-50c0-4dab-bf4f-36361000ad61</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.