POST Stock/CreateProductStockMutation

Maak een voorraadmutatie aan

Request Information

URI Parameters

None.

Body Parameters

Voorraadmutatie

ProductStockMutationCreate
NameDescriptionTypeAdditional information
TypeId

integer

Required

Range: inclusive between 1 and 2147483647

LedgerId

integer

None.

ProductId

integer

None.

Amount

decimal number

None.

Remarks

string

None.

StockLocationId

integer

Required

Range: inclusive between 1 and 2147483647

StockMutationTypeId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "TypeId": 1,
  "LedgerId": 1,
  "ProductId": 2,
  "Amount": 3.0,
  "Remarks": "sample string 4",
  "StockLocationId": 5,
  "StockMutationTypeId": 6
}

application/xml, text/xml

Sample:
<ProductStockMutationCreate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.Models">
  <Amount>3</Amount>
  <ProductId>2</ProductId>
  <Remarks>sample string 4</Remarks>
  <StockLocationId>5</StockLocationId>
  <StockMutationTypeId>6</StockMutationTypeId>
  <LedgerId>1</LedgerId>
  <TypeId>1</TypeId>
</ProductStockMutationCreate>

Response Information

Resource Description

Voorraadmutatie nummer

Logic4ResponseOfInt32
NameDescriptionTypeAdditional information
Value

integer

None.

ValidationMessages

Eventuele foutmeldingen

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "Value": 1,
  "ValidationMessages": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<Logic4ResponseOfint xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Webware.Logic4.Classes.ResponseModels">
  <ValidationMessages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ValidationMessages>
  <Value>1</Value>
</Logic4ResponseOfint>