cancel_orders

Cancel one or more orders.

Input fields

sentera_ids ([ID!]!)

An array of orders to bulk update. The limit is 100 orders.

Return fields

failed ([BulkUpdateError!]!)

A list of any errors and the location in the input array.

succeeded ([ID!]!)

A list of all the IDs on which this bulk operation succeeded.

Examples

Cancel Orders

You can cancel one or more orders that have not been completed.

Try this example in GraphiQL
mutation CancelOrders {
  cancel_orders(sentera_ids: ["7qhgc8l_OD_phgrAcme_CV_deve_5ab6a8995_221219_142757"]) {
    succeeded
    failed {
      index
      errors {
        attribute
        code
        reason
        key
        message
        details
      }
    }
  }
}

{
  "data": {
    "cancel_orders": {
      "succeeded": [
        "7qhgc8l_OD_phgrAcme_CV_deve_5ab6a8995_221219_142757"
      ],
      "failed": []
    }
  }
}