# Resolve a delinquency case

Ends a collections case. Body: `status` is a terminal word — `cured` when the deal came good, `written_off`, or `settled` — plus `amount` for what was recovered and `notes`. The resolution date is written in the same statement, so a resolved case with no date cannot exist. This closes the CHASING; how the deal itself ended in money terms is `post_servicing_outcomes`.

Access class: `workspace`.

## Endpoint

`POST /v1/servicing/delinquencies/{id}/resolve`

## Parameters

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

## Request body

Content type: `application/json`.

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

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "bucket": "string",
    "contactAttempts": 1,
    "createdAt": "string",
    "daysDelinquent": 1,
    "id": "",
    "internalNotes": "string",
    "lastContactAt": "string",
    "lastContactMethod": "string",
    "lastContactResult": "string",
    "missedAmount": "string",
    "missedPaymentsCount": 1,
    "openedBy": 1,
    "resolutionAmount": "string",
    "resolutionNotes": "string",
    "resolvedAt": "string",
    "rowId": "",
    "severity": "string",
    "source": "string",
    "startedAt": "string",
    "status": "string",
    "sweptAt": "string",
    "totalOutstanding": "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"
}
```
