POST api/order/{id}/stockReceive
Update an order and change it's status to Stock Receive. Performs logical updates for this
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Order identifier |
globally unique identifier |
Required |
Body Parameters
Order stock receive options object
OrderStockReceive| Name | Description | Type | Additional information |
|---|---|---|---|
| OrderIdentifier |
Order to stock receive |
globally unique identifier |
None. |
| OperatorGuid |
Operator guid, of user performing stock receive |
globally unique identifier |
None. |
| UpdateInventory |
Inventory update setting for order |
UpdateInventory |
None. |
| CostIncludesFreight |
If costs are to be updated, do they include freight or should it be added, if the tenant is using order cost |
boolean |
None. |
| UpdateSupplierCost |
Update supplier cost, based on supplier update cost setting, if the tenant is using order cost |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"orderIdentifier": "d43e8e16-9408-4294-bc2d-97bd822ab3b1",
"operatorGuid": "e19d0429-8142-44ec-b698-3d6d5a5ddc0a",
"updateInventory": 0,
"costIncludesFreight": true,
"updateSupplierCost": true
}
application/xml, text/xml
Sample:
<OrderStockReceive xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Orders"> <CostIncludesFreight>true</CostIncludesFreight> <OperatorGuid>e19d0429-8142-44ec-b698-3d6d5a5ddc0a</OperatorGuid> <OrderIdentifier>d43e8e16-9408-4294-bc2d-97bd822ab3b1</OrderIdentifier> <UpdateInventory>AsIs</UpdateInventory> <UpdateSupplierCost>true</UpdateSupplierCost> </OrderStockReceive>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.