Skip to main content

deleteOrder

Permanently deletes a V2 order and everything derived from it (fulfillments, shipments, released inventory, tags, notes, ...).

Runs synchronously: the order is validated and torn down before the mutation returns. Deleting here does NOT remove the order in the source system; delete it there too or disable the source integration, otherwise it returns on the next sync. See bulkDeleteOrders for the bulk, asynchronous behavior.

Business Rules​

  • The order must exist within the current company.
  • Rejected if the order has in-progress fulfillments managed by an integration; resolve them upstream first.

Error Scenarios​

  • **NOT_FOUND**: when the order does not exist.
  • **BAD_REQUEST**: when the order has in-progress integration fulfillments.

Permissions Required​

  • orders:delete_order permission
deleteOrder(
input: DeleteOrderInput!
): StatusResponse

Arguments​

deleteOrder.input ● DeleteOrderInput! non-null input common​

Parameters for DeleteOrder

Type​

StatusResponse object common​

The response of a mutation that only returns a status