# Record a filing's proof

Source: https://amanucci.com/fr/docs/developers/api/filings/recordFilingProof

## POST /v1/entities/{entityId}/filings/{filingId}/proof

Record a filing's proof

Record the filing's proof, `submitted → accepted_evidence`: a return's acknowledgement (the artifact, uploaded first through the artifact door, and the declaration reference printed on it), or — for a PAYMENT (a tax prepayment) — `bankTransactionId`, the entity's own debit line that paid it (422 `bank_line_invalid` for a credit, another entity's line or one already proving another filing; 422 `proof_instrument` for the wrong kind of proof). Not a signed act. A return generated here needs `filing.sign`; an obligation recorded from outside is proved by whoever may record it (`filing.prepare` or `filing.sign`, or the client owner). 409 `filing_not_submitted` before the submit; 422 `proof_reference_invalid` for a reference the state does not issue.

Operation ID: `recordFilingProof`

### Parameters

```json
[
  {
    "schema": {
      "type": "string",
      "format": "uuid"
    },
    "required": true,
    "name": "entityId",
    "in": "path"
  },
  {
    "schema": {
      "type": "string",
      "format": "uuid"
    },
    "required": true,
    "name": "filingId",
    "in": "path"
  }
]
```

### Request body

```json
{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/RecordFilingProof"
      }
    }
  }
}
```

### Responses

#### 200 The filing with its proof.

```json
{
  "application/json": {
    "schema": {
      "$ref": "#/components/schemas/Filing"
    }
  }
}
```

#### 401 Dead or absent credential (`unauthenticated`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 403 Authenticated, present, and refused: a missing grant, a missing seat, or a missing step-up.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 404 Absent, or hidden from this asker — the two are indistinguishable (`not-found`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 409 The world is not in the state the request assumed: a stale `expectedSeq`, or a transition already made.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 422 The request did not satisfy the schema (`invalid-input`).

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 429 Too many requests on this door's bucket (`rate-limited`); refused before any handler ran, `Retry-After` says when to come back.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```

#### 503 Temporarily unavailable; `Retry-After` says when to come back.

```json
{
  "application/problem+json": {
    "schema": {
      "$ref": "#/components/schemas/Problem"
    }
  }
}
```
