POST api/master/editSlab?slabType={slabType}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
slabType

string

Required

Body Parameters

Show_all_slab
NameDescriptionTypeAdditional information
DTH

DTH

None.

Slab_DTH

Collection of DTH

None.

Slab_prepaid

Collection of DTH

None.

Slab_DthBooking

Collection of DTH

None.

Slab_Electricity

Collection of ELE

None.

Slab_Gas

Collection of ELE

None.

Slab_Broadband

Collection of ELE

None.

slab_insurance

Collection of ELE

None.

slab_landline

Collection of ELE

None.

slab_Postpaid

Collection of ELE

None.

Slab_Water

Collection of ELE

None.

Slab_PanCard

Collection of pan

None.

Slab_Money

Collection of money

None.

Slab_IndoNepal

Collection of money

None.

Request Formats

application/json, text/json

Sample:
{
  "DTH": {
    "idno": 1,
    "slabname": "sample string 2",
    "slabfor": "sample string 3",
    "commission": 4.0,
    "OperatorName": "sample string 5"
  },
  "Slab_DTH": [
    {
      "idno": 1,
      "slabname": "sample string 2",
      "slabfor": "sample string 3",
      "commission": 4.0,
      "OperatorName": "sample string 5"
    },
    {
      "idno": 1,
      "slabname": "sample string 2",
      "slabfor": "sample string 3",
      "commission": 4.0,
      "OperatorName": "sample string 5"
    }
  ],
  "Slab_prepaid": [
    {
      "idno": 1,
      "slabname": "sample string 2",
      "slabfor": "sample string 3",
      "commission": 4.0,
      "OperatorName": "sample string 5"
    },
    {
      "idno": 1,
      "slabname": "sample string 2",
      "slabfor": "sample string 3",
      "commission": 4.0,
      "OperatorName": "sample string 5"
    }
  ],
  "Slab_DthBooking": [
    {
      "idno": 1,
      "slabname": "sample string 2",
      "slabfor": "sample string 3",
      "commission": 4.0,
      "OperatorName": "sample string 5"
    },
    {
      "idno": 1,
      "slabname": "sample string 2",
      "slabfor": "sample string 3",
      "commission": 4.0,
      "OperatorName": "sample string 5"
    }
  ],
  "Slab_Electricity": [
    {
      "idno": 1,
      "slabname": "sample string 2",
      "comm1": 1.0,
      "comm2": 1.0,
      "comm3": 1.0,
      "comm4": 1.0,
      "cashback1": 1.0,
      "cashback2": 1.0,
      "cashback3": 1.0,
      "OperatorName": "sample string 3",
      "slabfor": "sample string 4"
    },
    {
      "idno": 1,
      "slabname": "sample string 2",
      "comm1": 1.0,
      "comm2": 1.0,
      "comm3": 1.0,
      "comm4": 1.0,
      "cashback1": 1.0,
      "cashback2": 1.0,
      "cashback3": 1.0,
      "OperatorName": "sample string 3",
      "slabfor": "sample string 4"
    }
  ],
  "Slab_Gas": [
    {
      "idno": 1,
      "slabname": "sample string 2",
      "comm1": 1.0,
      "comm2": 1.0,
      "comm3": 1.0,
      "comm4": 1.0,
      "cashback1": 1.0,
      "cashback2": 1.0,
      "cashback3": 1.0,
      "OperatorName": "sample string 3",
      "slabfor": "sample string 4"
    },
    {
      "idno": 1,
      "slabname": "sample string 2",
      "comm1": 1.0,
      "comm2": 1.0,
      "comm3": 1.0,
      "comm4": 1.0,
      "cashback1": 1.0,
      "cashback2": 1.0,
      "cashback3": 1.0,
      "OperatorName": "sample string 3",
      "slabfor": "sample string 4"
    }
  ],
  "Slab_Broadband": [
    {
      "idno": 1,
      "slabname": "sample string 2",
      "comm1": 1.0,
      "comm2": 1.0,
      "comm3": 1.0,
      "comm4": 1.0,
      "cashback1": 1.0,
      "cashback2": 1.0,
      "cashback3": 1.0,
      "OperatorName": "sample string 3",
      "slabfor": "sample string 4"
    },
    {
      "idno": 1,
      "slabname": "sample string 2",
      "comm1": 1.0,
      "comm2": 1.0,
      "comm3": 1.0,
      "comm4": 1.0,
      "cashback1": 1.0,
      "cashback2": 1.0,
      "cashback3": 1.0,
      "OperatorName": "sample string 3",
      "slabfor": "sample string 4"
    }
  ],
  "slab_insurance": [
    {
      "idno": 1,
      "slabname": "sample string 2",
      "comm1": 1.0,
      "comm2": 1.0,
      "comm3": 1.0,
      "comm4": 1.0,
      "cashback1": 1.0,
      "cashback2": 1.0,
      "cashback3": 1.0,
      "OperatorName": "sample string 3",
      "slabfor": "sample string 4"
    },
    {
      "idno": 1,
      "slabname": "sample string 2",
      "comm1": 1.0,
      "comm2": 1.0,
      "comm3": 1.0,
      "comm4": 1.0,
      "cashback1": 1.0,
      "cashback2": 1.0,
      "cashback3": 1.0,
      "OperatorName": "sample string 3",
      "slabfor": "sample string 4"
    }
  ],
  "slab_landline": [
    {
      "idno": 1,
      "slabname": "sample string 2",
      "comm1": 1.0,
      "comm2": 1.0,
      "comm3": 1.0,
      "comm4": 1.0,
      "cashback1": 1.0,
      "cashback2": 1.0,
      "cashback3": 1.0,
      "OperatorName": "sample string 3",
      "slabfor": "sample string 4"
    },
    {
      "idno": 1,
      "slabname": "sample string 2",
      "comm1": 1.0,
      "comm2": 1.0,
      "comm3": 1.0,
      "comm4": 1.0,
      "cashback1": 1.0,
      "cashback2": 1.0,
      "cashback3": 1.0,
      "OperatorName": "sample string 3",
      "slabfor": "sample string 4"
    }
  ],
  "slab_Postpaid": [
    {
      "idno": 1,
      "slabname": "sample string 2",
      "comm1": 1.0,
      "comm2": 1.0,
      "comm3": 1.0,
      "comm4": 1.0,
      "cashback1": 1.0,
      "cashback2": 1.0,
      "cashback3": 1.0,
      "OperatorName": "sample string 3",
      "slabfor": "sample string 4"
    },
    {
      "idno": 1,
      "slabname": "sample string 2",
      "comm1": 1.0,
      "comm2": 1.0,
      "comm3": 1.0,
      "comm4": 1.0,
      "cashback1": 1.0,
      "cashback2": 1.0,
      "cashback3": 1.0,
      "OperatorName": "sample string 3",
      "slabfor": "sample string 4"
    }
  ],
  "Slab_Water": [
    {
      "idno": 1,
      "slabname": "sample string 2",
      "comm1": 1.0,
      "comm2": 1.0,
      "comm3": 1.0,
      "comm4": 1.0,
      "cashback1": 1.0,
      "cashback2": 1.0,
      "cashback3": 1.0,
      "OperatorName": "sample string 3",
      "slabfor": "sample string 4"
    },
    {
      "idno": 1,
      "slabname": "sample string 2",
      "comm1": 1.0,
      "comm2": 1.0,
      "comm3": 1.0,
      "comm4": 1.0,
      "cashback1": 1.0,
      "cashback2": 1.0,
      "cashback3": 1.0,
      "OperatorName": "sample string 3",
      "slabfor": "sample string 4"
    }
  ],
  "Slab_PanCard": [
    {
      "idno": 1,
      "slabname": "sample string 2",
      "OperatorName": "sample string 3",
      "tokenval": 1.0,
      "Commission": 1.0,
      "cashback": 1.0,
      "slabfor": "sample string 4"
    },
    {
      "idno": 1,
      "slabname": "sample string 2",
      "OperatorName": "sample string 3",
      "tokenval": 1.0,
      "Commission": 1.0,
      "cashback": 1.0,
      "slabfor": "sample string 4"
    }
  ],
  "Slab_Money": [
    {
      "idno": 1,
      "slabname": "sample string 2",
      "type": "sample string 3",
      "OperatorName": "sample string 4",
      "min": 1,
      "max": 1,
      "comm": 1.0,
      "CashBack": 1.0,
      "slabfor": "sample string 5"
    },
    {
      "idno": 1,
      "slabname": "sample string 2",
      "type": "sample string 3",
      "OperatorName": "sample string 4",
      "min": 1,
      "max": 1,
      "comm": 1.0,
      "CashBack": 1.0,
      "slabfor": "sample string 5"
    }
  ],
  "Slab_IndoNepal": [
    {
      "idno": 1,
      "slabname": "sample string 2",
      "type": "sample string 3",
      "OperatorName": "sample string 4",
      "min": 1,
      "max": 1,
      "comm": 1.0,
      "CashBack": 1.0,
      "slabfor": "sample string 5"
    },
    {
      "idno": 1,
      "slabname": "sample string 2",
      "type": "sample string 3",
      "OperatorName": "sample string 4",
      "min": 1,
      "max": 1,
      "comm": 1.0,
      "CashBack": 1.0,
      "slabfor": "sample string 5"
    }
  ]
}

application/xml, text/xml

Sample:
<Show_all_slab xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WhiteLabelApp.Models">
  <DTH>
    <OperatorName>sample string 5</OperatorName>
    <commission>4</commission>
    <idno>1</idno>
    <slabfor>sample string 3</slabfor>
    <slabname>sample string 2</slabname>
  </DTH>
  <Slab_Broadband>
    <ELE>
      <OperatorName>sample string 3</OperatorName>
      <cashback1>1</cashback1>
      <cashback2>1</cashback2>
      <cashback3>1</cashback3>
      <comm1>1</comm1>
      <comm2>1</comm2>
      <comm3>1</comm3>
      <comm4>1</comm4>
      <idno>1</idno>
      <slabfor>sample string 4</slabfor>
      <slabname>sample string 2</slabname>
    </ELE>
    <ELE>
      <OperatorName>sample string 3</OperatorName>
      <cashback1>1</cashback1>
      <cashback2>1</cashback2>
      <cashback3>1</cashback3>
      <comm1>1</comm1>
      <comm2>1</comm2>
      <comm3>1</comm3>
      <comm4>1</comm4>
      <idno>1</idno>
      <slabfor>sample string 4</slabfor>
      <slabname>sample string 2</slabname>
    </ELE>
  </Slab_Broadband>
  <Slab_DTH>
    <DTH>
      <OperatorName>sample string 5</OperatorName>
      <commission>4</commission>
      <idno>1</idno>
      <slabfor>sample string 3</slabfor>
      <slabname>sample string 2</slabname>
    </DTH>
    <DTH>
      <OperatorName>sample string 5</OperatorName>
      <commission>4</commission>
      <idno>1</idno>
      <slabfor>sample string 3</slabfor>
      <slabname>sample string 2</slabname>
    </DTH>
  </Slab_DTH>
  <Slab_DthBooking>
    <DTH>
      <OperatorName>sample string 5</OperatorName>
      <commission>4</commission>
      <idno>1</idno>
      <slabfor>sample string 3</slabfor>
      <slabname>sample string 2</slabname>
    </DTH>
    <DTH>
      <OperatorName>sample string 5</OperatorName>
      <commission>4</commission>
      <idno>1</idno>
      <slabfor>sample string 3</slabfor>
      <slabname>sample string 2</slabname>
    </DTH>
  </Slab_DthBooking>
  <Slab_Electricity>
    <ELE>
      <OperatorName>sample string 3</OperatorName>
      <cashback1>1</cashback1>
      <cashback2>1</cashback2>
      <cashback3>1</cashback3>
      <comm1>1</comm1>
      <comm2>1</comm2>
      <comm3>1</comm3>
      <comm4>1</comm4>
      <idno>1</idno>
      <slabfor>sample string 4</slabfor>
      <slabname>sample string 2</slabname>
    </ELE>
    <ELE>
      <OperatorName>sample string 3</OperatorName>
      <cashback1>1</cashback1>
      <cashback2>1</cashback2>
      <cashback3>1</cashback3>
      <comm1>1</comm1>
      <comm2>1</comm2>
      <comm3>1</comm3>
      <comm4>1</comm4>
      <idno>1</idno>
      <slabfor>sample string 4</slabfor>
      <slabname>sample string 2</slabname>
    </ELE>
  </Slab_Electricity>
  <Slab_Gas>
    <ELE>
      <OperatorName>sample string 3</OperatorName>
      <cashback1>1</cashback1>
      <cashback2>1</cashback2>
      <cashback3>1</cashback3>
      <comm1>1</comm1>
      <comm2>1</comm2>
      <comm3>1</comm3>
      <comm4>1</comm4>
      <idno>1</idno>
      <slabfor>sample string 4</slabfor>
      <slabname>sample string 2</slabname>
    </ELE>
    <ELE>
      <OperatorName>sample string 3</OperatorName>
      <cashback1>1</cashback1>
      <cashback2>1</cashback2>
      <cashback3>1</cashback3>
      <comm1>1</comm1>
      <comm2>1</comm2>
      <comm3>1</comm3>
      <comm4>1</comm4>
      <idno>1</idno>
      <slabfor>sample string 4</slabfor>
      <slabname>sample string 2</slabname>
    </ELE>
  </Slab_Gas>
  <Slab_IndoNepal>
    <money>
      <CashBack>1</CashBack>
      <OperatorName>sample string 4</OperatorName>
      <comm>1</comm>
      <idno>1</idno>
      <max>1</max>
      <min>1</min>
      <slabfor>sample string 5</slabfor>
      <slabname>sample string 2</slabname>
      <type>sample string 3</type>
    </money>
    <money>
      <CashBack>1</CashBack>
      <OperatorName>sample string 4</OperatorName>
      <comm>1</comm>
      <idno>1</idno>
      <max>1</max>
      <min>1</min>
      <slabfor>sample string 5</slabfor>
      <slabname>sample string 2</slabname>
      <type>sample string 3</type>
    </money>
  </Slab_IndoNepal>
  <Slab_Money>
    <money>
      <CashBack>1</CashBack>
      <OperatorName>sample string 4</OperatorName>
      <comm>1</comm>
      <idno>1</idno>
      <max>1</max>
      <min>1</min>
      <slabfor>sample string 5</slabfor>
      <slabname>sample string 2</slabname>
      <type>sample string 3</type>
    </money>
    <money>
      <CashBack>1</CashBack>
      <OperatorName>sample string 4</OperatorName>
      <comm>1</comm>
      <idno>1</idno>
      <max>1</max>
      <min>1</min>
      <slabfor>sample string 5</slabfor>
      <slabname>sample string 2</slabname>
      <type>sample string 3</type>
    </money>
  </Slab_Money>
  <Slab_PanCard>
    <pan>
      <Commission>1</Commission>
      <OperatorName>sample string 3</OperatorName>
      <cashback>1</cashback>
      <idno>1</idno>
      <slabfor>sample string 4</slabfor>
      <slabname>sample string 2</slabname>
      <tokenval>1</tokenval>
    </pan>
    <pan>
      <Commission>1</Commission>
      <OperatorName>sample string 3</OperatorName>
      <cashback>1</cashback>
      <idno>1</idno>
      <slabfor>sample string 4</slabfor>
      <slabname>sample string 2</slabname>
      <tokenval>1</tokenval>
    </pan>
  </Slab_PanCard>
  <Slab_Water>
    <ELE>
      <OperatorName>sample string 3</OperatorName>
      <cashback1>1</cashback1>
      <cashback2>1</cashback2>
      <cashback3>1</cashback3>
      <comm1>1</comm1>
      <comm2>1</comm2>
      <comm3>1</comm3>
      <comm4>1</comm4>
      <idno>1</idno>
      <slabfor>sample string 4</slabfor>
      <slabname>sample string 2</slabname>
    </ELE>
    <ELE>
      <OperatorName>sample string 3</OperatorName>
      <cashback1>1</cashback1>
      <cashback2>1</cashback2>
      <cashback3>1</cashback3>
      <comm1>1</comm1>
      <comm2>1</comm2>
      <comm3>1</comm3>
      <comm4>1</comm4>
      <idno>1</idno>
      <slabfor>sample string 4</slabfor>
      <slabname>sample string 2</slabname>
    </ELE>
  </Slab_Water>
  <Slab_prepaid>
    <DTH>
      <OperatorName>sample string 5</OperatorName>
      <commission>4</commission>
      <idno>1</idno>
      <slabfor>sample string 3</slabfor>
      <slabname>sample string 2</slabname>
    </DTH>
    <DTH>
      <OperatorName>sample string 5</OperatorName>
      <commission>4</commission>
      <idno>1</idno>
      <slabfor>sample string 3</slabfor>
      <slabname>sample string 2</slabname>
    </DTH>
  </Slab_prepaid>
  <slab_Postpaid>
    <ELE>
      <OperatorName>sample string 3</OperatorName>
      <cashback1>1</cashback1>
      <cashback2>1</cashback2>
      <cashback3>1</cashback3>
      <comm1>1</comm1>
      <comm2>1</comm2>
      <comm3>1</comm3>
      <comm4>1</comm4>
      <idno>1</idno>
      <slabfor>sample string 4</slabfor>
      <slabname>sample string 2</slabname>
    </ELE>
    <ELE>
      <OperatorName>sample string 3</OperatorName>
      <cashback1>1</cashback1>
      <cashback2>1</cashback2>
      <cashback3>1</cashback3>
      <comm1>1</comm1>
      <comm2>1</comm2>
      <comm3>1</comm3>
      <comm4>1</comm4>
      <idno>1</idno>
      <slabfor>sample string 4</slabfor>
      <slabname>sample string 2</slabname>
    </ELE>
  </slab_Postpaid>
  <slab_insurance>
    <ELE>
      <OperatorName>sample string 3</OperatorName>
      <cashback1>1</cashback1>
      <cashback2>1</cashback2>
      <cashback3>1</cashback3>
      <comm1>1</comm1>
      <comm2>1</comm2>
      <comm3>1</comm3>
      <comm4>1</comm4>
      <idno>1</idno>
      <slabfor>sample string 4</slabfor>
      <slabname>sample string 2</slabname>
    </ELE>
    <ELE>
      <OperatorName>sample string 3</OperatorName>
      <cashback1>1</cashback1>
      <cashback2>1</cashback2>
      <cashback3>1</cashback3>
      <comm1>1</comm1>
      <comm2>1</comm2>
      <comm3>1</comm3>
      <comm4>1</comm4>
      <idno>1</idno>
      <slabfor>sample string 4</slabfor>
      <slabname>sample string 2</slabname>
    </ELE>
  </slab_insurance>
  <slab_landline>
    <ELE>
      <OperatorName>sample string 3</OperatorName>
      <cashback1>1</cashback1>
      <cashback2>1</cashback2>
      <cashback3>1</cashback3>
      <comm1>1</comm1>
      <comm2>1</comm2>
      <comm3>1</comm3>
      <comm4>1</comm4>
      <idno>1</idno>
      <slabfor>sample string 4</slabfor>
      <slabname>sample string 2</slabname>
    </ELE>
    <ELE>
      <OperatorName>sample string 3</OperatorName>
      <cashback1>1</cashback1>
      <cashback2>1</cashback2>
      <cashback3>1</cashback3>
      <comm1>1</comm1>
      <comm2>1</comm2>
      <comm3>1</comm3>
      <comm4>1</comm4>
      <idno>1</idno>
      <slabfor>sample string 4</slabfor>
      <slabname>sample string 2</slabname>
    </ELE>
  </slab_landline>
</Show_all_slab>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Show_all_slab'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.