---
updatedAt: 2026-02-12T12:01:25.000Z
---

# Cancel contracts in bulk

Cancels multiple contracts in a single request

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "FPL API",
    "description": "Fully Paid Lending APIs",
    "version": "1.0.0"
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "servers": [
    {
      "url": "apigateway.fpl-api.ivy.clst.co",
      "description": "FPL UAT Environment"
    },
    {
      "url": "api.clearstreet.io",
      "description": "FPL PROD Environment"
    }
  ],
  "paths": {
    "/fpl/v1/contracts/cancel": {
      "post": {
        "tags": [
          "Fully Paid Lending"
        ],
        "summary": "Cancel contracts in bulk",
        "description": "Cancels multiple contracts in a single request",
        "operationId": "cancelContracts",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkCancelContractRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Contracts cancelled successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkContractResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400Response"
          },
          "401": {
            "$ref": "#/components/responses/401Response"
          },
          "403": {
            "$ref": "#/components/responses/403Response"
          }
        }
      }
    }
  },
  "components": {
    "responses": {
      "400Response": {
        "description": "The request is invalid or malformed.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "401Response": {
        "description": "The user is not authenticated.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "403Response": {
        "description": "The user is authenticated but does not have the permissions required for this operation.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "A message describing the error"
          },
          "details": {
            "type": "object",
            "description": "An object containing additional details about the error"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "RFC3339 formatted timestamp for the error"
          }
        }
      },
      "BulkContractResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContractResponse"
            }
          }
        }
      },
      "ContractResponse": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string"
          },
          "contractId": {
            "type": "string"
          },
          "accepted": {
            "type": "boolean"
          },
          "rejectReason": {
            "type": "string"
          }
        }
      },
      "BulkCancelContractRequest": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CancelContractRequest"
            }
          }
        }
      },
      "CancelContractRequest": {
        "type": "object",
        "required": [
          "contractId"
        ],
        "properties": {
          "requestId": {
            "type": "string"
          },
          "contractId": {
            "type": "string",
            "format": "uuid"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```