Documentation for SmartStore.NET 2.2

Adding a Shipment to an Order

This example adds a shipment to the order with ID 24. It also adds shipment items for all order items. Example: An order consists of product A with a quantity of 1 and product B with a quantity of 2. AddShipment then adds a shipment with two shipment items, one for product A with a quantity of 1 and one for product B with a quantity of 2.

Example
POST http://localhost:1260/odata/v1/Orders(24)/AddShipment
{"TrackingNumber":"987654321","SetAsShipped":true}

AddShipment supports two optional OData action parameters. TrackingNumber sets the tracking number of the shipment. SetAsShipped with a value of true marks order and shipment as shipped, adds an order note and sends a notification message to the customer that the shipment has been sent.