---
updatedAt: 2026-04-20T21:43:36.000Z
agentTools:
  projectIndex: https://docs.dinari.com/llms.txt
---

# Deactivate Account

Set the `Account` to be inactive. Inactive accounts cannot be used for trading.

# OpenAPI definition

```json
{
  "info": {
    "description": "**Dinari API for enterprise usage.**\n\nDinari's dShares let businesses offer tokenized access to stocks to their customers through an easy-to-use API.\nIntegrate Dinari's API and offer over a hundred stocks and ETFs to your customers.\n",
    "contact": {
      "email": "hello@dinari.com"
    },
    "license": {
      "name": "Contact us"
    },
    "termsOfService": "https://dinari.com/terms",
    "title": "Dinari Enterprise API",
    "version": "v20261009-833c33c"
  },
  "servers": [
    {
      "url": "https://api-enterprise.sbt.dinari.com",
      "description": "Production"
    },
    {
      "url": "https://api-enterprise.sandbox.dinari.com",
      "description": "Sandbox"
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyId": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key-Id",
        "description": "The API key ID provided on the [Partners Dashboard](https://partners.dinari.com)."
      },
      "ApiSecretKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Secret-Key",
        "description": "API Secret Key that is only shown once at API Key creation."
      }
    },
    "schemas": {
      "BaseOpenApiError": {
        "type": "object",
        "properties": {
          "status": {
            "type": "integer",
            "description": "HTTP status code"
          },
          "message": {
            "type": "string",
            "description": "Human-readable message"
          },
          "error_id": {
            "type": "string",
            "description": "Reference Id for Dinari support"
          },
          "error": {
            "description": "Additional context and information"
          }
        },
        "required": [
          "error_id",
          "message",
          "status"
        ],
        "additionalProperties": false
      },
      "Jurisdiction": {
        "type": "string",
        "enum": [
          "BASELINE",
          "US"
        ]
      },
      "Account1": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Unique ID for the `Account`."
          },
          "entity_id": {
            "type": "string",
            "format": "uuid",
            "description": "ID for the `Entity` that owns the `Account`."
          },
          "is_active": {
            "type": "boolean",
            "description": "Indicates whether the `Account` is active."
          },
          "created_dt": {
            "type": "string",
            "format": "date-time",
            "description": "Datetime when the `Account` was created. ISO 8601 timestamp."
          },
          "jurisdiction": {
            "description": "Jurisdiction of the `Account`.",
            "$ref": "#/components/schemas/Jurisdiction"
          },
          "brokerage_account_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "ID of the brokerage account associated with the `Account`."
          }
        },
        "required": [
          "created_dt",
          "entity_id",
          "id",
          "is_active",
          "jurisdiction"
        ],
        "description": "Information about an `Account` owned by an `Entity`."
      }
    },
    "responses": {
      "DEFAULT_ERROR": {
        "description": "Default error response",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/BaseOpenApiError"
            }
          }
        }
      }
    }
  },
  "paths": {
    "/api/v2/accounts/{account_id}/deactivate": {
      "post": {
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Account1"
                }
              }
            }
          },
          "default": {
            "$ref": "#/components/responses/DEFAULT_ERROR"
          }
        },
        "tags": [
          "Accounts"
        ],
        "summary": "Deactivate Account",
        "description": "Set the `Account` to be inactive. Inactive accounts cannot be used for trading.",
        "operationId": "createAccountDeactivation",
        "security": [
          {
            "ApiKeyId": [],
            "ApiSecretKey": []
          }
        ]
      },
      "parameters": [
        {
          "in": "path",
          "name": "account_id",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ]
    }
  },
  "tags": [
    {
      "name": "Accounts",
      "description": "**`Accounts` represent the financial accounts of an `Entity`.**\n\n`Orders`, dividends, and other transactions are associated with an `Account`."
    }
  ],
  "openapi": "3.1.0"
}
```