POST api/cntstockexp

Request Information

URI Parameters

None.

Body Parameters

CntStkImpRQT
NameDescriptionTypeAdditional information
IDUSer

integer

None.

IDRol

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "IDUSer": 1,
  "IDRol": 2
}

text/xml

Sample:
<CntStkImpRQT xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ContransAPI.Models">
  <IDRol>2</IDRol>
  <IDUSer>1</IDUSer>
</CntStkImpRQT>

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 'CntStkImpRQT'.

Response Information

Resource Description

CntStkImpRPS
NameDescriptionTypeAdditional information
CNTSTK_TOT

integer

None.

CNTSTK_20

integer

None.

CNTSTK_40

integer

None.

CNTSTK_20ST

integer

None.

CNTSTK_20OT

integer

None.

CNTSTK_40ST

integer

None.

CNTSTK_40HC

integer

None.

CNTSTK_40OT

integer

None.

CNTSTK_ME15

integer

None.

CNTSTK_1530

integer

None.

CNTSTK_MA30

integer

None.

CNTSTK_ALR

integer

None.

CNTSTK_ALA

integer

None.

CNTSTK_ALV

integer

None.

CNTSTK_ALG

integer

None.

CNTSTK_EN

Collection of CntStkImpCleRPS

None.

Response Formats

application/json, text/json

Sample:
{
  "CNTSTK_TOT": 1,
  "CNTSTK_20": 2,
  "CNTSTK_40": 3,
  "CNTSTK_20ST": 4,
  "CNTSTK_20OT": 5,
  "CNTSTK_40ST": 6,
  "CNTSTK_40HC": 7,
  "CNTSTK_40OT": 8,
  "CNTSTK_ME15": 9,
  "CNTSTK_1530": 10,
  "CNTSTK_MA30": 11,
  "CNTSTK_ALR": 12,
  "CNTSTK_ALA": 13,
  "CNTSTK_ALV": 14,
  "CNTSTK_ALG": 15,
  "CNTSTK_EN": [
    {
      "IdEntidad": "sample string 1",
      "NombreEntidad": "sample string 2",
      "CNTSTK": 3
    },
    {
      "IdEntidad": "sample string 1",
      "NombreEntidad": "sample string 2",
      "CNTSTK": 3
    }
  ]
}

text/xml

Sample:
<CntStkImpRPS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ContransAPI.Models">
  <CNTSTK_1530>10</CNTSTK_1530>
  <CNTSTK_20>2</CNTSTK_20>
  <CNTSTK_20OT>5</CNTSTK_20OT>
  <CNTSTK_20ST>4</CNTSTK_20ST>
  <CNTSTK_40>3</CNTSTK_40>
  <CNTSTK_40HC>7</CNTSTK_40HC>
  <CNTSTK_40OT>8</CNTSTK_40OT>
  <CNTSTK_40ST>6</CNTSTK_40ST>
  <CNTSTK_ALA>13</CNTSTK_ALA>
  <CNTSTK_ALG>15</CNTSTK_ALG>
  <CNTSTK_ALR>12</CNTSTK_ALR>
  <CNTSTK_ALV>14</CNTSTK_ALV>
  <CNTSTK_EN>
    <CntStkImpCleRPS>
      <CNTSTK>3</CNTSTK>
      <IdEntidad>sample string 1</IdEntidad>
      <NombreEntidad>sample string 2</NombreEntidad>
    </CntStkImpCleRPS>
    <CntStkImpCleRPS>
      <CNTSTK>3</CNTSTK>
      <IdEntidad>sample string 1</IdEntidad>
      <NombreEntidad>sample string 2</NombreEntidad>
    </CntStkImpCleRPS>
  </CNTSTK_EN>
  <CNTSTK_MA30>11</CNTSTK_MA30>
  <CNTSTK_ME15>9</CNTSTK_ME15>
  <CNTSTK_TOT>1</CNTSTK_TOT>
</CntStkImpRPS>