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

# Part consumption with every field of the records each row points at: part, warehouse.

> Choose this source when one report needs columns from more than one register. Every list, export and dashboard reads the base view instead, which costs none of these joins — and the planner does not remove them when the columns go unnamed, so the two are separate sources on purpose.



## OpenAPI

````yaml /api-reference/openapi.json get /part_consumption_expanded
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:
  /part_consumption_expanded:
    get:
      tags:
        - part_consumption_expanded
      summary: >-
        Part consumption with every field of the records each row points at:
        part, warehouse.
      description: >-
        Choose this source when one report needs columns from more than one
        register. Every list, export and dashboard reads the base view instead,
        which costs none of these joins — and the planner does not remove them
        when the columns go unnamed, so the two are separate sources on purpose.
      parameters:
        - $ref: '#/components/parameters/rowFilter.part_consumption_expanded.id'
        - $ref: '#/components/parameters/rowFilter.part_consumption_expanded.part_id'
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.part_number
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.part_name
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.warehouse_id
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.warehouse_code
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.warehouse_name
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.period_start
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.period_end
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.quantity_consumed
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.planned_quantity
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.unplanned_quantity
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.planned_share
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.issue_count
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.asset_count
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.consumption_cost
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.computed_at
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.part__part_number
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.part__name
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.part__description
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.part__part_category
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.part__unit_of_measure
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.part__criticality
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.part__tracking_mode
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.part__is_stocked
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.part__is_consumable
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.part__is_active
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.part__on_hand_quantity
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.part__reserved_quantity
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.part__available_quantity
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.part__on_order_quantity
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.part__reorder_point
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.part__at_or_below_reorder_point
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.part__lead_time_days
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.part__open_recommendations
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.part__shortages_12m
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.part__shortages_that_stopped_work
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.part__created_at
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.part__created_by_name
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.part__updated_at
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.part__updated_by_name
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.warehouse__code
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.warehouse__name
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.warehouse__site_code
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.warehouse__site_name
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.warehouse__warehouse_type
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.warehouse__keeper_name
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.warehouse__allows_negative_stock
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.warehouse__is_active
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.warehouse__bins
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.warehouse__parts_stocked
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.warehouse__units_on_hand
        - $ref: >-
            #/components/parameters/rowFilter.part_consumption_expanded.warehouse__negative_rows
        - $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/part_consumption_expanded'
                type: array
            application/vnd.pgrst.object+json:
              schema:
                items:
                  $ref: '#/components/schemas/part_consumption_expanded'
                type: array
            application/vnd.pgrst.object+json;nulls=stripped:
              schema:
                items:
                  $ref: '#/components/schemas/part_consumption_expanded'
                type: array
            text/csv:
              schema:
                items:
                  $ref: '#/components/schemas/part_consumption_expanded'
                type: array
          description: OK
        '206':
          description: Partial Content
components:
  parameters:
    rowFilter.part_consumption_expanded.id:
      in: query
      name: id
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.part_id:
      in: query
      name: part_id
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.part_number:
      in: query
      name: part_number
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.part_name:
      in: query
      name: part_name
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.warehouse_id:
      in: query
      name: warehouse_id
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.warehouse_code:
      in: query
      name: warehouse_code
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.warehouse_name:
      in: query
      name: warehouse_name
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.period_start:
      in: query
      name: period_start
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.period_end:
      in: query
      name: period_end
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.quantity_consumed:
      in: query
      name: quantity_consumed
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.planned_quantity:
      in: query
      name: planned_quantity
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.unplanned_quantity:
      in: query
      name: unplanned_quantity
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.planned_share:
      in: query
      name: planned_share
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.issue_count:
      in: query
      name: issue_count
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.asset_count:
      in: query
      name: asset_count
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.consumption_cost:
      in: query
      name: consumption_cost
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.computed_at:
      in: query
      name: computed_at
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.part__part_number:
      in: query
      name: part__part_number
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.part__name:
      in: query
      name: part__name
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.part__description:
      in: query
      name: part__description
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.part__part_category:
      in: query
      name: part__part_category
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.part__unit_of_measure:
      in: query
      name: part__unit_of_measure
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.part__criticality:
      in: query
      name: part__criticality
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.part__tracking_mode:
      in: query
      name: part__tracking_mode
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.part__is_stocked:
      in: query
      name: part__is_stocked
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.part__is_consumable:
      in: query
      name: part__is_consumable
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.part__is_active:
      in: query
      name: part__is_active
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.part__on_hand_quantity:
      in: query
      name: part__on_hand_quantity
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.part__reserved_quantity:
      in: query
      name: part__reserved_quantity
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.part__available_quantity:
      in: query
      name: part__available_quantity
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.part__on_order_quantity:
      in: query
      name: part__on_order_quantity
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.part__reorder_point:
      in: query
      name: part__reorder_point
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.part__at_or_below_reorder_point:
      in: query
      name: part__at_or_below_reorder_point
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.part__lead_time_days:
      in: query
      name: part__lead_time_days
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.part__open_recommendations:
      in: query
      name: part__open_recommendations
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.part__shortages_12m:
      in: query
      name: part__shortages_12m
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.part__shortages_that_stopped_work:
      in: query
      name: part__shortages_that_stopped_work
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.part__created_at:
      in: query
      name: part__created_at
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.part__created_by_name:
      in: query
      name: part__created_by_name
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.part__updated_at:
      in: query
      name: part__updated_at
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.part__updated_by_name:
      in: query
      name: part__updated_by_name
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.warehouse__code:
      in: query
      name: warehouse__code
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.warehouse__name:
      in: query
      name: warehouse__name
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.warehouse__site_code:
      in: query
      name: warehouse__site_code
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.warehouse__site_name:
      in: query
      name: warehouse__site_name
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.warehouse__warehouse_type:
      in: query
      name: warehouse__warehouse_type
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.warehouse__keeper_name:
      in: query
      name: warehouse__keeper_name
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.warehouse__allows_negative_stock:
      in: query
      name: warehouse__allows_negative_stock
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.warehouse__is_active:
      in: query
      name: warehouse__is_active
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.warehouse__bins:
      in: query
      name: warehouse__bins
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.warehouse__parts_stocked:
      in: query
      name: warehouse__parts_stocked
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.warehouse__units_on_hand:
      in: query
      name: warehouse__units_on_hand
      required: false
      schema:
        type: string
    rowFilter.part_consumption_expanded.warehouse__negative_rows:
      in: query
      name: warehouse__negative_rows
      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:
    part_consumption_expanded:
      description: >-
        Part consumption with every field of the records each row points at:
        part, warehouse.


        Choose this source when one report needs columns from more than one
        register. Every list, export and dashboard reads the base view instead,
        which costs none of these joins — and the planner does not remove them
        when the columns go unnamed, so the two are separate sources on purpose.
      properties:
        asset_count:
          format: integer
          type: integer
        computed_at:
          format: timestamp with time zone
          type: string
        consumption_cost:
          format: numeric
          type: number
        id:
          description: |-
            Note:
            This is a Primary Key.<pk/>
          format: uuid
          type: string
        issue_count:
          format: integer
          type: integer
        part__at_or_below_reorder_point:
          format: boolean
          type: boolean
        part__available_quantity:
          format: numeric
          type: number
        part__created_at:
          format: timestamp with time zone
          type: string
        part__created_by_name:
          format: character varying
          maxLength: 200
          type: string
        part__criticality:
          format: character varying
          maxLength: 20
          type: string
        part__description:
          format: text
          type: string
        part__is_active:
          format: boolean
          type: boolean
        part__is_consumable:
          format: boolean
          type: boolean
        part__is_stocked:
          format: boolean
          type: boolean
        part__lead_time_days:
          format: integer
          type: integer
        part__name:
          format: character varying
          maxLength: 250
          type: string
        part__on_hand_quantity:
          format: numeric
          type: number
        part__on_order_quantity:
          format: numeric
          type: number
        part__open_recommendations:
          format: bigint
          type: integer
        part__part_category:
          format: character varying
          maxLength: 60
          type: string
        part__part_number:
          format: character varying
          maxLength: 80
          type: string
        part__reorder_point:
          format: numeric
          type: number
        part__reserved_quantity:
          format: numeric
          type: number
        part__shortages_12m:
          format: bigint
          type: integer
        part__shortages_that_stopped_work:
          format: bigint
          type: integer
        part__tracking_mode:
          format: character varying
          maxLength: 20
          type: string
        part__unit_of_measure:
          format: character varying
          maxLength: 30
          type: string
        part__updated_at:
          format: timestamp with time zone
          type: string
        part__updated_by_name:
          format: character varying
          maxLength: 200
          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
        period_end:
          format: date
          type: string
        period_start:
          format: date
          type: string
        planned_quantity:
          format: numeric
          type: number
        planned_share:
          format: numeric
          type: number
        quantity_consumed:
          format: numeric
          type: number
        unplanned_quantity:
          format: numeric
          type: number
        warehouse__allows_negative_stock:
          format: boolean
          type: boolean
        warehouse__bins:
          format: bigint
          type: integer
        warehouse__code:
          format: character varying
          maxLength: 60
          type: string
        warehouse__is_active:
          format: boolean
          type: boolean
        warehouse__keeper_name:
          format: character varying
          maxLength: 200
          type: string
        warehouse__name:
          format: character varying
          maxLength: 200
          type: string
        warehouse__negative_rows:
          format: bigint
          type: integer
        warehouse__parts_stocked:
          format: bigint
          type: integer
        warehouse__site_code:
          format: character varying
          maxLength: 50
          type: string
        warehouse__site_name:
          format: character varying
          maxLength: 200
          type: string
        warehouse__units_on_hand:
          format: numeric
          type: number
        warehouse__warehouse_type:
          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
        warehouse_name:
          format: character varying
          maxLength: 200
          type: string
      type: object

````