POST api/Sale/Edit
Request Information
URI Parameters
None.
Body Parameters
Sale| Name | Description | Type | Additional information |
|---|---|---|---|
| SaleId | globally unique identifier |
None. |
|
| StoreId | globally unique identifier |
None. |
|
| SaleDate | date |
None. |
|
| StoreIdName | string |
None. |
|
| InvoiceAmount | decimal number |
None. |
|
| AmountPaid | decimal number |
None. |
|
| RemainingAmount | decimal number |
None. |
|
| PaymentStatus | string |
None. |
|
| response | Response |
None. |
|
| SaleDetailList | Collection of SaleDetail |
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:
{
"SaleId": "4f50d020-5b48-45e4-bdff-f4883348aea7",
"StoreId": "2665f404-7b0f-41e7-bb4c-b50b1b783f49",
"SaleDate": "2026-07-16T07:29:36.0985655-05:00",
"StoreIdName": "sample string 4",
"InvoiceAmount": 5.0,
"AmountPaid": 6.0,
"RemainingAmount": 7.0,
"PaymentStatus": "sample string 8",
"response": {
"Error": "sample string 1",
"Success": "sample string 2"
},
"SaleDetailList": [
{
"SaleDetailId": "3224b540-f947-48a3-a68c-43829b057e88",
"SaleId": "0f3c18ba-84c4-49c1-af2f-b5510ed88a59",
"ProductId": "125ff11c-4a2d-4668-91e6-4f5256874bd4",
"PackingSizeId": "4abb4db3-c163-453d-b554-c9864886c5cc",
"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": "af0bff73-3da8-47cd-800c-e9d461a460b5",
"SaleDate": "2026-07-16T07:29:36.0985655-05:00",
"ProductIdName": "sample string 12",
"CreatedBy": "d9309c7d-cd11-4fc1-92ec-ba677dde58c0",
"CreatedDate": "2026-07-16T07:29:36.0985655-05:00",
"EditedBy": "ae67a1f8-0305-48b0-a927-1889f3762447",
"EditedDate": "2026-07-16T07:29:36.0985655-05:00",
"IsActive": true,
"IsDelete": true
},
{
"SaleDetailId": "3224b540-f947-48a3-a68c-43829b057e88",
"SaleId": "0f3c18ba-84c4-49c1-af2f-b5510ed88a59",
"ProductId": "125ff11c-4a2d-4668-91e6-4f5256874bd4",
"PackingSizeId": "4abb4db3-c163-453d-b554-c9864886c5cc",
"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": "af0bff73-3da8-47cd-800c-e9d461a460b5",
"SaleDate": "2026-07-16T07:29:36.0985655-05:00",
"ProductIdName": "sample string 12",
"CreatedBy": "d9309c7d-cd11-4fc1-92ec-ba677dde58c0",
"CreatedDate": "2026-07-16T07:29:36.0985655-05:00",
"EditedBy": "ae67a1f8-0305-48b0-a927-1889f3762447",
"EditedDate": "2026-07-16T07:29:36.0985655-05:00",
"IsActive": true,
"IsDelete": true
}
],
"CreatedBy": "7d91b6f3-171a-4f19-9ea5-6db7a21b218d",
"CreatedDate": "2026-07-16T07:29:36.0985655-05:00",
"EditedBy": "dbc99e3e-5210-4780-ae06-54e1164b67a6",
"EditedDate": "2026-07-16T07:29:36.0985655-05:00",
"IsActive": true,
"IsDelete": true
}
application/xml, text/xml
Sample:
<Sale 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">7d91b6f3-171a-4f19-9ea5-6db7a21b218d</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-07-16T07:29:36.0985655-05:00</CreatedDate>
<EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">dbc99e3e-5210-4780-ae06-54e1164b67a6</EditedBy>
<EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-07-16T07:29:36.0985655-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>
<AmountPaid>6</AmountPaid>
<InvoiceAmount>5</InvoiceAmount>
<PaymentStatus>sample string 8</PaymentStatus>
<RemainingAmount>7</RemainingAmount>
<SaleDate>2026-07-16T07:29:36.0985655-05:00</SaleDate>
<SaleDetailList>
<SaleDetail>
<CreatedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">d9309c7d-cd11-4fc1-92ec-ba677dde58c0</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-07-16T07:29:36.0985655-05:00</CreatedDate>
<EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">ae67a1f8-0305-48b0-a927-1889f3762447</EditedBy>
<EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-07-16T07:29:36.0985655-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>4abb4db3-c163-453d-b554-c9864886c5cc</PackingSizeId>
<PackingSizeIdName>sample string 9</PackingSizeIdName>
<PricePerPack>5</PricePerPack>
<ProductId>125ff11c-4a2d-4668-91e6-4f5256874bd4</ProductId>
<ProductIdName>sample string 12</ProductIdName>
<Qty>6</Qty>
<Return>8</Return>
<SaleDate>2026-07-16T07:29:36.0985655-05:00</SaleDate>
<SaleDetailId>3224b540-f947-48a3-a68c-43829b057e88</SaleDetailId>
<SaleId>0f3c18ba-84c4-49c1-af2f-b5510ed88a59</SaleId>
<StoreId>af0bff73-3da8-47cd-800c-e9d461a460b5</StoreId>
<response xmlns:d4p1="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">
<d4p1:Error>sample string 1</d4p1:Error>
<d4p1:Success>sample string 2</d4p1:Success>
</response>
</SaleDetail>
<SaleDetail>
<CreatedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">d9309c7d-cd11-4fc1-92ec-ba677dde58c0</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-07-16T07:29:36.0985655-05:00</CreatedDate>
<EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">ae67a1f8-0305-48b0-a927-1889f3762447</EditedBy>
<EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-07-16T07:29:36.0985655-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>4abb4db3-c163-453d-b554-c9864886c5cc</PackingSizeId>
<PackingSizeIdName>sample string 9</PackingSizeIdName>
<PricePerPack>5</PricePerPack>
<ProductId>125ff11c-4a2d-4668-91e6-4f5256874bd4</ProductId>
<ProductIdName>sample string 12</ProductIdName>
<Qty>6</Qty>
<Return>8</Return>
<SaleDate>2026-07-16T07:29:36.0985655-05:00</SaleDate>
<SaleDetailId>3224b540-f947-48a3-a68c-43829b057e88</SaleDetailId>
<SaleId>0f3c18ba-84c4-49c1-af2f-b5510ed88a59</SaleId>
<StoreId>af0bff73-3da8-47cd-800c-e9d461a460b5</StoreId>
<response xmlns:d4p1="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">
<d4p1:Error>sample string 1</d4p1:Error>
<d4p1:Success>sample string 2</d4p1:Success>
</response>
</SaleDetail>
</SaleDetailList>
<SaleId>4f50d020-5b48-45e4-bdff-f4883348aea7</SaleId>
<StoreId>2665f404-7b0f-41e7-bb4c-b50b1b783f49</StoreId>
<StoreIdName>sample string 4</StoreIdName>
<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>
</Sale>
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.