POST api/SaleDetail/Create

Request Information

URI Parameters

None.

Body Parameters

SaleDetail
NameDescriptionTypeAdditional 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": "5ca25c27-2a47-4f74-8105-36e023d2207a",
  "SaleId": "9bd1d4b0-b539-4ce9-a4c8-c63191b377ab",
  "ProductId": "b43c6145-9674-45c4-888d-984ce9920dca",
  "PackingSizeId": "0f280553-a590-4e46-8b81-19c264d74c58",
  "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": "4e028105-7b57-46d0-b9ee-dc7707ecf514",
  "SaleDate": "2025-12-10T21:43:23.8513104-06:00",
  "ProductIdName": "sample string 12",
  "CreatedBy": "d45b37e7-235d-4c55-bf52-644116f0a0e3",
  "CreatedDate": "2025-12-10T21:43:23.8513104-06:00",
  "EditedBy": "494d4670-be1c-44a5-a677-7cd9ea98fc69",
  "EditedDate": "2025-12-10T21:43:23.8513104-06:00",
  "IsActive": true,
  "IsDelete": true
}

application/xml, text/xml

Sample:
<SaleDetail 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">d45b37e7-235d-4c55-bf52-644116f0a0e3</CreatedBy>
  <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2025-12-10T21:43:23.8513104-06:00</CreatedDate>
  <EditedBy xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">494d4670-be1c-44a5-a677-7cd9ea98fc69</EditedBy>
  <EditedDate xmlns="http://schemas.datacontract.org/2004/07/BlazeFarm.Core.Model">2025-12-10T21:43:23.8513104-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>0f280553-a590-4e46-8b81-19c264d74c58</PackingSizeId>
  <PackingSizeIdName>sample string 9</PackingSizeIdName>
  <PricePerPack>5</PricePerPack>
  <ProductId>b43c6145-9674-45c4-888d-984ce9920dca</ProductId>
  <ProductIdName>sample string 12</ProductIdName>
  <Qty>6</Qty>
  <Return>8</Return>
  <SaleDate>2025-12-10T21:43:23.8513104-06:00</SaleDate>
  <SaleDetailId>5ca25c27-2a47-4f74-8105-36e023d2207a</SaleDetailId>
  <SaleId>9bd1d4b0-b539-4ce9-a4c8-c63191b377ab</SaleId>
  <StoreId>4e028105-7b57-46d0-b9ee-dc7707ecf514</StoreId>
  <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>
</SaleDetail>

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.