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": "f9ae9092-fef8-4bab-accc-0209dc95498f",
"operatorGuid": "9978a8f1-a6e4-4735-bf8c-b5fe2bd35863",
"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>9978a8f1-a6e4-4735-bf8c-b5fe2bd35863</OperatorGuid> <OrderIdentifier>f9ae9092-fef8-4bab-accc-0209dc95498f</OrderIdentifier> <UpdateInventory>AsIs</UpdateInventory> <UpdateSupplierCost>true</UpdateSupplierCost> </OrderStockReceive>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.