POST api/AddIncome
Request Information
URI Parameters
None.
Body Parameters
IncomeAddEditRequestName | Description | Type | Additional information |
---|---|---|---|
IdIncomeType | integer |
None. |
|
IdIncomeState | integer |
None. |
|
IdIncomeOrigin | integer |
None. |
|
IdIncomeProvider | integer |
None. |
|
Number | string |
None. |
|
DocumentNumber | string |
None. |
|
Description | string |
None. |
|
IncomeDate | date |
None. |
|
CreationDate | date |
None. |
|
IsDistributed | boolean |
None. |
|
Id | integer |
None. |
|
User | string |
None. |
|
UserId | integer |
None. |
|
ValidationKey | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "idIncomeType": 1, "idIncomeState": 2, "idIncomeOrigin": 3, "idIncomeProvider": 4, "number": "sample string 5", "documentNumber": "sample string 6", "description": "sample string 7", "incomeDate": "2024-11-30T23:31:08.7970948-05:00", "creationDate": "2024-11-30T23:31:08.7970948-05:00", "isDistributed": true, "id": 11, "user": "sample string 12", "userId": 13, "validationKey": "sample string 14" }
application/xml, text/xml
Sample:
<IncomeAddEditRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request.Income"> <User xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">sample string 12</User> <UserId xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">13</UserId> <ValidationKey xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">sample string 14</ValidationKey> <Id xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">11</Id> <CreationDate>2024-11-30T23:31:08.7970948-05:00</CreationDate> <Description>sample string 7</Description> <DocumentNumber>sample string 6</DocumentNumber> <IdIncomeOrigin>3</IdIncomeOrigin> <IdIncomeProvider>4</IdIncomeProvider> <IdIncomeState>2</IdIncomeState> <IdIncomeType>1</IdIncomeType> <IncomeDate>2024-11-30T23:31:08.7970948-05:00</IncomeDate> <IsDistributed>true</IsDistributed> <Number>sample string 5</Number> </IncomeAddEditRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ReponseEnhanceName | Description | Type | Additional 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>