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": "e4136b66-a4f0-4413-8030-9b7287d06091",
"SaleId": "e025ebb2-0fed-4120-a3d7-4944f82a15b3",
"ProductId": "50dc8212-14b4-46c3-a59c-43ca0f58035a",
"PackingSizeId": "fb98b834-0ed2-46d0-91bb-a86306249cf7",
"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": "5dee2652-2685-4920-9a7d-352532363c45",
"SaleDate": "2026-03-23T11:24:34.7266048-05:00",
"ProductIdName": "sample string 12",
"CreatedBy": "424c697f-9d72-4b2f-913f-792596892e0f",
"CreatedDate": "2026-03-23T11:24:34.7266048-05:00",
"EditedBy": "f90ee65b-a6a4-4bf3-9771-f69f14021b6f",
"EditedDate": "2026-03-23T11:24:34.7266048-05:00",
"IsActive": true,
"IsDelete": true
},
{
"SaleDetailId": "e4136b66-a4f0-4413-8030-9b7287d06091",
"SaleId": "e025ebb2-0fed-4120-a3d7-4944f82a15b3",
"ProductId": "50dc8212-14b4-46c3-a59c-43ca0f58035a",
"PackingSizeId": "fb98b834-0ed2-46d0-91bb-a86306249cf7",
"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": "5dee2652-2685-4920-9a7d-352532363c45",
"SaleDate": "2026-03-23T11:24:34.7266048-05:00",
"ProductIdName": "sample string 12",
"CreatedBy": "424c697f-9d72-4b2f-913f-792596892e0f",
"CreatedDate": "2026-03-23T11:24:34.7266048-05:00",
"EditedBy": "f90ee65b-a6a4-4bf3-9771-f69f14021b6f",
"EditedDate": "2026-03-23T11:24:34.7266048-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">424c697f-9d72-4b2f-913f-792596892e0f</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-03-23T11:24:34.7266048-05:00</CreatedDate>
<EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">f90ee65b-a6a4-4bf3-9771-f69f14021b6f</EditedBy>
<EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-03-23T11:24:34.7266048-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>fb98b834-0ed2-46d0-91bb-a86306249cf7</PackingSizeId>
<PackingSizeIdName>sample string 9</PackingSizeIdName>
<PricePerPack>5</PricePerPack>
<ProductId>50dc8212-14b4-46c3-a59c-43ca0f58035a</ProductId>
<ProductIdName>sample string 12</ProductIdName>
<Qty>6</Qty>
<Return>8</Return>
<SaleDate>2026-03-23T11:24:34.7266048-05:00</SaleDate>
<SaleDetailId>e4136b66-a4f0-4413-8030-9b7287d06091</SaleDetailId>
<SaleId>e025ebb2-0fed-4120-a3d7-4944f82a15b3</SaleId>
<StoreId>5dee2652-2685-4920-9a7d-352532363c45</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">424c697f-9d72-4b2f-913f-792596892e0f</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-03-23T11:24:34.7266048-05:00</CreatedDate>
<EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">f90ee65b-a6a4-4bf3-9771-f69f14021b6f</EditedBy>
<EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-03-23T11:24:34.7266048-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>fb98b834-0ed2-46d0-91bb-a86306249cf7</PackingSizeId>
<PackingSizeIdName>sample string 9</PackingSizeIdName>
<PricePerPack>5</PricePerPack>
<ProductId>50dc8212-14b4-46c3-a59c-43ca0f58035a</ProductId>
<ProductIdName>sample string 12</ProductIdName>
<Qty>6</Qty>
<Return>8</Return>
<SaleDate>2026-03-23T11:24:34.7266048-05:00</SaleDate>
<SaleDetailId>e4136b66-a4f0-4413-8030-9b7287d06091</SaleDetailId>
<SaleId>e025ebb2-0fed-4120-a3d7-4944f82a15b3</SaleId>
<StoreId>5dee2652-2685-4920-9a7d-352532363c45</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.