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": "c1ef26ad-2527-408c-9352-5a3dc4b069e7",
"SaleId": "f7af8800-96ac-44d8-b4bf-8a1f6e2de21f",
"ProductId": "6d650ff7-aed9-4b68-ab55-abc9bec38bd0",
"PackingSizeId": "550e17b4-e8ea-4697-84ee-36ad68a1df44",
"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": "280037a8-3e52-487d-9f6d-fcdd6c300f01",
"SaleDate": "2026-07-16T07:28:01.0684586-05:00",
"ProductIdName": "sample string 12",
"CreatedBy": "3e0c9539-3535-4ed9-9dd2-e0492b1fab4d",
"CreatedDate": "2026-07-16T07:28:01.0684586-05:00",
"EditedBy": "8fffe914-8d59-4475-b3cf-a142040a3a7c",
"EditedDate": "2026-07-16T07:28:01.0684586-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">3e0c9539-3535-4ed9-9dd2-e0492b1fab4d</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-07-16T07:28:01.0684586-05:00</CreatedDate>
<EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">8fffe914-8d59-4475-b3cf-a142040a3a7c</EditedBy>
<EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-07-16T07:28:01.0684586-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>550e17b4-e8ea-4697-84ee-36ad68a1df44</PackingSizeId>
<PackingSizeIdName>sample string 9</PackingSizeIdName>
<PricePerPack>5</PricePerPack>
<ProductId>6d650ff7-aed9-4b68-ab55-abc9bec38bd0</ProductId>
<ProductIdName>sample string 12</ProductIdName>
<Qty>6</Qty>
<Return>8</Return>
<SaleDate>2026-07-16T07:28:01.0684586-05:00</SaleDate>
<SaleDetailId>c1ef26ad-2527-408c-9352-5a3dc4b069e7</SaleDetailId>
<SaleId>f7af8800-96ac-44d8-b4bf-8a1f6e2de21f</SaleId>
<StoreId>280037a8-3e52-487d-9f6d-fcdd6c300f01</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.