---
updatedAt: 2025-06-05T21:44:16.000Z
agentTools:
  projectIndex: https://docs.dropboy.com/llms.txt
---

# Cancel orders

When cancelling an order, the order is retracted from the haulier, and if the order is assigned to a task list, it will also get retracted from there. This means that you should only cancel an order, if you are absolutely sure, that the order should be cancelled, as it will not appear for the haulier or on task list.

We recommend that the users in the integrating system gets a warning when attempting to cancel orders, similar to the warning that is in the Wuxus platform.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "orders",
    "version": "3.0"
  },
  "servers": [
    {
      "url": "https://api.wuxus.com/public/orders"
    }
  ],
  "security": [
    {}
  ],
  "paths": {
    "/cancel": {
      "post": {
        "summary": "Cancel orders",
        "description": "",
        "operationId": "cancel-orders",
        "parameters": [
          {
            "name": "APIKey",
            "in": "header",
            "description": "Your company's API key to Wuxus",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "comments": {
                    "type": "string",
                    "description": "The comment that will be added to the orders when canceling them"
                  },
                  "orderIds": {
                    "type": "array",
                    "description": "All orders ids that should be canceled",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "comments": {
                    "type": "string",
                    "description": "The comment that will be added to the orders when canceling them"
                  },
                  "orderIds": {
                    "type": "array",
                    "description": "All orders ids that should be canceled",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "examples": {
                "Request Example": {
                  "value": {
                    "comments": "This is a very good comment",
                    "orderIds": [
                      "58988a0dfc3d8c0011fa6298",
                      "58b9599df3d15c001111122e"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"success\": true,\n    \"errors\": null,\n    \"result\": []\n}"
                  },
                  "No order found": {
                    "value": "{\n    \"success\": true,\n    \"errors\": null,\n    \"result\": [\n        {\n            \"orderId\": \"5a31360406a63610144c9fd6\",\n            \"message\": \"no order found\"\n        }\n    ]\n}"
                  }
                },
                "schema": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "success": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "errors": {},
                        "result": {
                          "type": "array"
                        }
                      }
                    },
                    {
                      "title": "No order found",
                      "type": "object",
                      "properties": {
                        "success": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        },
                        "errors": {},
                        "result": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "orderId": {
                                "type": "string",
                                "example": "5a31360406a63610144c9fd6"
                              },
                              "message": {
                                "type": "string",
                                "example": "no order found"
                              }
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```