POST api/AddInventory
Request Information
URI Parameters
None.
Body Parameters
InventoryAddEditRequestName | Description | Type | Additional information |
---|---|---|---|
IdInventoryState | integer |
None. |
|
IdInventoryType | integer |
None. |
|
IdUserProfileCreation | integer |
None. |
|
IdUserProfileClosing | integer |
None. |
|
CreationDate | date |
None. |
|
ClosingDate | date |
None. |
|
IdClient | integer |
None. |
|
Id | integer |
None. |
|
Name | string |
None. |
|
Description | string |
None. |
|
IsEnabled | boolean |
None. |
|
User | string |
None. |
|
UserId | integer |
None. |
|
ValidationKey | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "idInventoryState": 1, "idInventoryType": 2, "idUserProfileCreation": 3, "idUserProfileClosing": 4, "creationDate": "2024-11-30T23:35:32.8107129-05:00", "closingDate": "2024-11-30T23:35:32.8107129-05:00", "idClient": 7, "id": 8, "name": "sample string 9", "description": "sample string 10", "isEnabled": true, "user": "sample string 12", "userId": 13, "validationKey": "sample string 14" }
application/xml, text/xml
Sample:
<InventoryAddEditRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request.Inventory"> <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> <Description xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">sample string 10</Description> <Id xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">8</Id> <IsEnabled xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">true</IsEnabled> <Name xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">sample string 9</Name> <ClosingDate>2024-11-30T23:35:32.8107129-05:00</ClosingDate> <CreationDate>2024-11-30T23:35:32.8107129-05:00</CreationDate> <IdClient>7</IdClient> <IdInventoryState>1</IdInventoryState> <IdInventoryType>2</IdInventoryType> <IdUserProfileClosing>4</IdUserProfileClosing> <IdUserProfileCreation>3</IdUserProfileCreation> </InventoryAddEditRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ResponseName | Description | Type | Additional 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>