POST api/AddInventoryMovement

Request Information

URI Parameters

None.

Body Parameters

InventoryMovementAddEditRequest
NameDescriptionTypeAdditional information
IdInventory

integer

None.

IdProduct

integer

None.

IdPositionSubIndex

integer

None.

IdUserProfile

integer

None.

IdDevice

integer

None.

IdProductState

integer

None.

CreationDate

date

None.

BarCode

string

None.

Plate

string

None.

Quantity

integer

None.

Measure

decimal number

None.

Id

integer

None.

User

string

None.

UserId

integer

None.

ValidationKey

string

None.

Request Formats

application/json, text/json

Sample:
{
  "idInventory": 1,
  "idProduct": 2,
  "idPositionSubIndex": 3,
  "idUserProfile": 4,
  "idDevice": 5,
  "idProductState": 6,
  "creationDate": "2024-11-30T23:30:25.5861984-05:00",
  "barCode": "sample string 8",
  "plate": "sample string 9",
  "quantity": 10,
  "measure": 11.0,
  "id": 12,
  "user": "sample string 13",
  "userId": 14,
  "validationKey": "sample string 15"
}

application/xml, text/xml

Sample:
<InventoryMovementAddEditRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request.InventoryMovement">
  <User xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">sample string 13</User>
  <UserId xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">14</UserId>
  <ValidationKey xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">sample string 15</ValidationKey>
  <Id xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">12</Id>
  <BarCode>sample string 8</BarCode>
  <CreationDate>2024-11-30T23:30:25.5861984-05:00</CreationDate>
  <IdDevice>5</IdDevice>
  <IdInventory>1</IdInventory>
  <IdPositionSubIndex>3</IdPositionSubIndex>
  <IdProduct>2</IdProduct>
  <IdProductState>6</IdProductState>
  <IdUserProfile>4</IdUserProfile>
  <Measure>11</Measure>
  <Plate>sample string 9</Plate>
  <Quantity>10</Quantity>
</InventoryMovementAddEditRequest>

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

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>