# Cases

Source: https://amanucci.com/fr/docs/developers/api/cases/listCases

## GET /v1/entities/{entityId}/cases

Cases

The entity's cases, newest first — every way the machine said "I may not decide this". A client seat reads only the cases waiting on it (`awaiting_client`), without their kind or the firm's internals — a person as `human`, a machine as `amanucci`. Filters: `kind`; `status` (default: the three LIVE statuses); `openedBefore` (cases opened before a date — age as the case list asks it); `minAmount` + `currency` (the subject's amount, compared as a decimal). Unbounded, so it pages by cursor (rule 5).

Operation ID: `listCases`

### Parameters

```json
[
  {
    "schema": {
      "type": "string",
      "format": "uuid"
    },
    "required": true,
    "name": "entityId",
    "in": "path"
  },
  {
    "schema": {
      "type": "string",
      "minLength": 3,
      "maxLength": 3
    },
    "required": false,
    "name": "currency",
    "in": "query"
  },
  {
    "schema": {
      "type": "string",
      "description": "An opaque position, taken verbatim from a previous response's `nextCursor`. Never construct one: its encoding is an implementation detail and may change within `/v1` (rule 6 governs FIELDS, not the contents of an opaque token)."
    },
    "required": false,
    "description": "An opaque position, taken verbatim from a previous response's `nextCursor`. Never construct one: its encoding is an implementation detail and may change within `/v1` (rule 6 governs FIELDS, not the contents of an opaque token).",
    "name": "cursor",
    "in": "query"
  },
  {
    "schema": {
      "type": "string",
      "enum": [
        "missing_coverage",
        "rule_conflict",
        "unknown_parameter",
        "unsettled_review",
        "low_confidence_material",
        "aged_unmatched",
        "control_violation",
        "doctrine_boundary",
        "duplicate_document",
        "orphaned_seen_txn",
        "statement_gap",
        "operational_failure",
        "unmapped_account",
        "missing_fx_rate",
        "no_open_period",
        "duplicate_party",
        "precedent_candidate",
        "provisional_review"
      ]
    },
    "required": false,
    "name": "kind",
    "in": "query"
  },
  {
    "schema": {
      "type": "integer",
      "minimum": 1,
      "maximum": 200,
      "default": 200,
      "description": "How many rows at most. The hard ceiling is 200; a larger value is refused with 422, never silently reduced."
    },
    "required": false,
    "description": "How many rows at most. The hard ceiling is 200; a larger value is refused with 422, never silently reduced.",
    "name": "limit",
    "in": "query"
  },
  {
    "schema": {
      "type": "string",
      "pattern": "^-?\\d+(\\.\\d+)?$",
      "description": "A decimal STRING, never a JSON number."
    },
    "required": false,
    "description": "A decimal STRING, never a JSON number.",
    "name": "minAmount",
    "in": "query"
  },
  {
    "schema": {
      "type": "string",
      "format": "date"
    },
    "required": false,
    "name": "openedBefore",
    "in": "query"
  },
  {
    "schema": {
      "type": "string",
      "enum": [
        "open",
        "awaiting_client",
        "awaiting_review",
        "resolved",
        "dismissed"
      ]
    },
    "required": false,
    "name": "status",
    "in": "query"
  }
]
```

### Responses

#### 200 One page of cases.

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

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

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