POST api/OpenSGRN
Request Information
URI Parameters
None.
Body Parameters
OpenSGRN_Models| Name | Description | Type | Additional information |
|---|---|---|---|
| SGRN_Id | integer |
None. |
|
| SGRN_No | string |
None. |
|
| SGRN_Date | date |
None. |
|
| SGRN_SK_Id_FK | integer |
None. |
|
| PartnerDetails | PartnerSpeedSearchModels |
Required |
|
| SGRN_Note | string |
Required |
|
| ProductListForOpenSGRN | Collection of OpenSGRN_DetailsModels |
Required |
|
| SGRN_TotalAmount | decimal number |
None. |
|
| SGRN_OtherPrices | decimal number |
None. |
|
| SGRN_TotalQuantities | decimal number |
None. |
|
| SGRN_CostPerProduct | decimal number |
None. |
|
| SGRND_SellingPrice | decimal number |
None. |
|
| SGRND_Qty | integer |
None. |
|
| SalesQty | decimal number |
None. |
|
| MaxQty | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"SGRN_Id": 1,
"SGRN_No": "sample string 2",
"SGRN_Date": "2026-09-29T13:50:00.8104136+05:30",
"SGRN_SK_Id_FK": 4,
"PartnerDetails": {
"P_Id": 1,
"P_Partner_Name": "sample string 2",
"P_Code": "sample string 3",
"MP_Id": 4
},
"SGRN_Note": "sample string 5",
"ProductListForOpenSGRN": [
{
"SGRND_Id": 1,
"SGRND_SGRN_Id_FK": 2,
"Open_SGRND_P_Id_FK": 3,
"Open_SGRND_PA_Id_FK": 4,
"Open_SGRND_Qty": 5,
"Open_SGRND_Price": 6.0,
"Open_SGRND_TaxRate": 7.0,
"Open_SGRND_SellingPrice": 8.0,
"SellingPrice": 9.0,
"PacksizeCode": "sample string 10",
"PA_Barcode": "sample string 11",
"ProductName": "sample string 12",
"PackSize": "sample string 13",
"PackUOM": "sample string 14",
"PackType": "sample string 15"
},
{
"SGRND_Id": 1,
"SGRND_SGRN_Id_FK": 2,
"Open_SGRND_P_Id_FK": 3,
"Open_SGRND_PA_Id_FK": 4,
"Open_SGRND_Qty": 5,
"Open_SGRND_Price": 6.0,
"Open_SGRND_TaxRate": 7.0,
"Open_SGRND_SellingPrice": 8.0,
"SellingPrice": 9.0,
"PacksizeCode": "sample string 10",
"PA_Barcode": "sample string 11",
"ProductName": "sample string 12",
"PackSize": "sample string 13",
"PackUOM": "sample string 14",
"PackType": "sample string 15"
}
],
"SGRN_TotalAmount": 6.0,
"SGRN_OtherPrices": 7.0,
"SGRN_TotalQuantities": 8.0,
"SGRN_CostPerProduct": 9.0,
"SGRND_SellingPrice": 10.0,
"SGRND_Qty": 11,
"SalesQty": 12.0,
"MaxQty": 13
}
application/xml, text/xml
Sample:
<OpenSGRN_Models xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
<MaxQty>13</MaxQty>
<PartnerDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch">
<d2p1:MP_Id>4</d2p1:MP_Id>
<d2p1:P_Code>sample string 3</d2p1:P_Code>
<d2p1:P_Id>1</d2p1:P_Id>
<d2p1:P_Partner_Name>sample string 2</d2p1:P_Partner_Name>
</PartnerDetails>
<ProductListForOpenSGRN>
<OpenSGRN_DetailsModels>
<Open_SGRND_PA_Id_FK>4</Open_SGRND_PA_Id_FK>
<Open_SGRND_P_Id_FK>3</Open_SGRND_P_Id_FK>
<Open_SGRND_Price>6</Open_SGRND_Price>
<Open_SGRND_Qty>5</Open_SGRND_Qty>
<Open_SGRND_SellingPrice>8</Open_SGRND_SellingPrice>
<Open_SGRND_TaxRate>7</Open_SGRND_TaxRate>
<PA_Barcode>sample string 11</PA_Barcode>
<PackSize>sample string 13</PackSize>
<PackType>sample string 15</PackType>
<PackUOM>sample string 14</PackUOM>
<PacksizeCode>sample string 10</PacksizeCode>
<ProductName>sample string 12</ProductName>
<SGRND_Id>1</SGRND_Id>
<SGRND_SGRN_Id_FK>2</SGRND_SGRN_Id_FK>
<SellingPrice>9</SellingPrice>
</OpenSGRN_DetailsModels>
<OpenSGRN_DetailsModels>
<Open_SGRND_PA_Id_FK>4</Open_SGRND_PA_Id_FK>
<Open_SGRND_P_Id_FK>3</Open_SGRND_P_Id_FK>
<Open_SGRND_Price>6</Open_SGRND_Price>
<Open_SGRND_Qty>5</Open_SGRND_Qty>
<Open_SGRND_SellingPrice>8</Open_SGRND_SellingPrice>
<Open_SGRND_TaxRate>7</Open_SGRND_TaxRate>
<PA_Barcode>sample string 11</PA_Barcode>
<PackSize>sample string 13</PackSize>
<PackType>sample string 15</PackType>
<PackUOM>sample string 14</PackUOM>
<PacksizeCode>sample string 10</PacksizeCode>
<ProductName>sample string 12</ProductName>
<SGRND_Id>1</SGRND_Id>
<SGRND_SGRN_Id_FK>2</SGRND_SGRN_Id_FK>
<SellingPrice>9</SellingPrice>
</OpenSGRN_DetailsModels>
</ProductListForOpenSGRN>
<SGRND_Qty>11</SGRND_Qty>
<SGRND_SellingPrice>10</SGRND_SellingPrice>
<SGRN_CostPerProduct>9</SGRN_CostPerProduct>
<SGRN_Date>2026-09-29T13:50:00.8104136+05:30</SGRN_Date>
<SGRN_Id>1</SGRN_Id>
<SGRN_No>sample string 2</SGRN_No>
<SGRN_Note>sample string 5</SGRN_Note>
<SGRN_OtherPrices>7</SGRN_OtherPrices>
<SGRN_SK_Id_FK>4</SGRN_SK_Id_FK>
<SGRN_TotalAmount>6</SGRN_TotalAmount>
<SGRN_TotalQuantities>8</SGRN_TotalQuantities>
<SalesQty>12</SalesQty>
</OpenSGRN_Models>
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.