---
updatedAt: 2026-09-16T12:35:49.000Z
agentTools:
  projectIndex: https://global-docs.upbit.com/llms.txt
---

# Cancel Orders by IDs

Cancel specified orders by providing a list of UUIDs or Identifiers. You can cancel up to 20 orders in a single request.

<HTMLBlock>{`
<div class="callout-section">
    <div class="callout-title">
      <i class="fa-solid fa-circle-exclamation"></i> <b>Check the proper endpoint based on your region.</b>
  </div>
	<div>The examples in this page is written using Singapore fiat code(SGD). Set the quote currency to match your region. The base_url differs by country/region. Make sure to specify the correct region value for your environment.<br>
    <br>	
	- Singapore (sg): https://sg-api.upbit.com<br>
	- Indonesia (id): https://id-api.upbit.com<br>
  - Thailand (th): https://th-api.upbit.com
	</div>
</div>
`}</HTMLBlock>

<HTMLBlock>{`
<div class="callout-section callout-section--danger">
  <div class="callout-title">
    <i class="fa-solid fa-circle-exclamation"></i> Cases Where Order Cancellation Requests May Be Rejected
  </div>
  Order cancellation requests may be rejected due to the following reasons:
  <li>Orders that have already been fully executed and cannot be canceled</li>
  <li>Orders that have already been canceled</li>
  <li>Orders belonging to pairs for which service has been temporarily suspended due to reasons such as rebranding</li>
</div>
`}</HTMLBlock>

<HTMLBlock>{`
<div class="callout-section callout-section--danger">
  <div class="callout-title">
    <i class="fa-solid fa-circle-exclamation"></i> This API supports only query parameter format.
  </div>
  All request parameters must be sent as query parameters. Form data or JSON format in the request body is not supported.
  <br><br>
  <code>Example:</code> /v1/orders/uuids?uuids[]=1234567890&uuids[]=1234567891
</div>
`}</HTMLBlock>

<HTMLBlock>{`
<div class="callout-section">
  <div class="callout-title">
    <i class="fa-solid fa-circle-exclamation"></i> When canceling orders, you must include either <code>uuid[]</code> or <code>identifier[]</code>.
  </div>
  Both parameters are optional individually, but at least one must be included to specify the orders to cancel. You cannot use both parameters simultaneously.
</div>
`}</HTMLBlock>

<br />

<HTMLBlock>{`
<div class="accordion-changelog">
    <input type="checkbox" id="api-changelog">
    <label for="api-changelog">
        <div class="APISectionHeader-heading4MUMLbp4_nLs">Revision History <i class="fa-solid fa-angle-right"></i></div>
    </label>
    <div class="accordion-changelog-content">
        <table class="custom-table">
            <thead>
                <tr>
                    <th>Version</th>
                    <th>Date</th>
                    <th>Changes</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td class="code-col">v1.1.9</td>
                    <td class="code-col">2024-12-11</td>
                    <td>
                        <a href="https://global-docs.upbit.com/changelog/new_delete_orders#/">
                            Addition of <code>Order List Cancel</code>
                        </a>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</div>

<div class="APISectionHeader-heading4MUMLbp4_nLs">Rate Limit</div>
<div class="box-rate-limit">

Up to 30 calls per second are allowed. This is measured on an account basis and request counts are shared within the exchange 'default' group.
</div>
<br>
<div class="APISectionHeader-heading4MUMLbp4_nLs">API Key Permission</div>
<div class="box-rate-limit">

  This API requires <a href="auth">authentication</a> and an API Key with the [Make Orders] permission.<br>
  If you encounter an out_of_scope error, please verify the permission settings in the API Key Management page.
</div>
`}</HTMLBlock>

<br />

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "title": "EXCHANGE API",
    "version": "1.3.3"
  },
  "servers": [
    {
      "url": "https://{region}-api.upbit.com"
    }
  ],
  "components": {
    "schemas": {
      "BatchCancelResult": {
        "type": "object",
        "required": [
          "success",
          "failed"
        ],
        "properties": {
          "success": {
            "description": "Information about successfully cancelled orders.",
            "type": "object",
            "required": [
              "count",
              "orders"
            ],
            "properties": {
              "count": {
                "type": "integer",
                "description": "Number of successfully cancelled orders.",
                "example": 5
              },
              "orders": {
                "description": "List of successfully cancelled orders.",
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "uuid",
                    "market"
                  ],
                  "properties": {
                    "uuid": {
                      "type": "string",
                      "description": "Unique identifier of the order.",
                      "example": "9ca023a5-851b-4fec-9f0a-48cd83c2eaae"
                    },
                    "market": {
                      "type": "string",
                      "description": "Trading pair code.\n",
                      "example": "SGD-BTC"
                    },
                    "identifier": {
                      "type": "string",
                      "description": "Client-assigned order identifier.\n* Only available for orders created after October 18, 2024.\n",
                      "example": "9ca023a5-851b-4fec-9f0a-48cd83c2eaae"
                    }
                  }
                }
              }
            }
          },
          "failed": {
            "description": "Information about orders that failed to cancel.",
            "type": "object",
            "required": [
              "count",
              "orders"
            ],
            "properties": {
              "count": {
                "type": "integer",
                "description": "Number of orders that failed to cancel.",
                "example": 5
              },
              "orders": {
                "description": "List of orders that failed to cancel.",
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "uuid",
                    "market"
                  ],
                  "properties": {
                    "uuid": {
                      "type": "string",
                      "description": "Unique identifier of the order.",
                      "example": "9ca023a5-851b-4fec-9f0a-48cd83c2eaae"
                    },
                    "market": {
                      "type": "string",
                      "description": "Trading pair code.\n",
                      "example": "SGD-BTC"
                    },
                    "identifier": {
                      "type": "string",
                      "description": "Client-assigned order identifier.\n* Only available for orders created after October 18, 2024.\n",
                      "example": "9ca023a5-851b-4fec-9f0a-48cd83c2eaae"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "name",
              "message"
            ],
            "properties": {
              "name": {
                "type": "string",
                "description": "Error name."
              },
              "message": {
                "type": "string",
                "description": "Error message."
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": false,
    "samples-languages": [
      "shell",
      "python",
      "java",
      "node"
    ]
  },
  "paths": {
    "/v1/orders/uuids": {
      "delete": {
        "operationId": "cancel-orders-by-ids",
        "summary": "Cancel Orders by IDs",
        "description": "Cancel specified orders by providing a list of UUIDs or Identifiers. You can cancel up to 20 orders in a single request.",
        "tags": [
          "Exchange"
        ],
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl --request DELETE \\\n    --url 'https://sg-api.upbit.com/v1/orders/uuids?uuids[]=bbbb8e07-1689-4769-af3e-a117016623f8&uuids[]=4312ba49-5f1a-4a01-9f3b-2d2bce17267e&uuids[]=bdb49a54-de36-4eb4-a963-9c8d4337a9da' \\\n    --header 'Authorization: Bearer {JWT_TOKEN}' \\\n    --header 'accept: application/json'\n"
            },
            {
              "language": "python",
              "install": "pip install requests pyjwt python-dotenv",
              "code": "import os\nimport uuid\nimport hashlib\nimport jwt\nimport requests\nfrom urllib.parse import unquote, urlencode\nfrom dotenv import load_dotenv\n\nload_dotenv()\n\nBASE_URL = \"https://sg-api.upbit.com\"\nPATH = \"/v1/orders/uuids\"\n\nACCESS_KEY = os.environ[\"UPBIT_OPEN_API_ACCESS_KEY\"]\nSECRET_KEY = os.environ[\"UPBIT_OPEN_API_SECRET_KEY\"]\n\nparams = {\n    \"uuids[]\": [\"bbbb8e07-1689-4769-af3e-a117016623f8\", \"4312ba49-5f1a-4a01-9f3b-2d2bce17267e\", \"bdb49a54-de36-4eb4-a963-9c8d4337a9da\"],\n}\n\nquery_string = unquote(urlencode(params, doseq=True)).encode(\"utf-8\")\n\nm = hashlib.sha512()\nm.update(query_string)\nquery_hash = m.hexdigest()\n\npayload = {\n    \"access_key\": ACCESS_KEY,\n    \"nonce\": str(uuid.uuid4()),\n    \"query_hash\": query_hash,\n    \"query_hash_alg\": \"SHA512\",\n}\n\njwt_token = jwt.encode(payload, SECRET_KEY, algorithm=\"HS256\")\n\nheaders = {\n    \"Authorization\": f\"Bearer {jwt_token}\",\n    \"Accept\": \"application/json\",\n}\n\nres = requests.delete(f\"{BASE_URL}{PATH}\", headers=headers, params=params)\nprint(res.json())\n"
            },
            {
              "language": "node",
              "name": "Axios",
              "install": "npm install axios jsonwebtoken uuid",
              "code": "const axios = require(\"axios\");\nconst crypto = require(\"crypto\");\nconst { sign } = require(\"jsonwebtoken\");\nconst { v4: uuidv4 } = require(\"uuid\");\nrequire(\"dotenv\").config();\n\nconst baseURL = \"https://sg-api.upbit.com\";\nconst path = \"/v1/orders/uuids\";\n\nconst ACCESS_KEY = process.env.UPBIT_OPEN_API_ACCESS_KEY;\nconst SECRET_KEY = process.env.UPBIT_OPEN_API_SECRET_KEY;\n\nconst arrayParams = {\n  \"uuids[]\": [\n  \"bbbb8e07-1689-4769-af3e-a117016623f8\",\n  \"4312ba49-5f1a-4a01-9f3b-2d2bce17267e\",\n  \"bdb49a54-de36-4eb4-a963-9c8d4337a9da\",\n  ],\n};\n\nconst arrayParamsString = Object.entries(arrayParams)\n  .flatMap(([key, values]) => values.map((value) => `${key}=${value}`))\n  .join(\"&\");\n\nconst queryString = arrayParamsString;\n\nconst queryHash = crypto\n  .createHash(\"sha512\")\n  .update(queryString, \"utf-8\")\n  .digest(\"hex\");\n\nconst payload = {\n  access_key: ACCESS_KEY,\n  nonce: uuidv4(),\n  query_hash: queryHash,\n  query_hash_alg: \"SHA512\",\n};\n\nconst jwtToken = sign(payload, SECRET_KEY);\n\nconst options = {\n  method: \"DELETE\",\n  url: `${baseURL}${path}?${queryString}`,\n  headers: {\n  Authorization: `Bearer ${jwtToken}`,\n  Accept: \"application/json\",\n  },\n};\n\naxios\n  .request(options)\n  .then((response) => {\n  console.log(response.data);\n  })\n  .catch((error) => {\n  console.error(error.response ? error.response.data : error.message);\n  });\n"
            },
            {
              "language": "java",
              "code": "package main;\n\nimport com.auth0.jwt.JWT;\nimport com.auth0.jwt.algorithms.Algorithm;\nimport java.io.IOException;\nimport java.nio.charset.StandardCharsets;\nimport java.security.MessageDigest;\nimport java.security.NoSuchAlgorithmException;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.Objects;\nimport java.util.UUID;\nimport java.util.stream.Collectors;\nimport okhttp3.OkHttpClient;\nimport okhttp3.Request;\nimport okhttp3.Response;\n\npublic class DeleteOrdersById {\n    private static final String BASE_URL = \"https://sg-api.upbit.com\";\n    private static final String PATH = \"/v1/orders/uuids\";\n\n    public static void main(String[] args) throws NoSuchAlgorithmException, IOException {\n        String accessKey = System.getenv(\"UPBIT_OPEN_API_ACCESS_KEY\");\n        String secretKey = System.getenv(\"UPBIT_OPEN_API_SECRET_KEY\");\n\n        Map<String, List<String>> params = new HashMap<>();\n        params.put(\"uuids[]\", List.of(\"bbbb8e07-1689-4769-af3e-a117016623f8\", \"4312ba49-5f1a-4a01-9f3b-2d2bce17267e\", \"bdb49a54-de36-4eb4-a963-9c8d4337a9da\"));\n\n        String queryString = params.entrySet().stream()\n            .flatMap(e -> e.getValue().stream().map(v -> e.getKey() + \"=\" + v))\n            .collect(Collectors.joining(\"&\"));\n\n\n        MessageDigest md = MessageDigest.getInstance(\"SHA-512\");\n        md.update(queryString.getBytes(StandardCharsets.UTF_8));\n        StringBuilder sb = new StringBuilder();\n        for (byte b : md.digest()) {\n            sb.append(String.format(\"%02x\", b));\n        }\n        String queryHash = sb.toString();\n\n        Algorithm algorithm = Algorithm.HMAC512(secretKey.getBytes(StandardCharsets.UTF_8));\n        String jwtToken = JWT.create()\n            .withClaim(\"access_key\", accessKey)\n            .withClaim(\"nonce\", UUID.randomUUID().toString())\n            .withClaim(\"query_hash\", queryHash)\n            .withClaim(\"query_hash_alg\", \"SHA512\")\n            .sign(algorithm);\n\n        String authHeader = \"Bearer \" + jwtToken;\n\n        OkHttpClient client = new OkHttpClient();\n        Request request = new Request.Builder()\n            .url(BASE_URL + PATH + \"?\" + queryString)\n            .get()\n            .addHeader(\"Content-Type\", \"application/json\")\n            .addHeader(\"Authorization\", authHeader)\n            .build();\n\n        try (Response response = client.newCall(request).execute()) {\n            System.out.println(response.code());\n            System.out.println(Objects.requireNonNull(response.body()).string());\n        }\n    }\n}\n"
            }
          ]
        },
        "parameters": [
          {
            "name": "uuids[]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "description": "List of UUIDs of orders to cancel. Maximum 20 orders.\n\n[Example] uuids[]=uuid1&uuids[]=uuid2…\n",
              "items": {
                "type": "string",
                "example": "9ca023a5-851b-4fec-9f0a-48cd83c2eaae"
              }
            },
            "allowReserved": true,
            "examples": {
              "default": {
                "value": [
                  "bbbb8e07-1689-4769-af3e-a117016623f8",
                  "4312ba49-5f1a-4a01-9f3b-2d2bce17267e",
                  "bdb49a54-de36-4eb4-a963-9c8d4337a9da"
                ]
              }
            }
          },
          {
            "name": "identifiers[]",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "description": "List of client-assigned identifiers of orders to cancel. Maximum 20 orders.\n\n[Example] identifiers[]=id1&identifiers[]=id2…\n",
              "items": {
                "type": "string",
                "example": "9ca023a5-851b-4fec-9f0a-48cd83c2eaae"
              }
            },
            "allowReserved": true
          }
        ],
        "responses": {
          "200": {
            "description": "Object of batch cancel result",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BatchCancelResult"
                },
                "examples": {
                  "Successful Example": {
                    "value": {
                      "success": {
                        "count": 2,
                        "orders": [
                          {
                            "uuid": "bbbb8e07-1689-4769-af3e-a117016623f8",
                            "market": "SGD-ETH"
                          },
                          {
                            "uuid": "4312ba49-5f1a-4a01-9f3b-2d2bce17267e",
                            "market": "SGD-ETH"
                          }
                        ]
                      },
                      "failed": {
                        "count": 1,
                        "orders": [
                          {
                            "uuid": "bdb49a54-de36-4eb4-a963-9c8d4337a9da",
                            "market": "SGD-BTC"
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "error object",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "body parameter not supported error": {
                    "value": {
                      "error": {
                        "name": "QUERY_PARAMETER_NOT_SUPPORTED",
                        "message": "This API only supports query parameters. Request body is not allowed."
                      }
                    }
                  },
                  "bad request error": {
                    "value": {
                      "error": {
                        "name": "bad_request",
                        "message": "Bad request"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
```