POST api/Sale/Edit

Request Information

URI Parameters

None.

Body Parameters

Sale
NameDescriptionTypeAdditional 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": "9e536bf3-fb5f-41ab-9b3f-ebea7d995c27",
  "StoreId": "2014f9ea-2c60-4d1d-970e-d191e07ccba7",
  "SaleDate": "2025-12-10T21:43:53.3205514-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": "cb7a04f1-927a-4446-afe5-fa49f2c5318b",
      "SaleId": "c083244a-1a99-4100-bf32-4f1a561653f1",
      "ProductId": "5b7b8889-d084-40c1-8e95-d4e625dd1592",
      "PackingSizeId": "cb2135d2-0812-4d00-a075-f6200e14f21c",
      "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": "b2fd0947-58e4-42ef-98df-e51069357206",
      "SaleDate": "2025-12-10T21:43:53.3205514-06:00",
      "ProductIdName": "sample string 12",
      "CreatedBy": "1056ca8b-5777-4fc6-9643-400351d009f6",
      "CreatedDate": "2025-12-10T21:43:53.3205514-06:00",
      "EditedBy": "e0f76919-5379-4d22-975a-b48c19b2c2ad",
      "EditedDate": "2025-12-10T21:43:53.3205514-06:00",
      "IsActive": true,
      "IsDelete": true
    },
    {
      "SaleDetailId": "cb7a04f1-927a-4446-afe5-fa49f2c5318b",
      "SaleId": "c083244a-1a99-4100-bf32-4f1a561653f1",
      "ProductId": "5b7b8889-d084-40c1-8e95-d4e625dd1592",
      "PackingSizeId": "cb2135d2-0812-4d00-a075-f6200e14f21c",
      "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": "b2fd0947-58e4-42ef-98df-e51069357206",
      "SaleDate": "2025-12-10T21:43:53.3205514-06:00",
      "ProductIdName": "sample string 12",
      "CreatedBy": "1056ca8b-5777-4fc6-9643-400351d009f6",
      "CreatedDate": "2025-12-10T21:43:53.3205514-06:00",
      "EditedBy": "e0f76919-5379-4d22-975a-b48c19b2c2ad",
      "EditedDate": "2025-12-10T21:43:53.3205514-06:00",
      "IsActive": true,
      "IsDelete": true
    }
  ],
  "CreatedBy": "00a2a332-1c80-486e-9b54-f25a8260b84c",
  "CreatedDate": "2025-12-10T21:43:53.3205514-06:00",
  "EditedBy": "3da0e869-8cfd-4807-b824-e1023a3e0193",
  "EditedDate": "2025-12-10T21:43:53.3205514-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">00a2a332-1c80-486e-9b54-f25a8260b84c</CreatedBy>
  <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2025-12-10T21:43:53.3205514-06:00</CreatedDate>
  <EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">3da0e869-8cfd-4807-b824-e1023a3e0193</EditedBy>
  <EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2025-12-10T21:43:53.3205514-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>2025-12-10T21:43:53.3205514-06:00</SaleDate>
  <SaleDetailList>
    <SaleDetail>
      <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">1056ca8b-5777-4fc6-9643-400351d009f6</CreatedBy>
      <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2025-12-10T21:43:53.3205514-06:00</CreatedDate>
      <EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">e0f76919-5379-4d22-975a-b48c19b2c2ad</EditedBy>
      <EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2025-12-10T21:43:53.3205514-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>cb2135d2-0812-4d00-a075-f6200e14f21c</PackingSizeId>
      <PackingSizeIdName>sample string 9</PackingSizeIdName>
      <PricePerPack>5</PricePerPack>
      <ProductId>5b7b8889-d084-40c1-8e95-d4e625dd1592</ProductId>
      <ProductIdName>sample string 12</ProductIdName>
      <Qty>6</Qty>
      <Return>8</Return>
      <SaleDate>2025-12-10T21:43:53.3205514-06:00</SaleDate>
      <SaleDetailId>cb7a04f1-927a-4446-afe5-fa49f2c5318b</SaleDetailId>
      <SaleId>c083244a-1a99-4100-bf32-4f1a561653f1</SaleId>
      <StoreId>b2fd0947-58e4-42ef-98df-e51069357206</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">1056ca8b-5777-4fc6-9643-400351d009f6</CreatedBy>
      <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2025-12-10T21:43:53.3205514-06:00</CreatedDate>
      <EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">e0f76919-5379-4d22-975a-b48c19b2c2ad</EditedBy>
      <EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2025-12-10T21:43:53.3205514-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>cb2135d2-0812-4d00-a075-f6200e14f21c</PackingSizeId>
      <PackingSizeIdName>sample string 9</PackingSizeIdName>
      <PricePerPack>5</PricePerPack>
      <ProductId>5b7b8889-d084-40c1-8e95-d4e625dd1592</ProductId>
      <ProductIdName>sample string 12</ProductIdName>
      <Qty>6</Qty>
      <Return>8</Return>
      <SaleDate>2025-12-10T21:43:53.3205514-06:00</SaleDate>
      <SaleDetailId>cb7a04f1-927a-4446-afe5-fa49f2c5318b</SaleDetailId>
      <SaleId>c083244a-1a99-4100-bf32-4f1a561653f1</SaleId>
      <StoreId>b2fd0947-58e4-42ef-98df-e51069357206</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>9e536bf3-fb5f-41ab-9b3f-ebea7d995c27</SaleId>
  <StoreId>2014f9ea-2c60-4d1d-970e-d191e07ccba7</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

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.