# Deactivate a deal split

Retires a stake: its status becomes inactive and the moment is stamped, so the record of who was on the deal survives its replacement and the unique index is free for a successor. There is no DELETE on a stake, deliberately — this is the route to call before adding the stake that replaces it.

Access class: `workspace`.

## Endpoint

`POST /v1/accounting/deal-splits/{id}/deactivate`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| id | path | string | Yes |

## Request body

Content type: `application/json`.

```json
{
  "body": {},
  "params": {
    ":id": "string"
  },
  "query": {}
}
```

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "accountId": "",
    "availability": {
      "availableMinor": 1,
      "clawbackShareMinor": 1,
      "collectedMinor": 1,
      "drawnMinor": 1,
      "entitledMinor": 1,
      "isHeld": true,
      "pendingMinor": 1,
      "unpaidMinor": 1
    },
    "basis": "string",
    "createdAt": "string",
    "crmUserId": 1,
    "deactivatedAt": "string",
    "dealId": 1,
    "detail": {},
    "externalParty": "string",
    "flatAmountMinor": 1,
    "held": true,
    "heldReason": "string",
    "id": 1,
    "notes": "string",
    "partyKind": "string",
    "sharePpm": 1,
    "status": "string",
    "updatedAt": "string"
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
