POST api/Margin/InsertUpdateDelete
Request Information
URI Parameters
None.
Body Parameters
MarginModel| Name | Description | Type | Additional information |
|---|---|---|---|
| MarginId | integer |
None. |
|
| MarginListId | string |
None. |
|
| MarginListName | string |
None. |
|
| MRP_NRPBased | integer |
None. |
|
| IsMRP | boolean |
None. |
|
| IsActive | boolean |
None. |
|
| AutoCompleteRequest | boolean |
None. |
|
| FirstRec | integer |
None. |
|
| LastRec | integer |
None. |
|
| SortColumn | string |
None. |
|
| SortOrder | string |
None. |
|
| RequestType | integer |
None. |
|
| GridJson | string |
None. |
|
| Grid | MarginProductGrid |
None. |
|
| Message | APIResponse |
None. |
|
| SecretKey | string |
None. |
|
| Token | string |
None. |
|
| EnterprisesCode | string |
None. |
|
| ModeluSelection | string |
None. |
|
| CallFrom | string |
None. |
|
| IsAllowedRequest | boolean |
None. |
|
| IsInMaintenance | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"MarginId": 1,
"MarginListId": "sample string 2",
"MarginListName": "sample string 3",
"MRP_NRPBased": 4,
"IsMRP": true,
"IsActive": true,
"AutoCompleteRequest": true,
"FirstRec": 8,
"LastRec": 9,
"SortColumn": "sample string 10",
"SortOrder": "sample string 11",
"RequestType": 12,
"GridJson": "sample string 13",
"Grid": {
"MarginProducts": [
{
"SrNo": 1,
"ProductName": "sample string 2",
"ProductId": 3,
"PID": "sample string 4",
"Retailer": 5.0,
"Dealer": 6.0,
"SuperStockist": 7.0,
"CF": 8.0,
"GSTCompany": 9.0,
"GSTRetailer": 10.0
},
{
"SrNo": 1,
"ProductName": "sample string 2",
"ProductId": 3,
"PID": "sample string 4",
"Retailer": 5.0,
"Dealer": 6.0,
"SuperStockist": 7.0,
"CF": 8.0,
"GSTCompany": 9.0,
"GSTRetailer": 10.0
}
]
},
"Message": {
"ResponseCode": 1,
"ResponseMessage": "sample string 2"
},
"SecretKey": "sample string 14",
"Token": "sample string 15",
"EnterprisesCode": "sample string 16",
"ModeluSelection": "sample string 17",
"CallFrom": "sample string 18",
"IsAllowedRequest": true,
"IsInMaintenance": true
}
application/xml, text/xml
Sample:
<MarginModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZipDMSModels">
<CallFrom>sample string 18</CallFrom>
<EnterprisesCode>sample string 16</EnterprisesCode>
<IsAllowedRequest>true</IsAllowedRequest>
<IsInMaintenance>true</IsInMaintenance>
<Message>
<ResponseCode>1</ResponseCode>
<ResponseMessage>sample string 2</ResponseMessage>
</Message>
<ModeluSelection>sample string 17</ModeluSelection>
<SecretKey>sample string 14</SecretKey>
<Token>sample string 15</Token>
<AutoCompleteRequest>true</AutoCompleteRequest>
<FirstRec>8</FirstRec>
<Grid>
<MarginProducts>
<MarginProductRow>
<CF>8</CF>
<Dealer>6</Dealer>
<GSTCompany>9</GSTCompany>
<GSTRetailer>10</GSTRetailer>
<PID>sample string 4</PID>
<ProductId>3</ProductId>
<ProductName>sample string 2</ProductName>
<Retailer>5</Retailer>
<SrNo>1</SrNo>
<SuperStockist>7</SuperStockist>
</MarginProductRow>
<MarginProductRow>
<CF>8</CF>
<Dealer>6</Dealer>
<GSTCompany>9</GSTCompany>
<GSTRetailer>10</GSTRetailer>
<PID>sample string 4</PID>
<ProductId>3</ProductId>
<ProductName>sample string 2</ProductName>
<Retailer>5</Retailer>
<SrNo>1</SrNo>
<SuperStockist>7</SuperStockist>
</MarginProductRow>
</MarginProducts>
</Grid>
<GridJson>sample string 13</GridJson>
<IsActive>true</IsActive>
<IsMRP>true</IsMRP>
<LastRec>9</LastRec>
<MRP_NRPBased>4</MRP_NRPBased>
<MarginId>1</MarginId>
<MarginListId>sample string 2</MarginListId>
<MarginListName>sample string 3</MarginListName>
<RequestType>12</RequestType>
<SortColumn>sample string 10</SortColumn>
<SortOrder>sample string 11</SortOrder>
</MarginModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |