POST api/AddAllProcessMovement

Request Information

URI Parameters

None.

Body Parameters

ProductUploadRequest
NameDescriptionTypeAdditional information
Stream

Collection of byte

None.

User

string

None.

UserId

integer

None.

ValidationKey

string

None.

Request Formats

application/json, text/json

Sample:
{
  "stream": "QEA=",
  "user": "sample string 1",
  "userId": 2,
  "validationKey": "sample string 3"
}

application/xml, text/xml

Sample:
<ProductUploadRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request.Product">
  <User xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">sample string 1</User>
  <UserId xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">2</UserId>
  <ValidationKey xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Request">sample string 3</ValidationKey>
  <Stream>QEA=</Stream>
</ProductUploadRequest>

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

Response Information

Resource Description

ProcessMovementAddResponse
NameDescriptionTypeAdditional information
UpdatedMovements

integer

None.

ErrorMovements

integer

None.

DuplicatedMovements

integer

None.

Quantity

integer

None.

ErrorMovementList

Collection of ProductItemErrorResponse

None.

ResultCode

integer

None.

ResultMessage

string

None.

ErrorMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "updatedMovements": 1,
  "errorMovements": 2,
  "duplicatedMovements": 3,
  "quantity": 4,
  "errorMovementList": [
    {
      "lineNumber": 1,
      "line": "sample string 2",
      "error": "sample string 3",
      "resultCode": 4,
      "resultMessage": "sample string 5",
      "errorMessage": "sample string 6"
    },
    {
      "lineNumber": 1,
      "line": "sample string 2",
      "error": "sample string 3",
      "resultCode": 4,
      "resultMessage": "sample string 5",
      "errorMessage": "sample string 6"
    }
  ],
  "resultCode": 5,
  "resultMessage": "sample string 6",
  "errorMessage": "sample string 7"
}

application/xml, text/xml

Sample:
<ProcessMovementAddResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response.ProcessMovement">
  <ErrorMessage xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">sample string 7</ErrorMessage>
  <ResultCode xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">5</ResultCode>
  <ResultMessage xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">sample string 6</ResultMessage>
  <DuplicatedMovements>3</DuplicatedMovements>
  <ErrorMovementList xmlns:d2p1="http://schemas.datacontract.org/2004/07/SGAMovil.Response.Product">
    <d2p1:ProductItemErrorResponse>
      <ErrorMessage xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">sample string 6</ErrorMessage>
      <ResultCode xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">4</ResultCode>
      <ResultMessage xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">sample string 5</ResultMessage>
      <d2p1:Error>sample string 3</d2p1:Error>
      <d2p1:Line>sample string 2</d2p1:Line>
      <d2p1:LineNumber>1</d2p1:LineNumber>
    </d2p1:ProductItemErrorResponse>
    <d2p1:ProductItemErrorResponse>
      <ErrorMessage xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">sample string 6</ErrorMessage>
      <ResultCode xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">4</ResultCode>
      <ResultMessage xmlns="http://schemas.datacontract.org/2004/07/SGAMovil.Response">sample string 5</ResultMessage>
      <d2p1:Error>sample string 3</d2p1:Error>
      <d2p1:Line>sample string 2</d2p1:Line>
      <d2p1:LineNumber>1</d2p1:LineNumber>
    </d2p1:ProductItemErrorResponse>
  </ErrorMovementList>
  <ErrorMovements>2</ErrorMovements>
  <Quantity>4</Quantity>
  <UpdatedMovements>1</UpdatedMovements>
</ProcessMovementAddResponse>