# Generate a submission's financing disclosure

Renders the state-mandated commercial financing disclosure for one submission record from an offer's figures and files it. Name the merchant's two-letter state and the offer row, plus any term no offer cell holds — prepayment terms above all. A live disclosure already on the submission is voided and replaced. 422 names any figure the paper must state and could not fill; 400 when the state is not one this workspace discloses in.

Access class: `def:read`.

## Endpoint

`POST /v1/definitions/{key}/rows/{rowId}/disclosure`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| key | path | string | Yes |
| rowId | path | string | Yes |

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "offerRowId": "",
    "state": "string",
    "templateId": "",
    "terms": {}
  },
  "params": {
    ":key": "string",
    ":rowId": ""
  },
  "query": {}
}
```

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "createdAt": "string",
    "document": {
      "body": "string",
      "bodyFormat": "string",
      "id": "",
      "kind": "string",
      "renderedAt": "string",
      "renderedBy": 1,
      "rowId": "",
      "substitutions": {},
      "templateId": "",
      "templateVersion": 1,
      "title": "string"
    },
    "documentId": "",
    "generatedBy": 1,
    "id": "",
    "signatureRequestId": "",
    "signatureRequired": true,
    "signedAt": "string",
    "state": "string",
    "status": "string",
    "submissionRowId": "",
    "templateId": "",
    "templateVersion": 1,
    "updatedAt": "string",
    "voidedAt": "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"
}
```
