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": "fdf7203e-82fa-45f0-8c00-38978ad91eef",
"StoreId": "25126b5a-3ff1-44fd-a7e2-92c120beaace",
"SaleDate": "2026-05-17T05:52:23.1062346-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": "aa86de1b-066c-46e5-b8f1-00d37d7a9f7b",
"SaleId": "38eb28d7-ea3e-4f20-8570-d1551eb824b7",
"ProductId": "4bbb5891-d968-48be-aac7-533cd45dd506",
"PackingSizeId": "bcc8b133-d44f-4da5-b28e-41e14f522438",
"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": "d886ae76-b4a2-4f0c-ab9a-c76a2787c104",
"SaleDate": "2026-05-17T05:52:23.1062346-05:00",
"ProductIdName": "sample string 12",
"CreatedBy": "3a1a4cea-34e8-4a2c-9419-2ba7cb2e3619",
"CreatedDate": "2026-05-17T05:52:23.1062346-05:00",
"EditedBy": "a32d0a5f-22dd-41f9-bde9-50fc052b57b4",
"EditedDate": "2026-05-17T05:52:23.1062346-05:00",
"IsActive": true,
"IsDelete": true
},
{
"SaleDetailId": "aa86de1b-066c-46e5-b8f1-00d37d7a9f7b",
"SaleId": "38eb28d7-ea3e-4f20-8570-d1551eb824b7",
"ProductId": "4bbb5891-d968-48be-aac7-533cd45dd506",
"PackingSizeId": "bcc8b133-d44f-4da5-b28e-41e14f522438",
"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": "d886ae76-b4a2-4f0c-ab9a-c76a2787c104",
"SaleDate": "2026-05-17T05:52:23.1062346-05:00",
"ProductIdName": "sample string 12",
"CreatedBy": "3a1a4cea-34e8-4a2c-9419-2ba7cb2e3619",
"CreatedDate": "2026-05-17T05:52:23.1062346-05:00",
"EditedBy": "a32d0a5f-22dd-41f9-bde9-50fc052b57b4",
"EditedDate": "2026-05-17T05:52:23.1062346-05:00",
"IsActive": true,
"IsDelete": true
}
],
"CreatedBy": "96c06c88-eca0-4bb8-b47d-5a0e24292483",
"CreatedDate": "2026-05-17T05:52:23.1062346-05:00",
"EditedBy": "9d6fff0a-65f5-4a5d-af10-abc5210a22a4",
"EditedDate": "2026-05-17T05:52:23.1062346-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">96c06c88-eca0-4bb8-b47d-5a0e24292483</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-05-17T05:52:23.1062346-05:00</CreatedDate>
<EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">9d6fff0a-65f5-4a5d-af10-abc5210a22a4</EditedBy>
<EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-05-17T05:52:23.1062346-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-05-17T05:52:23.1062346-05:00</SaleDate>
<SaleDetailList>
<SaleDetail>
<CreatedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">3a1a4cea-34e8-4a2c-9419-2ba7cb2e3619</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-05-17T05:52:23.1062346-05:00</CreatedDate>
<EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">a32d0a5f-22dd-41f9-bde9-50fc052b57b4</EditedBy>
<EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-05-17T05:52:23.1062346-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>bcc8b133-d44f-4da5-b28e-41e14f522438</PackingSizeId>
<PackingSizeIdName>sample string 9</PackingSizeIdName>
<PricePerPack>5</PricePerPack>
<ProductId>4bbb5891-d968-48be-aac7-533cd45dd506</ProductId>
<ProductIdName>sample string 12</ProductIdName>
<Qty>6</Qty>
<Return>8</Return>
<SaleDate>2026-05-17T05:52:23.1062346-05:00</SaleDate>
<SaleDetailId>aa86de1b-066c-46e5-b8f1-00d37d7a9f7b</SaleDetailId>
<SaleId>38eb28d7-ea3e-4f20-8570-d1551eb824b7</SaleId>
<StoreId>d886ae76-b4a2-4f0c-ab9a-c76a2787c104</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">3a1a4cea-34e8-4a2c-9419-2ba7cb2e3619</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-05-17T05:52:23.1062346-05:00</CreatedDate>
<EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">a32d0a5f-22dd-41f9-bde9-50fc052b57b4</EditedBy>
<EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-05-17T05:52:23.1062346-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>bcc8b133-d44f-4da5-b28e-41e14f522438</PackingSizeId>
<PackingSizeIdName>sample string 9</PackingSizeIdName>
<PricePerPack>5</PricePerPack>
<ProductId>4bbb5891-d968-48be-aac7-533cd45dd506</ProductId>
<ProductIdName>sample string 12</ProductIdName>
<Qty>6</Qty>
<Return>8</Return>
<SaleDate>2026-05-17T05:52:23.1062346-05:00</SaleDate>
<SaleDetailId>aa86de1b-066c-46e5-b8f1-00d37d7a9f7b</SaleDetailId>
<SaleId>38eb28d7-ea3e-4f20-8570-d1551eb824b7</SaleId>
<StoreId>d886ae76-b4a2-4f0c-ab9a-c76a2787c104</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>fdf7203e-82fa-45f0-8c00-38978ad91eef</SaleId>
<StoreId>25126b5a-3ff1-44fd-a7e2-92c120beaace</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.