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": "58b97826-1eea-4540-b819-e7aaa9131ca9",
"SaleId": "afb52f21-cef7-4511-93d8-54fe56e10c3c",
"ProductId": "3137cac1-8411-44af-b26e-3ca1c86afeea",
"PackingSizeId": "f4803753-81b3-42e6-937e-e2d8a93b764f",
"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": "0eb4bd57-c8ba-4a05-a3ee-adff5ea7d591",
"SaleDate": "2026-02-01T08:59:02.6876689-06:00",
"ProductIdName": "sample string 12",
"CreatedBy": "01963983-9831-4c45-aba9-cdcd1d242359",
"CreatedDate": "2026-02-01T08:59:02.6876689-06:00",
"EditedBy": "c8c3462e-5af4-426c-9537-1fceedbd934c",
"EditedDate": "2026-02-01T08:59:02.6876689-06: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">01963983-9831-4c45-aba9-cdcd1d242359</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-02-01T08:59:02.6876689-06:00</CreatedDate>
<EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">c8c3462e-5af4-426c-9537-1fceedbd934c</EditedBy>
<EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-02-01T08:59:02.6876689-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>f4803753-81b3-42e6-937e-e2d8a93b764f</PackingSizeId>
<PackingSizeIdName>sample string 9</PackingSizeIdName>
<PricePerPack>5</PricePerPack>
<ProductId>3137cac1-8411-44af-b26e-3ca1c86afeea</ProductId>
<ProductIdName>sample string 12</ProductIdName>
<Qty>6</Qty>
<Return>8</Return>
<SaleDate>2026-02-01T08:59:02.6876689-06:00</SaleDate>
<SaleDetailId>58b97826-1eea-4540-b819-e7aaa9131ca9</SaleDetailId>
<SaleId>afb52f21-cef7-4511-93d8-54fe56e10c3c</SaleId>
<StoreId>0eb4bd57-c8ba-4a05-a3ee-adff5ea7d591</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.