ordercloud-api / oc-documentation

MIT License
2 stars 63 forks source link

Ship and complete an order example is invalid #326

Closed ddoorn closed 2 years ago

ddoorn commented 2 years ago

The example on this page: https://ordercloud.io/learn/order-fulfillment/shipping-an-order is invalid

For HTTP - an empty body {} is required in order to pass in a Shipment (a shipment has no required parameters but must be passed in) For C# - The example could be fixed by adding the following bolded statement: await client.Orders.ShipAsync("Incoming", "INSERT_ORDER_ID_HERE", **new Shipment()**)

For JS/TS not sure how the example should be adjusted

djsteinmetz commented 2 years ago

Fixed in the latest release