POST api/Sale/Create
Request Information
URI Parameters
None.
Body Parameters
Collection of 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": "2aa47c13-eef8-48fc-8092-c6ca9d8123e3",
"SaleId": "8691667a-d287-4ff1-b38a-4630493a6b1f",
"ProductId": "10210ebc-10e2-4b05-a019-9b5bd04429d7",
"PackingSizeId": "29890434-9709-45a5-8ace-c8e0444b4c9e",
"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": "307a438b-348b-4951-8117-0902e9d66a9d",
"SaleDate": "2026-09-14T05:51:56.0864057-05:00",
"ProductIdName": "sample string 12",
"CreatedBy": "c4e1f577-41dc-45f5-9aca-b517b9a33997",
"CreatedDate": "2026-09-14T05:51:56.0864057-05:00",
"EditedBy": "5b84267e-c446-49ea-b53a-cdfe735532a2",
"EditedDate": "2026-09-14T05:51:56.0864057-05:00",
"IsActive": true,
"IsDelete": true
},
{
"SaleDetailId": "2aa47c13-eef8-48fc-8092-c6ca9d8123e3",
"SaleId": "8691667a-d287-4ff1-b38a-4630493a6b1f",
"ProductId": "10210ebc-10e2-4b05-a019-9b5bd04429d7",
"PackingSizeId": "29890434-9709-45a5-8ace-c8e0444b4c9e",
"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": "307a438b-348b-4951-8117-0902e9d66a9d",
"SaleDate": "2026-09-14T05:51:56.0864057-05:00",
"ProductIdName": "sample string 12",
"CreatedBy": "c4e1f577-41dc-45f5-9aca-b517b9a33997",
"CreatedDate": "2026-09-14T05:51:56.0864057-05:00",
"EditedBy": "5b84267e-c446-49ea-b53a-cdfe735532a2",
"EditedDate": "2026-09-14T05:51:56.0864057-05:00",
"IsActive": true,
"IsDelete": true
}
]
application/xml, text/xml
Sample:
<ArrayOfSaleDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core2.Model">
<SaleDetail>
<CreatedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">c4e1f577-41dc-45f5-9aca-b517b9a33997</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-09-14T05:51:56.0864057-05:00</CreatedDate>
<EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">5b84267e-c446-49ea-b53a-cdfe735532a2</EditedBy>
<EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-09-14T05:51:56.0864057-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>29890434-9709-45a5-8ace-c8e0444b4c9e</PackingSizeId>
<PackingSizeIdName>sample string 9</PackingSizeIdName>
<PricePerPack>5</PricePerPack>
<ProductId>10210ebc-10e2-4b05-a019-9b5bd04429d7</ProductId>
<ProductIdName>sample string 12</ProductIdName>
<Qty>6</Qty>
<Return>8</Return>
<SaleDate>2026-09-14T05:51:56.0864057-05:00</SaleDate>
<SaleDetailId>2aa47c13-eef8-48fc-8092-c6ca9d8123e3</SaleDetailId>
<SaleId>8691667a-d287-4ff1-b38a-4630493a6b1f</SaleId>
<StoreId>307a438b-348b-4951-8117-0902e9d66a9d</StoreId>
<response xmlns:d3p1="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">
<d3p1:Error>sample string 1</d3p1:Error>
<d3p1:Success>sample string 2</d3p1:Success>
</response>
</SaleDetail>
<SaleDetail>
<CreatedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">c4e1f577-41dc-45f5-9aca-b517b9a33997</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-09-14T05:51:56.0864057-05:00</CreatedDate>
<EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">5b84267e-c446-49ea-b53a-cdfe735532a2</EditedBy>
<EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-09-14T05:51:56.0864057-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>29890434-9709-45a5-8ace-c8e0444b4c9e</PackingSizeId>
<PackingSizeIdName>sample string 9</PackingSizeIdName>
<PricePerPack>5</PricePerPack>
<ProductId>10210ebc-10e2-4b05-a019-9b5bd04429d7</ProductId>
<ProductIdName>sample string 12</ProductIdName>
<Qty>6</Qty>
<Return>8</Return>
<SaleDate>2026-09-14T05:51:56.0864057-05:00</SaleDate>
<SaleDetailId>2aa47c13-eef8-48fc-8092-c6ca9d8123e3</SaleDetailId>
<SaleId>8691667a-d287-4ff1-b38a-4630493a6b1f</SaleId>
<StoreId>307a438b-348b-4951-8117-0902e9d66a9d</StoreId>
<response xmlns:d3p1="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">
<d3p1:Error>sample string 1</d3p1:Error>
<d3p1:Success>sample string 2</d3p1:Success>
</response>
</SaleDetail>
</ArrayOfSaleDetail>
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.