POST api/AddOutcome

Request Information

URI Parameters

None.

Body Parameters

OutcomeAddEditRequest
NameDescriptionTypeAdditional information
IdOutcomeType

integer

None.

IdOutcomeState

integer

None.

IdOutcomeReceiver

integer

None.

Number

string

None.

DocumentNumber

string

None.

Description

string

None.

OutcomeDate

date

None.

CreationDate

date

None.

IsDispatched

boolean

None.

Id

integer

None.

User

string

None.

UserId

integer

None.

ValidationKey

string

None.

Request Formats

application/json, text/json

Sample:
{
  "idOutcomeType": 1,
  "idOutcomeState": 2,
  "idOutcomeReceiver": 3,
  "number": "sample string 4",
  "documentNumber": "sample string 5",
  "description": "sample string 6",
  "outcomeDate": "2024-11-30T23:47:01.6521215-05:00",
  "creationDate": "2024-11-30T23:47:01.6521215-05:00",
  "isDispatched": true,
  "id": 10,
  "user": "sample string 11",
  "userId": 12,
  "validationKey": "sample string 13"
}

application/xml, text/xml

Sample:
<OutcomeAddEditRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request.Outcome">
  <User xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">sample string 11</User>
  <UserId xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">12</UserId>
  <ValidationKey xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">sample string 13</ValidationKey>
  <Id xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">10</Id>
  <CreationDate>2024-11-30T23:47:01.6521215-05:00</CreationDate>
  <Description>sample string 6</Description>
  <DocumentNumber>sample string 5</DocumentNumber>
  <IdOutcomeReceiver>3</IdOutcomeReceiver>
  <IdOutcomeState>2</IdOutcomeState>
  <IdOutcomeType>1</IdOutcomeType>
  <IsDispatched>true</IsDispatched>
  <Number>sample string 4</Number>
  <OutcomeDate>2024-11-30T23:47:01.6521215-05:00</OutcomeDate>
</OutcomeAddEditRequest>

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

Response Information

Resource Description

ReponseEnhance
NameDescriptionTypeAdditional information
Id

integer

None.

IsInUse

boolean

None.

ResultCode

integer

None.

ResultMessage

string

None.

ErrorMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "isInUse": true,
  "resultCode": 3,
  "resultMessage": "sample string 4",
  "errorMessage": "sample string 5"
}

application/xml, text/xml

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