> ## 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.

# The stock ledger. Every balance in the product is a sum of these rows.



## OpenAPI

````yaml /api-reference/openapi.json get /inventory_transactions
openapi: 3.0.0
info:
  description: ''
  title: >-
    The only schema PostgREST exposes (ADR-014). 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: Routing
  - 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: Self verification
  - name: Setup
  - name: Tools on a job, and who has them out
  - name: Vendors and contracts
  - name: Work order execution
  - name: Workforce detail
externalDocs:
  description: PostgREST Documentation
  url: https://postgrest.org/en/v12/references/api.html
paths:
  /inventory_transactions:
    get:
      tags:
        - Inventory detail
      summary: The stock ledger. Every balance in the product is a sum of these rows.
      parameters:
        - $ref: '#/components/parameters/rowFilter.inventory_transactions.id'
        - $ref: '#/components/parameters/rowFilter.inventory_transactions.part_id'
        - $ref: '#/components/parameters/rowFilter.inventory_transactions.part_number'
        - $ref: '#/components/parameters/rowFilter.inventory_transactions.part_name'
        - $ref: >-
            #/components/parameters/rowFilter.inventory_transactions.unit_of_measure
        - $ref: >-
            #/components/parameters/rowFilter.inventory_transactions.warehouse_id
        - $ref: >-
            #/components/parameters/rowFilter.inventory_transactions.warehouse_code
        - $ref: >-
            #/components/parameters/rowFilter.inventory_transactions.transaction_type
        - $ref: '#/components/parameters/rowFilter.inventory_transactions.quantity'
        - $ref: '#/components/parameters/rowFilter.inventory_transactions.unit_cost'
        - $ref: '#/components/parameters/rowFilter.inventory_transactions.total_cost'
        - $ref: '#/components/parameters/rowFilter.inventory_transactions.reason_code'
        - $ref: '#/components/parameters/rowFilter.inventory_transactions.notes'
        - $ref: '#/components/parameters/rowFilter.inventory_transactions.occurred_at'
        - $ref: '#/components/parameters/rowFilter.inventory_transactions.source_type'
        - $ref: '#/components/parameters/rowFilter.inventory_transactions.asset_id'
        - $ref: >-
            #/components/parameters/rowFilter.inventory_transactions.asset_number
        - $ref: >-
            #/components/parameters/rowFilter.inventory_transactions.work_order_id
        - $ref: >-
            #/components/parameters/rowFilter.inventory_transactions.work_order_number
        - $ref: '#/components/parameters/rowFilter.inventory_transactions.worker_id'
        - $ref: '#/components/parameters/rowFilter.inventory_transactions.worker_name'
        - $ref: >-
            #/components/parameters/rowFilter.inventory_transactions.reverses_transaction_id
        - $ref: '#/components/parameters/rowFilter.inventory_transactions.created_at'
        - $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/inventory_transactions'
                type: array
            application/vnd.pgrst.object+json:
              schema:
                items:
                  $ref: '#/components/schemas/inventory_transactions'
                type: array
            application/vnd.pgrst.object+json;nulls=stripped:
              schema:
                items:
                  $ref: '#/components/schemas/inventory_transactions'
                type: array
            text/csv:
              schema:
                items:
                  $ref: '#/components/schemas/inventory_transactions'
                type: array
          description: OK
        '206':
          description: Partial Content
components:
  parameters:
    rowFilter.inventory_transactions.id:
      in: query
      name: id
      required: false
      schema:
        type: string
    rowFilter.inventory_transactions.part_id:
      in: query
      name: part_id
      required: false
      schema:
        type: string
    rowFilter.inventory_transactions.part_number:
      in: query
      name: part_number
      required: false
      schema:
        type: string
    rowFilter.inventory_transactions.part_name:
      in: query
      name: part_name
      required: false
      schema:
        type: string
    rowFilter.inventory_transactions.unit_of_measure:
      in: query
      name: unit_of_measure
      required: false
      schema:
        type: string
    rowFilter.inventory_transactions.warehouse_id:
      in: query
      name: warehouse_id
      required: false
      schema:
        type: string
    rowFilter.inventory_transactions.warehouse_code:
      in: query
      name: warehouse_code
      required: false
      schema:
        type: string
    rowFilter.inventory_transactions.transaction_type:
      in: query
      name: transaction_type
      required: false
      schema:
        type: string
    rowFilter.inventory_transactions.quantity:
      in: query
      name: quantity
      required: false
      schema:
        type: string
    rowFilter.inventory_transactions.unit_cost:
      in: query
      name: unit_cost
      required: false
      schema:
        type: string
    rowFilter.inventory_transactions.total_cost:
      in: query
      name: total_cost
      required: false
      schema:
        type: string
    rowFilter.inventory_transactions.reason_code:
      in: query
      name: reason_code
      required: false
      schema:
        type: string
    rowFilter.inventory_transactions.notes:
      in: query
      name: notes
      required: false
      schema:
        type: string
    rowFilter.inventory_transactions.occurred_at:
      in: query
      name: occurred_at
      required: false
      schema:
        type: string
    rowFilter.inventory_transactions.source_type:
      in: query
      name: source_type
      required: false
      schema:
        type: string
    rowFilter.inventory_transactions.asset_id:
      in: query
      name: asset_id
      required: false
      schema:
        type: string
    rowFilter.inventory_transactions.asset_number:
      in: query
      name: asset_number
      required: false
      schema:
        type: string
    rowFilter.inventory_transactions.work_order_id:
      in: query
      name: work_order_id
      required: false
      schema:
        type: string
    rowFilter.inventory_transactions.work_order_number:
      in: query
      name: work_order_number
      required: false
      schema:
        type: string
    rowFilter.inventory_transactions.worker_id:
      in: query
      name: worker_id
      required: false
      schema:
        type: string
    rowFilter.inventory_transactions.worker_name:
      in: query
      name: worker_name
      required: false
      schema:
        type: string
    rowFilter.inventory_transactions.reverses_transaction_id:
      in: query
      name: reverses_transaction_id
      required: false
      schema:
        type: string
    rowFilter.inventory_transactions.created_at:
      in: query
      name: created_at
      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:
    inventory_transactions:
      description: The stock ledger. Every balance in the product is a sum of these rows.
      properties:
        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_number:
          format: character varying
          maxLength: 80
          type: string
        created_at:
          format: timestamp with time zone
          type: string
        id:
          description: |-
            Note:
            This is a Primary Key.<pk/>
          format: uuid
          type: string
        notes:
          format: text
          type: string
        occurred_at:
          format: timestamp with time zone
          type: string
        part_id:
          description: >-
            Note:

            This is a Foreign Key to `inventory_available.part_id`.<fk
            table='inventory_available' column='part_id'/>
          format: uuid
          type: string
        part_name:
          format: character varying
          maxLength: 250
          type: string
        part_number:
          format: character varying
          maxLength: 80
          type: string
        quantity:
          format: numeric
          type: number
        reason_code:
          format: character varying
          maxLength: 60
          type: string
        reverses_transaction_id:
          description: >-
            Note:

            This is a Foreign Key to `inventory_transactions.id`.<fk
            table='inventory_transactions' column='id'/>
          format: uuid
          type: string
        source_type:
          format: character varying
          maxLength: 40
          type: string
        total_cost:
          format: numeric
          type: number
        transaction_type:
          format: character varying
          maxLength: 30
          type: string
        unit_cost:
          format: numeric
          type: number
        unit_of_measure:
          format: character varying
          maxLength: 30
          type: string
        warehouse_code:
          format: character varying
          maxLength: 60
          type: string
        warehouse_id:
          description: >-
            Note:

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

            This is a Foreign Key to
            `inspection_failures.found_in_work_order_id`.<fk
            table='inspection_failures' column='found_in_work_order_id'/>
          format: uuid
          type: string
        work_order_number:
          format: character varying
          maxLength: 60
          type: string
        worker_id:
          description: >-
            Note:

            This is a Foreign Key to `technician_workload.worker_id`.<fk
            table='technician_workload' column='worker_id'/>
          format: uuid
          type: string
        worker_name:
          format: character varying
          maxLength: 200
          type: string
      type: object

````

## Related topics

- [Inside a part](/inventory/part-detail.md)
- [The asset lifecycle](/assets/lifecycle.md)
- [Statuses and transitions](/config/statuses.md)
- [Administered lists](/config/administered-lists.md)
- [Reports](/analytics/reports.md)
