> ## Documentation Index
> Fetch the complete documentation index at: https://docs.assetinfinity.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# One asset's charge for one period, with every input that produced it — so the figure can be taken apart without anybody redoing it by hand.



## OpenAPI

````yaml /api-reference/openapi.json get /depreciation_run_lines
openapi: 3.0.0
info:
  description: ''
  title: >-
    The only schema PostgREST exposes. Reads are security_invoker views; writes
    are SECURITY DEFINER functions. Rebuilt wholesale on every deploy — it holds
    no data.
  version: 12.2.3
servers:
  - url: https://app.assetinfinity.ai/api
security: []
tags:
  - name: Signing in
  - name: Profile
  - name: Assets
  - name: Asset lifecycle
  - name: Work lifecycle
  - name: Maintenance
  - name: Inventory
  - name: Inventory detail
  - name: Procurement
  - name: Contracts
  - name: Workforce
  - name: Capacity
  - name: Dispatch
  - name: Tools
  - name: Inspections
  - name: Verification
  - name: Reliability
  - name: Parts demand
  - name: Sensors and meters
  - name: Map
  - name: Floor plans
  - name: Labels
  - name: Lost and found
  - name: Root cause analysis
  - name: Reports
  - name: Audit center
  - name: Activity
  - name: Notifications
  - name: Channels
  - name: Search
  - name: Copilot
  - name: Import
  - name: Files
  - name: Sync
  - name: Support
  - name: Admin
  - name: Access
  - name: Lookups
  - name: Read models
  - name: Branding
  - name: Custom fields
  - name: Form studio
  - name: Workflows
  - name: Workflow studio
  - name: Rules
  - name: Statuses and transitions
  - name: Currencies and locales
  - name: Work configuration
  - name: Asset configuration
  - name: Inventory configuration
  - name: Tool configuration
  - name: Workforce configuration
  - name: Vendor and contract configuration
  - name: Document configuration
  - name: Inspection configuration
  - name: Sites, locations and the organisation
  - name: Platform
  - name: Amendments
  - name: Asset clone
  - name: Asset components
  - name: Asset register
  - name: Asset transfer
  - name: Audit feed
  - name: Billing
  - name: Bookings
  - name: Budgets
  - name: Bulk jobs
  - name: Calibration history
  - name: Capex plans
  - name: Conversations
  - name: Costing
  - name: Currency
  - name: Dashboards
  - name: Directory sync
  - name: Document control
  - name: Document folders
  - name: Document tree
  - name: Documents
  - name: Energy
  - name: Extracts
  - name: Features
  - name: Feeds
  - name: File exchange
  - name: Filing exceptions
  - name: Finance
  - name: Inbound mail
  - name: Keys
  - name: Knowledge
  - name: Licence
  - name: List views
  - name: Locations
  - name: Mapping
  - name: Mcp
  - name: Mcp oauth
  - name: Mfa
  - name: Numbering
  - name: Permits
  - name: Readers
  - name: Reference
  - name: Reference columns
  - name: Reference entry
  - name: Release
  - name: Scim
  - name: Security streams
  - name: Self verification
  - name: Setup
  - name: Shutdown
  - name: Sso
  - name: Telegram
  - name: Tenant switch
  - name: The caller's own work
  - name: The checklist library
  - name: Tools on a job, and who has them out
  - name: Tray
  - name: Vendor spend forecast
  - name: Vendors and contracts
  - name: Visitors
  - name: Work order execution
  - name: Work sequencing
  - name: Workforce detail
externalDocs:
  description: PostgREST Documentation
  url: https://postgrest.org/en/v12/references/api.html
paths:
  /depreciation_run_lines:
    get:
      tags:
        - Finance
      summary: >-
        One asset's charge for one period, with every input that produced it —
        so the figure can be taken apart without anybody redoing it by hand.
      parameters:
        - $ref: '#/components/parameters/rowFilter.depreciation_run_lines.id'
        - $ref: >-
            #/components/parameters/rowFilter.depreciation_run_lines.depreciation_run_id
        - $ref: >-
            #/components/parameters/rowFilter.depreciation_run_lines.asset_book_id
        - $ref: '#/components/parameters/rowFilter.depreciation_run_lines.asset_id'
        - $ref: >-
            #/components/parameters/rowFilter.depreciation_run_lines.asset_number
        - $ref: '#/components/parameters/rowFilter.depreciation_run_lines.asset_name'
        - $ref: '#/components/parameters/rowFilter.depreciation_run_lines.site_id'
        - $ref: '#/components/parameters/rowFilter.depreciation_run_lines.book_id'
        - $ref: >-
            #/components/parameters/rowFilter.depreciation_run_lines.asset_class_id
        - $ref: >-
            #/components/parameters/rowFilter.depreciation_run_lines.asset_class_code
        - $ref: >-
            #/components/parameters/rowFilter.depreciation_run_lines.cost_center_id
        - $ref: >-
            #/components/parameters/rowFilter.depreciation_run_lines.cost_center_code
        - $ref: >-
            #/components/parameters/rowFilter.depreciation_run_lines.opening_net_book_value
        - $ref: '#/components/parameters/rowFilter.depreciation_run_lines.cost_basis'
        - $ref: '#/components/parameters/rowFilter.depreciation_run_lines.amount'
        - $ref: >-
            #/components/parameters/rowFilter.depreciation_run_lines.closing_net_book_value
        - $ref: '#/components/parameters/rowFilter.depreciation_run_lines.method'
        - $ref: >-
            #/components/parameters/rowFilter.depreciation_run_lines.annual_rate_percent
        - $ref: >-
            #/components/parameters/rowFilter.depreciation_run_lines.useful_life_months
        - $ref: >-
            #/components/parameters/rowFilter.depreciation_run_lines.residual_amount
        - $ref: >-
            #/components/parameters/rowFilter.depreciation_run_lines.first_period_convention
        - $ref: >-
            #/components/parameters/rowFilter.depreciation_run_lines.period_basis
        - $ref: >-
            #/components/parameters/rowFilter.depreciation_run_lines.days_in_period
        - $ref: >-
            #/components/parameters/rowFilter.depreciation_run_lines.days_charged
        - $ref: >-
            #/components/parameters/rowFilter.depreciation_run_lines.periods_elapsed
        - $ref: >-
            #/components/parameters/rowFilter.depreciation_run_lines.periods_carried
        - $ref: >-
            #/components/parameters/rowFilter.depreciation_run_lines.is_final_period
        - $ref: >-
            #/components/parameters/rowFilter.depreciation_run_lines.units_this_period
        - $ref: >-
            #/components/parameters/rowFilter.depreciation_run_lines.units_consumed
        - $ref: >-
            #/components/parameters/rowFilter.depreciation_run_lines.expected_units
        - $ref: >-
            #/components/parameters/rowFilter.depreciation_run_lines.shift_factor
        - $ref: >-
            #/components/parameters/rowFilter.depreciation_run_lines.runtime_hours
        - $ref: >-
            #/components/parameters/rowFilter.depreciation_run_lines.normal_hours
        - $ref: '#/components/parameters/rowFilter.depreciation_run_lines.pool_id'
        - $ref: '#/components/parameters/select'
        - $ref: '#/components/parameters/order'
        - $ref: '#/components/parameters/range'
        - $ref: '#/components/parameters/rangeUnit'
        - $ref: '#/components/parameters/offset'
        - $ref: '#/components/parameters/limit'
        - $ref: '#/components/parameters/preferCount'
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/depreciation_run_lines'
                type: array
            application/vnd.pgrst.object+json:
              schema:
                items:
                  $ref: '#/components/schemas/depreciation_run_lines'
                type: array
            application/vnd.pgrst.object+json;nulls=stripped:
              schema:
                items:
                  $ref: '#/components/schemas/depreciation_run_lines'
                type: array
            text/csv:
              schema:
                items:
                  $ref: '#/components/schemas/depreciation_run_lines'
                type: array
          description: OK
        '206':
          description: Partial Content
components:
  parameters:
    rowFilter.depreciation_run_lines.id:
      in: query
      name: id
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.depreciation_run_id:
      in: query
      name: depreciation_run_id
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.asset_book_id:
      in: query
      name: asset_book_id
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.asset_id:
      in: query
      name: asset_id
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.asset_number:
      in: query
      name: asset_number
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.asset_name:
      in: query
      name: asset_name
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.site_id:
      in: query
      name: site_id
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.book_id:
      in: query
      name: book_id
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.asset_class_id:
      in: query
      name: asset_class_id
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.asset_class_code:
      in: query
      name: asset_class_code
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.cost_center_id:
      in: query
      name: cost_center_id
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.cost_center_code:
      in: query
      name: cost_center_code
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.opening_net_book_value:
      in: query
      name: opening_net_book_value
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.cost_basis:
      in: query
      name: cost_basis
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.amount:
      in: query
      name: amount
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.closing_net_book_value:
      in: query
      name: closing_net_book_value
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.method:
      in: query
      name: method
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.annual_rate_percent:
      in: query
      name: annual_rate_percent
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.useful_life_months:
      in: query
      name: useful_life_months
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.residual_amount:
      in: query
      name: residual_amount
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.first_period_convention:
      in: query
      name: first_period_convention
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.period_basis:
      in: query
      name: period_basis
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.days_in_period:
      in: query
      name: days_in_period
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.days_charged:
      in: query
      name: days_charged
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.periods_elapsed:
      in: query
      name: periods_elapsed
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.periods_carried:
      in: query
      name: periods_carried
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.is_final_period:
      in: query
      name: is_final_period
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.units_this_period:
      in: query
      name: units_this_period
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.units_consumed:
      in: query
      name: units_consumed
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.expected_units:
      in: query
      name: expected_units
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.shift_factor:
      in: query
      name: shift_factor
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.runtime_hours:
      in: query
      name: runtime_hours
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.normal_hours:
      in: query
      name: normal_hours
      required: false
      schema:
        type: string
    rowFilter.depreciation_run_lines.pool_id:
      in: query
      name: pool_id
      required: false
      schema:
        type: string
    select:
      description: Filtering Columns
      in: query
      name: select
      required: false
      schema:
        type: string
    order:
      description: Ordering
      in: query
      name: order
      required: false
      schema:
        type: string
    range:
      description: Limiting and Pagination
      in: header
      name: Range
      required: false
      schema:
        type: string
    rangeUnit:
      description: Limiting and Pagination
      in: header
      name: Range-Unit
      required: false
      schema:
        default: items
        type: string
    offset:
      description: Limiting and Pagination
      in: query
      name: offset
      required: false
      schema:
        type: string
    limit:
      description: Limiting and Pagination
      in: query
      name: limit
      required: false
      schema:
        type: string
    preferCount:
      description: Preference
      in: header
      name: Prefer
      required: false
      schema:
        enum:
          - count=none
        type: string
  schemas:
    depreciation_run_lines:
      description: >-
        One asset's charge for one period, with every input that produced it —
        so the figure can be taken apart without anybody redoing it by hand.
      properties:
        amount:
          format: numeric
          type: number
        annual_rate_percent:
          format: numeric
          type: number
        asset_book_id:
          description: >-
            Note:

            This is a Foreign Key to `asset_depreciation.id`.<fk
            table='asset_depreciation' column='id'/>
          format: uuid
          type: string
        asset_class_code:
          format: character varying
          maxLength: 40
          type: string
        asset_class_id:
          description: >-
            Note:

            This is a Foreign Key to `asset_classes.id`.<fk
            table='asset_classes' column='id'/>
          format: uuid
          type: string
        asset_id:
          description: >-
            Note:

            This is a Foreign Key to `asset_contracts.asset_id`.<fk
            table='asset_contracts' column='asset_id'/>
          format: uuid
          type: string
        asset_name:
          format: character varying
          maxLength: 250
          type: string
        asset_number:
          format: character varying
          maxLength: 80
          type: string
        book_id:
          description: >-
            Note:

            This is a Foreign Key to `depreciation_books.id`.<fk
            table='depreciation_books' column='id'/>
          format: uuid
          type: string
        closing_net_book_value:
          format: numeric
          type: number
        cost_basis:
          format: numeric
          type: number
        cost_center_code:
          format: character varying
          maxLength: 50
          type: string
        cost_center_id:
          description: >-
            Note:

            This is a Foreign Key to `cost_centre_settings.id`.<fk
            table='cost_centre_settings' column='id'/>
          format: uuid
          type: string
        days_charged:
          format: integer
          type: integer
        days_in_period:
          format: integer
          type: integer
        depreciation_run_id:
          description: >-
            Note:

            This is a Foreign Key to `depreciation_runs.id`.<fk
            table='depreciation_runs' column='id'/>
          format: uuid
          type: string
        expected_units:
          format: numeric
          type: number
        first_period_convention:
          format: character varying
          maxLength: 20
          type: string
        id:
          description: |-
            Note:
            This is a Primary Key.<pk/>
          format: uuid
          type: string
        is_final_period:
          format: boolean
          type: boolean
        method:
          format: character varying
          maxLength: 24
          type: string
        normal_hours:
          format: numeric
          type: number
        opening_net_book_value:
          format: numeric
          type: number
        period_basis:
          format: character varying
          maxLength: 16
          type: string
        periods_carried:
          format: integer
          type: integer
        periods_elapsed:
          format: integer
          type: integer
        pool_id:
          description: >-
            Note:

            This is a Foreign Key to `asset_blocks.id`.<fk table='asset_blocks'
            column='id'/>
          format: uuid
          type: string
        residual_amount:
          format: numeric
          type: number
        runtime_hours:
          format: numeric
          type: number
        shift_factor:
          format: numeric
          type: number
        site_id:
          description: >-
            Note:

            This is a Foreign Key to `entry_currencies.for_site_id`.<fk
            table='entry_currencies' column='for_site_id'/>
          format: uuid
          type: string
        units_consumed:
          format: numeric
          type: number
        units_this_period:
          format: numeric
          type: number
        useful_life_months:
          format: integer
          type: integer
      type: object

````