# Download a filing's payload

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

## GET /v1/entities/{entityId}/filings/{filingId}/payload

Download a filing's payload

The payload a produced filing generated — the exact bytes its schema validated — with a SHORT-LIVED presigned GET, minted at read time after the filing reads' guard (a seat that may only sign fetches what it signs, without `documents.exchange`). `filename` is `<kind>-<period label>.<format>`. A superseded filing's payload stays readable. 409 `filing_no_payload` for a filing that carries none (an external kind, a draft). The fiches 281.50's payload carries national numbers, so it is a person's download in the app: an API key, `am` or Ask meets 403 `filing_payload_withheld`. A firm seat reads with `filing.prepare` or `filing.sign`.

Operation ID: `getFilingPayload`

### Parameters

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

### Responses

#### 200 The payload and its download.

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

#### 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"
    }
  }
}
```
