POST api/Materials/Output

Add a new store output

Request Information

URI Parameters

None.

Body Parameters

StoreOutputPost
NameDescriptionTypeAdditional information
Store

string

Required

Allocation

Where this record should be allocated

AllocationEntity

Required

Account

If empty, the ManWinWin predefined Account will be used

string

None.

CostDocument

This maybe required, depending on ManWinWin preferences

string

None.

Material

string

Required

Requester

string

Required

Quantity

decimal number

Required

Equal or above: 0

Lot

string

None.

Request Formats

Sample:
{
  "Store": "sample string 1",
  "Allocation": {
    "Type": "WorkOrder",
    "Code": "sample string 1"
  },
  "Account": "sample string 2",
  "CostDocument": "sample string 3",
  "Material": "sample string 4",
  "Requester": "sample string 5",
  "Quantity": 6.1,
  "Lot": "sample string 7"
}
Sample:
<StoreOutputPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.Materiais">
  <Account>sample string 2</Account>
  <Allocation xmlns:d2p1="http://schemas.datacontract.org/2004/07/WebAPI.Models">
    <d2p1:Code>sample string 1</d2p1:Code>
    <d2p1:Type>WorkOrder</d2p1:Type>
  </Allocation>
  <CostDocument>sample string 3</CostDocument>
  <Lot>sample string 7</Lot>
  <Material>sample string 4</Material>
  <Quantity>6.1</Quantity>
  <Requester>sample string 5</Requester>
  <Store>sample string 1</Store>
</StoreOutputPost>
Sample:

Sample not available.

Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Store"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Allocation.Type"

WorkOrder
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Allocation.Code"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Account"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="CostDocument"

sample string 3
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Material"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Requester"

sample string 5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Quantity"

6.1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Lot"

sample string 7
--MultipartDataMediaFormatterBoundary1q2w3e--

Response Information

Resource Description

Returns the ID of the store output record; Status code: 201 (Created)

integer

Response Formats

Sample:
1
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name=""

1
--MultipartDataMediaFormatterBoundary1q2w3e--