---
updatedAt: 2025-06-25T21:55:37.000Z
agentTools:
  projectIndex: https://docs.nftgo.io/llms.txt
---

# Cancel Orders

Use this API to cancel orders (listings & offers).

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "NFT Trading",
    "description": "",
    "version": "1.0.0"
  },
  "tags": [
    {
      "name": "gem-fetcher/trade/v1/nft"
    }
  ],
  "paths": {
    "/trade/v1/nft/cancel-orders": {
      "post": {
        "summary": "Cancel Orders",
        "x-apifox-folder": "gem-fetcher/trade/v1/nft",
        "x-apifox-status": "developing",
        "deprecated": false,
        "description": "Use this API to cancel orders (listings & offers).",
        "tags": [
          "gem-fetcher/trade/v1/nft"
        ],
        "parameters": [
          {
            "name": "chain",
            "in": "query",
            "description": "Optional param for multi-chain.Default ethereum.",
            "required": false,
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/Chain"
                }
              ],
              "description": "Optional param for multi-chain",
              "default": "ethereum"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CancelOrdersRequest",
                "x-apifox-overrides": {}
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "msg": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    },
                    "data": {
                      "$ref": "#/components/schemas/CancelOrdersResponse"
                    }
                  },
                  "x-apifox-orders": [
                    "msg",
                    "code",
                    "data"
                  ],
                  "required": [
                    "code",
                    "msg",
                    "data"
                  ],
                  "x-apifox-ignore-properties": []
                },
                "examples": {
                  "1": {
                    "summary": "cancel seaport-v1.5 order",
                    "value": {
                      "status_code": 200,
                      "code": "SUCCESS",
                      "msg": "success",
                      "data": {
                        "actions": [
                          {
                            "name": "cancel-orders",
                            "description": "Cancel OpenSea orders",
                            "kind": "transaction",
                            "data": {
                              "tx_associated_order_ids": [
                                "64b27fa91bd60885089de804"
                              ],
                              "tx_data": {
                                "from": "0x0000003ab78dd45950e8255d31c3f8a1d6095911",
                                "to": "0x00000000000000ADc04C56Bf30aC9d3c0aAF14dC",
                                "data": "0xfd9f1e100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000003ab78dd45950e8255d31c3f8a1d6095911000000000000000000000000000000e7ec00e7b300774b00001314b8610022b80000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000064b27fa10000000000000000000000000000000000000000000000000000000064b3d11e0000000000000000000000000000000000000000000000000000000000000000360c6ebe0000000000000000000000000000000000000000ff2b81e48109d3110000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004139c1192c5600000000000000000000000000000000000000000000000000004139c1192c56000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000002000000000000000000000000e012baf811cf9c05c408e879c399960d1f3059030000000000000000000000000000000000000000000000000000000000001b82000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000003ab78dd45950e8255d31c3f8a1d60959110000000000000000000000000000000000000000000000000000000000000001000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001a171a0a11bc00000000000000000000000000000000000000000000000000001a171a0a11bc0000000000000000000000000000000a26b00c1f0df003000390027140000faa7190000000000000000000000000000000000000000000000000000000000000001000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000342e341423780000000000000000000000000000000000000000000000000000342e34142378000000000000000000000000000a858ddc0445d8131dac4d1de01f834ffcba52ef1"
                              }
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "x-run-in-apifox": "https://apifox.com/web/project/2272262/apis/api-97211744-run"
      }
    }
  },
  "components": {
    "schemas": {
      "OrderType": {
        "type": "string",
        "enum": [
          "listing",
          "offer"
        ],
        "x-apifox": {
          "enumDescriptions": {
            "listing": "",
            "offer": ""
          }
        },
        "x-apifox-folder": ""
      },
      "AggregateAction": {
        "type": "object",
        "properties": {
          "name": {
            "$ref": "#/components/schemas/ActionName",
            "description": "Name of the action"
          },
          "description": {
            "type": "string",
            "description": "Describes the action"
          },
          "kind": {
            "$ref": "#/components/schemas/ActionKind",
            "description": "Client-end should process differently given different kind"
          },
          "data": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/AggregateTransactionInfo"
              },
              {
                "$ref": "#/components/schemas/AggregatePassThroughInfo"
              },
              {
                "$ref": "#/components/schemas/AggregateSignatureInfo"
              }
            ],
            "description": "Action data"
          }
        },
        "x-apifox-orders": [
          "name",
          "description",
          "kind",
          "data"
        ],
        "required": [
          "name",
          "description",
          "kind",
          "data"
        ],
        "x-apifox-ignore-properties": [],
        "x-apifox-folder": "aggregator"
      },
      "AggregateSignatureInfo": {
        "type": "object",
        "properties": {
          "order_indexes": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "description": "The orderIndexes corresponding to this signature"
          },
          "sign": {
            "type": "object",
            "properties": {},
            "x-apifox-orders": [],
            "description": "sign obejct",
            "x-apifox-ignore-properties": []
          },
          "body": {
            "type": "object",
            "properties": {},
            "x-apifox-orders": [],
            "description": "data to sign",
            "x-apifox-ignore-properties": []
          }
        },
        "x-apifox-orders": [
          "order_indexes",
          "sign",
          "body"
        ],
        "required": [
          "order_indexes",
          "body",
          "sign"
        ],
        "x-apifox-ignore-properties": [],
        "x-apifox-folder": "aggregator"
      },
      "AggregatePassThroughInfo": {
        "type": "object",
        "properties": {
          "endpoint": {
            "type": "string",
            "description": "The url to request"
          },
          "method": {
            "type": "string",
            "description": "The http method to request the url"
          },
          "payload": {
            "type": "string"
          }
        },
        "x-apifox-orders": [
          "endpoint",
          "method",
          "payload"
        ],
        "required": [
          "endpoint",
          "method",
          "payload"
        ],
        "x-apifox-ignore-properties": [],
        "x-apifox-folder": "aggregator"
      },
      "AggregateTransactionInfo": {
        "type": "object",
        "properties": {
          "tx_associated_order_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "This parameter will be returned when the transaction is to fulfill certain listings or offers"
          },
          "order_indexes": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "description": "This parameter will be returned for actionName `nft-approval`"
          },
          "used_gas": {
            "type": "string",
            "description": "The estimated gas for this transaction"
          },
          "gas_limit": {
            "type": "string",
            "description": "The recommened gasLimit to set for this transaction"
          },
          "tx_data": {
            "$ref": "#/components/schemas/TxData"
          }
        },
        "x-apifox-orders": [
          "tx_associated_order_ids",
          "order_indexes",
          "used_gas",
          "gas_limit",
          "tx_data"
        ],
        "required": [
          "tx_data"
        ],
        "x-apifox-ignore-properties": [],
        "x-apifox-folder": "aggregator"
      },
      "TxData": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "description": "Transaction from"
          },
          "to": {
            "type": "string",
            "description": "Transaction to"
          },
          "data": {
            "type": "string",
            "description": "Transaction input data"
          },
          "value": {
            "type": "string",
            "description": "Transaction value"
          }
        },
        "x-apifox-orders": [
          "from",
          "to",
          "data",
          "value"
        ],
        "required": [
          "from",
          "to",
          "data"
        ],
        "x-apifox-ignore-properties": [],
        "x-apifox-folder": "aggregator"
      },
      "ActionKind": {
        "type": "string",
        "enum": [
          "transaction",
          "signature",
          "pass-through",
          "controller"
        ],
        "x-apifox": {
          "enumDescriptions": {
            "transaction": "",
            "signature": "",
            "pass-through": "",
            "controller": ""
          }
        },
        "x-apifox-folder": "aggregator"
      },
      "ActionName": {
        "type": "string",
        "enum": [
          "accept-offer",
          "nft-approval",
          "currency-approval",
          "pass-through",
          "currency-wrapping",
          "order-signature",
          "post-order-to-marketplace",
          "cancel-orders"
        ],
        "x-apifox": {
          "enumDescriptions": {
            "accept-offer": "",
            "nft-approval": "",
            "currency-approval": "",
            "pass-through": "",
            "currency-wrapping": "",
            "order-signature": "",
            "post-order-to-marketplace": "",
            "cancel-orders": ""
          }
        },
        "x-apifox-folder": "aggregator"
      },
      "CancelOrdersResponse": {
        "type": "object",
        "properties": {
          "actions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AggregateAction"
            }
          }
        },
        "x-apifox-orders": [
          "actions"
        ],
        "required": [
          "actions"
        ],
        "x-apifox-ignore-properties": [],
        "x-apifox-folder": "ResponseParam"
      },
      "CancelOrdersRequest": {
        "type": "object",
        "properties": {
          "orders": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "order_id": {
                  "type": "string",
                  "description": "OrderId of listing or offer"
                },
                "order_hash": {
                  "type": "string"
                },
                "order_type": {
                  "$ref": "#/components/schemas/OrderType",
                  "description": "The orderType of order, pass `listing` or `offer`"
                }
              },
              "x-apifox-orders": [
                "order_id",
                "order_hash",
                "order_type"
              ],
              "required": [
                "order_type"
              ],
              "x-apifox-ignore-properties": []
            },
            "description": "Orders to be cancelled"
          },
          "caller_address": {
            "type": "string",
            "description": "The wallet address of user that attends to cancel orders.",
            "default": "0x3D74B1784e3341Ab179546B02feccCFD313D9265"
          },
          "extra_args": {
            "type": "object",
            "properties": {
              "sign": {
                "type": "string",
                "description": "X2Y2 sign, required for cancelling X2Y2 orders"
              },
              "sign_message": {
                "type": "string",
                "description": "X2Y2 signMessage, required for cancelling X2Y2 orders"
              },
              "blur_auth": {
                "type": "string",
                "description": "Advanced use case to pass personal blurAuthToken"
              }
            },
            "x-apifox-orders": [
              "sign",
              "sign_message",
              "blur_auth"
            ],
            "description": "Optional extra parameters",
            "x-apifox-ignore-properties": []
          }
        },
        "x-apifox-orders": [
          "orders",
          "caller_address",
          "extra_args"
        ],
        "required": [
          "orders",
          "caller_address"
        ],
        "x-apifox-ignore-properties": [],
        "x-apifox-folder": "RequestParam"
      },
      "Chain": {
        "type": "string",
        "enum": [
          "ethereum",
          "sepolia",
          "polygon"
        ],
        "x-apifox": {
          "enumDescriptions": {
            "ethereum": "",
            "sepolia": "",
            "polygon": ""
          }
        },
        "default": "ethereum"
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-KEY"
      }
    }
  },
  "servers": [
    {
      "url": "https://data-api.nftgo.io"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  },
  "security": [
    {
      "ApiKeyAuth": []
    }
  ]
}
```