POST api/EditIncomeDetail

Request Information

URI Parameters

None.

Body Parameters

IncomeDetailAddEditRequest
NameDescriptionTypeAdditional information
IdIncome

integer

None.

IdProduct

integer

None.

Quantity

integer

None.

DistributedQuantity

integer

None.

PendingQuantity

integer

None.

IsDistributed

boolean

None.

Id

integer

None.

User

string

None.

UserId

integer

None.

ValidationKey

string

None.

Request Formats

application/json, text/json

Sample:
{
  "idIncome": 1,
  "idProduct": 2,
  "quantity": 3,
  "distributedQuantity": 4,
  "pendingQuantity": 5,
  "isDistributed": true,
  "id": 7,
  "user": "sample string 8",
  "userId": 9,
  "validationKey": "sample string 10"
}

application/xml, text/xml

Sample:
<IncomeDetailAddEditRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request.IncomeDetail">
  <User xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">sample string 8</User>
  <UserId xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">9</UserId>
  <ValidationKey xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">sample string 10</ValidationKey>
  <Id xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">7</Id>
  <DistributedQuantity>4</DistributedQuantity>
  <IdIncome>1</IdIncome>
  <IdProduct>2</IdProduct>
  <IsDistributed>true</IsDistributed>
  <PendingQuantity>5</PendingQuantity>
  <Quantity>3</Quantity>
</IncomeDetailAddEditRequest>

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

Response Information

Resource Description

Response
NameDescriptionTypeAdditional information
ResultCode

integer

None.

ResultMessage

string

None.

ErrorMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "resultCode": 1,
  "resultMessage": "sample string 2",
  "errorMessage": "sample string 3"
}

application/xml, text/xml

Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">
  <ErrorMessage>sample string 3</ErrorMessage>
  <ResultCode>1</ResultCode>
  <ResultMessage>sample string 2</ResultMessage>
</Response>