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": "83da65b4-a5e8-4cde-ac2f-6f8799075843",
"SaleId": "f2fafc8f-ca0f-4a8c-b8b2-c0064ac8aee0",
"ProductId": "164802fe-88a4-4f8a-992f-53d099c66955",
"PackingSizeId": "faf83d43-ff55-4d11-b105-82a4f00a0b21",
"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": "4cdaf341-f998-4717-b333-66c54eb025dd",
"SaleDate": "2026-03-23T11:27:48.7323331-05:00",
"ProductIdName": "sample string 12",
"CreatedBy": "f9450f55-600f-4e26-a9a6-f19baaf65ebf",
"CreatedDate": "2026-03-23T11:27:48.7323331-05:00",
"EditedBy": "294959f7-207b-4aef-8bb6-22ef16c45802",
"EditedDate": "2026-03-23T11:27:48.7323331-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">f9450f55-600f-4e26-a9a6-f19baaf65ebf</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-03-23T11:27:48.7323331-05:00</CreatedDate>
<EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">294959f7-207b-4aef-8bb6-22ef16c45802</EditedBy>
<EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-03-23T11:27:48.7323331-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>faf83d43-ff55-4d11-b105-82a4f00a0b21</PackingSizeId>
<PackingSizeIdName>sample string 9</PackingSizeIdName>
<PricePerPack>5</PricePerPack>
<ProductId>164802fe-88a4-4f8a-992f-53d099c66955</ProductId>
<ProductIdName>sample string 12</ProductIdName>
<Qty>6</Qty>
<Return>8</Return>
<SaleDate>2026-03-23T11:27:48.7323331-05:00</SaleDate>
<SaleDetailId>83da65b4-a5e8-4cde-ac2f-6f8799075843</SaleDetailId>
<SaleId>f2fafc8f-ca0f-4a8c-b8b2-c0064ac8aee0</SaleId>
<StoreId>4cdaf341-f998-4717-b333-66c54eb025dd</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.