Update a Sales Order
ShipEngine allows users to update sales orders manually via the API.
At a minimum, you will need the following pieces of information to update your sales order:
order_date
ship_to
for every sales order item, if any
You may also provide most of the additional information available on a sales order, as seen below. Your sales order will be completely replaced with the information you provide in the request. Key identifying information of the sales order, such as the external_order_id
and order_source
, cannot be changed and are not included in the update request.
Example
PUT /v-beta/sales_orders/:sales_order_id
Updating sales order items
You may only update sales order items that already exist on the sales order. You cannot add or remove sales order items from a sales order at this time. Make sure you include all of the sales order items in your request, even if you have not made any changes to them. Sales order items are identified by their sales_order_item_id
.
Order source of the sales order
You may only use the API to update sales orders that have an api
order source, meaning you may not use the API to update your Amazon or Shopify sales orders. Those sales orders must be updated and reimported from your connected order source.
Different shipping addresses for different sales order items
You may specify your ship_to
address either for the sales order as a whole, or for each individual sales order item. If you specify the ship_to
address for the sales order, the address will apply across all of the sales order items. You may also specify the ship_to
address for the sales order as well as all the items, as long as the addresses are identical.