Skip to main content
← All developer updates
improvement

The Order Type Now Serves Current Orders, and V2 Names Are Deprecated

The Order type now returns every field that V2Order returns, for current and legacy orders. The order query and order lists no longer need v2Order to reach current-order fields.

Three mutations replace the versioned names: ordersCancel, ordersUncancel, and ordersReset. v2Order, cancelOrderV2, uncancelOrderV2, and resetOrderV2 are deprecated. cancelOrder and ordersCancelInBulk are also deprecated in favor of ordersCancel. All of them still work, and no removal date is set. V2Order and the V2* input types keep their names.

Check these changes to existing results:

  • Order.orderType returns DTC for orders stored as standard. It used to fail, and those orders were dropped from any list that selected the field. Lists that select orderType now return them.
  • Current orders return their shipping and billing addresses on Order. They were null.
  • Order.notes includes notes saved under either order system.
  • canBeArchived and archiveBlockingReasons follow the rules the archive mutation applies to each order system, so some answers change.
  • V2Order.firstShipDate returns a value instead of failing, and previousStatus returns the previous status instead of null.