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": "a5a0e8d7-08ac-41df-a7c6-e3ac2f457191",
"StoreId": "5c88124b-4a45-4e44-8a96-1bfe64e8efb4",
"SaleDate": "2026-02-01T10:31:02.614699-06: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": "a0459aed-036c-4d77-9ea9-e83018a95371",
"SaleId": "0ad59bfc-55f6-4ee7-9a91-8b49dade4a41",
"ProductId": "34189ea0-0f91-4c5b-a7f7-795f802f46f9",
"PackingSizeId": "662be52e-0b3b-4c51-98d7-d39b8d78cbe7",
"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": "4f61b4f2-dc64-450f-aed5-2523694828fd",
"SaleDate": "2026-02-01T10:31:02.614699-06:00",
"ProductIdName": "sample string 12",
"CreatedBy": "d971bb77-f259-4e16-9e03-6507b68423fb",
"CreatedDate": "2026-02-01T10:31:02.614699-06:00",
"EditedBy": "dd775e5e-6acc-4c95-8537-8501a6adbeb9",
"EditedDate": "2026-02-01T10:31:02.614699-06:00",
"IsActive": true,
"IsDelete": true
},
{
"SaleDetailId": "a0459aed-036c-4d77-9ea9-e83018a95371",
"SaleId": "0ad59bfc-55f6-4ee7-9a91-8b49dade4a41",
"ProductId": "34189ea0-0f91-4c5b-a7f7-795f802f46f9",
"PackingSizeId": "662be52e-0b3b-4c51-98d7-d39b8d78cbe7",
"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": "4f61b4f2-dc64-450f-aed5-2523694828fd",
"SaleDate": "2026-02-01T10:31:02.614699-06:00",
"ProductIdName": "sample string 12",
"CreatedBy": "d971bb77-f259-4e16-9e03-6507b68423fb",
"CreatedDate": "2026-02-01T10:31:02.614699-06:00",
"EditedBy": "dd775e5e-6acc-4c95-8537-8501a6adbeb9",
"EditedDate": "2026-02-01T10:31:02.614699-06:00",
"IsActive": true,
"IsDelete": true
}
],
"CreatedBy": "c9dde7e0-390a-4eb9-9935-45da1dcd0937",
"CreatedDate": "2026-02-01T10:31:02.614699-06:00",
"EditedBy": "8c142f79-3f22-4930-a567-6d3569022d75",
"EditedDate": "2026-02-01T10:31:02.614699-06: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">c9dde7e0-390a-4eb9-9935-45da1dcd0937</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-02-01T10:31:02.614699-06:00</CreatedDate>
<EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">8c142f79-3f22-4930-a567-6d3569022d75</EditedBy>
<EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-02-01T10:31:02.614699-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>
<AmountPaid>6</AmountPaid>
<InvoiceAmount>5</InvoiceAmount>
<PaymentStatus>sample string 8</PaymentStatus>
<RemainingAmount>7</RemainingAmount>
<SaleDate>2026-02-01T10:31:02.614699-06:00</SaleDate>
<SaleDetailList>
<SaleDetail>
<CreatedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">d971bb77-f259-4e16-9e03-6507b68423fb</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-02-01T10:31:02.614699-06:00</CreatedDate>
<EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">dd775e5e-6acc-4c95-8537-8501a6adbeb9</EditedBy>
<EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-02-01T10:31:02.614699-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>662be52e-0b3b-4c51-98d7-d39b8d78cbe7</PackingSizeId>
<PackingSizeIdName>sample string 9</PackingSizeIdName>
<PricePerPack>5</PricePerPack>
<ProductId>34189ea0-0f91-4c5b-a7f7-795f802f46f9</ProductId>
<ProductIdName>sample string 12</ProductIdName>
<Qty>6</Qty>
<Return>8</Return>
<SaleDate>2026-02-01T10:31:02.614699-06:00</SaleDate>
<SaleDetailId>a0459aed-036c-4d77-9ea9-e83018a95371</SaleDetailId>
<SaleId>0ad59bfc-55f6-4ee7-9a91-8b49dade4a41</SaleId>
<StoreId>4f61b4f2-dc64-450f-aed5-2523694828fd</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">d971bb77-f259-4e16-9e03-6507b68423fb</CreatedBy>
<CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-02-01T10:31:02.614699-06:00</CreatedDate>
<EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">dd775e5e-6acc-4c95-8537-8501a6adbeb9</EditedBy>
<EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2026-02-01T10:31:02.614699-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>662be52e-0b3b-4c51-98d7-d39b8d78cbe7</PackingSizeId>
<PackingSizeIdName>sample string 9</PackingSizeIdName>
<PricePerPack>5</PricePerPack>
<ProductId>34189ea0-0f91-4c5b-a7f7-795f802f46f9</ProductId>
<ProductIdName>sample string 12</ProductIdName>
<Qty>6</Qty>
<Return>8</Return>
<SaleDate>2026-02-01T10:31:02.614699-06:00</SaleDate>
<SaleDetailId>a0459aed-036c-4d77-9ea9-e83018a95371</SaleDetailId>
<SaleId>0ad59bfc-55f6-4ee7-9a91-8b49dade4a41</SaleId>
<StoreId>4f61b4f2-dc64-450f-aed5-2523694828fd</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>a5a0e8d7-08ac-41df-a7c6-e3ac2f457191</SaleId>
<StoreId>5c88124b-4a45-4e44-8a96-1bfe64e8efb4</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.