POST api/StockistDeals
Request Information
URI Parameters
None.
Body Parameters
StockistDealsModels| Name | Description | Type | Additional information |
|---|---|---|---|
| SD_Id | integer |
None. |
|
| SD_C_Id_FK | integer |
None. |
|
| SD_DealDate | date |
Required |
|
| SD_Description | string |
Required Max length: 50 |
|
| SD_CreatedDate | date |
None. |
|
| SD_UserId_FK | string |
None. |
|
| SD_TS | string |
None. |
|
| SD_Inactive | string |
None. |
|
| SD_TS_LastEdited | string |
None. |
|
| SD_TS_Edited_Uid_FK | string |
None. |
|
| StockistSpeedSearch | StockistSpeedSearchModels |
None. |
|
| SelectedProductList | Collection of StockistDealsDetailsModels |
Required |
Request Formats
application/json, text/json
Sample:
{
"SD_Id": 1,
"SD_C_Id_FK": 2,
"SD_DealDate": "2025-10-26T08:18:28.162784+05:30",
"SD_Description": "sample string 4",
"SD_CreatedDate": "2025-10-26T08:18:28.162784+05:30",
"SD_UserId_FK": "sample string 6",
"SD_TS": "sample string 7",
"SD_Inactive": "sample string 8",
"SD_TS_LastEdited": "sample string 9",
"SD_TS_Edited_Uid_FK": "sample string 10",
"StockistSpeedSearch": {
"SK_Id": 1,
"SK_Code": "sample string 2",
"SK_Name": "sample string 3",
"SK_WH_Id_FK": 4
},
"SelectedProductList": [
{
"ProductName": "sample string 1",
"ProductCode": "sample string 2",
"PackSize": "sample string 3",
"UOM": "sample string 4",
"PackType": "sample string 5",
"CustomerPrice": 6.0,
"SDD_Id": 7,
"SDD_SD_Id_FK": 8,
"SDD_PA_Id_FK": 9,
"SDD_P_Id_FK": 10,
"SDD_DealValue": 11.0,
"SDD_DealType": "sample string 12",
"SDD_Min_Quantity": 13
},
{
"ProductName": "sample string 1",
"ProductCode": "sample string 2",
"PackSize": "sample string 3",
"UOM": "sample string 4",
"PackType": "sample string 5",
"CustomerPrice": 6.0,
"SDD_Id": 7,
"SDD_SD_Id_FK": 8,
"SDD_PA_Id_FK": 9,
"SDD_P_Id_FK": 10,
"SDD_DealValue": 11.0,
"SDD_DealType": "sample string 12",
"SDD_Min_Quantity": 13
}
]
}
application/xml, text/xml
Sample:
<StockistDealsModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
<SD_C_Id_FK>2</SD_C_Id_FK>
<SD_CreatedDate>2025-10-26T08:18:28.162784+05:30</SD_CreatedDate>
<SD_DealDate>2025-10-26T08:18:28.162784+05:30</SD_DealDate>
<SD_Description>sample string 4</SD_Description>
<SD_Id>1</SD_Id>
<SD_Inactive>sample string 8</SD_Inactive>
<SD_TS>sample string 7</SD_TS>
<SD_TS_Edited_Uid_FK>sample string 10</SD_TS_Edited_Uid_FK>
<SD_TS_LastEdited>sample string 9</SD_TS_LastEdited>
<SD_UserId_FK>sample string 6</SD_UserId_FK>
<SelectedProductList>
<StockistDealsDetailsModels>
<CustomerPrice>6</CustomerPrice>
<PackSize>sample string 3</PackSize>
<PackType>sample string 5</PackType>
<ProductCode>sample string 2</ProductCode>
<ProductName>sample string 1</ProductName>
<SDD_DealType>sample string 12</SDD_DealType>
<SDD_DealValue>11</SDD_DealValue>
<SDD_Id>7</SDD_Id>
<SDD_Min_Quantity>13</SDD_Min_Quantity>
<SDD_PA_Id_FK>9</SDD_PA_Id_FK>
<SDD_P_Id_FK>10</SDD_P_Id_FK>
<SDD_SD_Id_FK>8</SDD_SD_Id_FK>
<UOM>sample string 4</UOM>
</StockistDealsDetailsModels>
<StockistDealsDetailsModels>
<CustomerPrice>6</CustomerPrice>
<PackSize>sample string 3</PackSize>
<PackType>sample string 5</PackType>
<ProductCode>sample string 2</ProductCode>
<ProductName>sample string 1</ProductName>
<SDD_DealType>sample string 12</SDD_DealType>
<SDD_DealValue>11</SDD_DealValue>
<SDD_Id>7</SDD_Id>
<SDD_Min_Quantity>13</SDD_Min_Quantity>
<SDD_PA_Id_FK>9</SDD_PA_Id_FK>
<SDD_P_Id_FK>10</SDD_P_Id_FK>
<SDD_SD_Id_FK>8</SDD_SD_Id_FK>
<UOM>sample string 4</UOM>
</StockistDealsDetailsModels>
</SelectedProductList>
<StockistSpeedSearch xmlns:d2p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch">
<d2p1:SK_Code>sample string 2</d2p1:SK_Code>
<d2p1:SK_Id>1</d2p1:SK_Id>
<d2p1:SK_Name>sample string 3</d2p1:SK_Name>
<d2p1:SK_WH_Id_FK>4</d2p1:SK_WH_Id_FK>
</StockistSpeedSearch>
</StockistDealsModels>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.