# The fixed-asset register

Source: https://amanucci.com/docs/developers/api/ledger/listAssets

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

The fixed-asset register

The fixed-asset register as of a day: every asset acquired by `asOf`, each with its full depreciation plan (the close's own arithmetic), the last fiscal year-end a posted close booked it through and its book value there; and, on the first page, the open fiscal year's capitalised purchases the next close will register, each flagged when its class has no elected life. `asOf` defaults to the business clock's today. The register only grows (disposal is not yet served), so it pages by cursor, in the walk `order` names.

Operation ID: `listAssets`

### Parameters

```json
[
  {
    "schema": {
      "type": "string",
      "format": "uuid"
    },
    "required": true,
    "name": "entityId",
    "in": "path"
  },
  {
    "schema": {
      "type": "string",
      "format": "date",
      "description": "The day to read the register as of; the business clock's today when omitted."
    },
    "required": false,
    "description": "The day to read the register as of; the business clock's today when omitted.",
    "name": "asOf",
    "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": "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",
      "enum": [
        "acquired.asc",
        "acquired.desc",
        "name.asc",
        "name.desc",
        "value.desc",
        "value.asc"
      ],
      "default": "acquired.asc",
      "description": "The walk. `acquired.asc` (the default): acquisition order, the day acquired then the id. `acquired.desc` the reverse; `name.asc` / `.desc` the description; `value.desc` / `.asc` the book value at `depreciatedThrough`. Rows that share the key come by their id, in the walk's direction. A cursor resumes only the walk that minted it: change the order and start at the first page."
    },
    "required": false,
    "description": "The walk. `acquired.asc` (the default): acquisition order, the day acquired then the id. `acquired.desc` the reverse; `name.asc` / `.desc` the description; `value.desc` / `.asc` the book value at `depreciatedThrough`. Rows that share the key come by their id, in the walk's direction. A cursor resumes only the walk that minted it: change the order and start at the first page.",
    "name": "order",
    "in": "query"
  },
  {
    "schema": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100,
      "description": "A case-insensitive substring of the asset's description (1..100 characters), matched literally; it narrows the assets and the pending purchases, never `totals`."
    },
    "required": false,
    "description": "A case-insensitive substring of the asset's description (1..100 characters), matched literally; it narrows the assets and the pending purchases, never `totals`.",
    "name": "q",
    "in": "query"
  }
]
```

### Responses

#### 200 One page of the register.

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

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