POST api/AddOutcomeDetail

Request Information

URI Parameters

None.

Body Parameters

OutcomeDetailAddEditRequest
NameDescriptionTypeAdditional information
IdOutcome

integer

None.

IdProduct

integer

None.

Quantity

integer

None.

DispatchedQuantity

integer

None.

PendingQuantity

integer

None.

IsDispatched

boolean

None.

Id

integer

None.

User

string

None.

UserId

integer

None.

ValidationKey

string

None.

Request Formats

application/json, text/json

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

application/xml, text/xml

Sample:
<OutcomeDetailAddEditRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request.OutcomeDetail">
  <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>
  <DispatchedQuantity>4</DispatchedQuantity>
  <IdOutcome>1</IdOutcome>
  <IdProduct>2</IdProduct>
  <IsDispatched>true</IsDispatched>
  <PendingQuantity>5</PendingQuantity>
  <Quantity>3</Quantity>
</OutcomeDetailAddEditRequest>

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

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>