> ## Documentation Index
> Fetch the complete documentation index at: https://docs.capcells.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Resolve a referred decision

> Record a person's approval or refusal of a Decision the Credit policy referred.

The Decision is not altered. It goes on reading `refer`, and the resolution reads beside it with the person, the moment and the basis.

An approval grants a facility on the resolution's principal and rate. A refusal may bar the Client for a stated number of days.

A refer is resolved once, and only a refer is resolved.

## Who may call

An administrator of the organization, as a person. The agent is refused on live and sandbox Tenancies alike.

## Path parameters

**tenant\_id** `string` *required*

The Tenancy acting. It comes from [Read the tenancy](https://docs.capcells.com/api-reference/console/tenancy/read.md); your organization must be bound to it.

**decision\_id** `string` *required*

The referred Decision.

## Body

**outcome** `string` *required*

`approve` or `refuse`.

**approved\_principal** `object`

Approvals only: `{minor_units, currency}`. At most what the application asked for, inside the Configuration's bounds and the policy's highest ceiling.

**rate** `object`

Approvals only: `{numerator, denominator, quotation}`, with `quotation` `annual nominal` or `monthly nominal`. Inside the Configuration's corridor.

**moratorium\_days** `integer`

Refusals only. Bars the Client from the day of the resolution.

**basis** `string` *required*

Why, in the person's words. At most 2,000 characters.

## Response

Answers `201`.

The Decision, as [Read a credit decision](https://docs.capcells.com/api-reference/credit-decisions/read.md) answers it, with `resolution` present and `awaits_resolution` `false`.

## Refusals

| Status | Code | When |
| - | - | - |
| `401` | `unauthenticated` | The token is missing or cannot be used |
| `403` | `not_permitted_tenant` | Your organization does not act for the Tenancy in the path |
| `403` | `not_permitted_role` | The caller is not an administrator |
| `403` | `not_permitted_actor` | The caller is the agent |
| `400` | `malformed_request` | The body has an unknown field, a field stated twice, or more than one JSON value |
| `415` | `unsupported_media_type` | The body is not declared `application/json` |
| `404` | `not_found` | The Tenancy recorded no such Decision |
| `409` | `not_a_refer` | The policy settled this Decision |
| `409` | `already_resolved` | A resolution stands |
| `422` | `invalid_resolution` | The fields do not fit the outcome, no basis is stated, or the terms are ones the application, the product or the policy would not admit |
| `422` | `no_time_zone` | The company profile states no time zone |

Every refusal carries the [error shape](https://docs.capcells.com/api-reference/overview.md#the-error-shape). `429` and `503` answer as at the signing door.

```bash Request theme={null}
curl -X POST https://api.capcells.com/console/v1/tenants/capyplazo/credit-decisions/$DECISION_ID/resolution \
  -H "Authorization: Bearer $CONSOLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"outcome": "refuse", "moratorium_days": 30, "basis": "the stated employer does not exist"}'
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.