> ## 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 request's lines and how each of them is being answered — ordered, taken from stock, given a spare, still to find, or called off.



## OpenAPI

````yaml /api-reference/openapi.json get /requisition_sourcing
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:
  /requisition_sourcing:
    get:
      tags:
        - Procurement
      summary: >-
        One request's lines and how each of them is being answered — ordered,
        taken from stock, given a spare, still to find, or called off.
      parameters:
        - $ref: '#/components/parameters/rowFilter.requisition_sourcing.id'
        - $ref: >-
            #/components/parameters/rowFilter.requisition_sourcing.purchase_requisition_id
        - $ref: >-
            #/components/parameters/rowFilter.requisition_sourcing.requisition_number
        - $ref: >-
            #/components/parameters/rowFilter.requisition_sourcing.requisition_title
        - $ref: '#/components/parameters/rowFilter.requisition_sourcing.priority'
        - $ref: '#/components/parameters/rowFilter.requisition_sourcing.submitted_at'
        - $ref: '#/components/parameters/rowFilter.requisition_sourcing.approved_at'
        - $ref: '#/components/parameters/rowFilter.requisition_sourcing.line_number'
        - $ref: '#/components/parameters/rowFilter.requisition_sourcing.kind'
        - $ref: '#/components/parameters/rowFilter.requisition_sourcing.part_id'
        - $ref: '#/components/parameters/rowFilter.requisition_sourcing.part_number'
        - $ref: '#/components/parameters/rowFilter.requisition_sourcing.part_name'
        - $ref: >-
            #/components/parameters/rowFilter.requisition_sourcing.asset_category_id
        - $ref: >-
            #/components/parameters/rowFilter.requisition_sourcing.asset_category
        - $ref: '#/components/parameters/rowFilter.requisition_sourcing.description'
        - $ref: '#/components/parameters/rowFilter.requisition_sourcing.site_id'
        - $ref: '#/components/parameters/rowFilter.requisition_sourcing.site_code'
        - $ref: '#/components/parameters/rowFilter.requisition_sourcing.site_name'
        - $ref: '#/components/parameters/rowFilter.requisition_sourcing.warehouse_id'
        - $ref: >-
            #/components/parameters/rowFilter.requisition_sourcing.warehouse_name
        - $ref: >-
            #/components/parameters/rowFilter.requisition_sourcing.quantity_requested
        - $ref: >-
            #/components/parameters/rowFilter.requisition_sourcing.unit_of_measure_id
        - $ref: >-
            #/components/parameters/rowFilter.requisition_sourcing.unit_of_measure
        - $ref: >-
            #/components/parameters/rowFilter.requisition_sourcing.quantity_ordered
        - $ref: >-
            #/components/parameters/rowFilter.requisition_sourcing.quantity_from_stock
        - $ref: >-
            #/components/parameters/rowFilter.requisition_sourcing.quantity_allocated
        - $ref: >-
            #/components/parameters/rowFilter.requisition_sourcing.quantity_outstanding
        - $ref: >-
            #/components/parameters/rowFilter.requisition_sourcing.available_anywhere
        - $ref: >-
            #/components/parameters/rowFilter.requisition_sourcing.spares_available
        - $ref: '#/components/parameters/rowFilter.requisition_sourcing.required_by'
        - $ref: >-
            #/components/parameters/rowFilter.requisition_sourcing.estimated_unit_cost
        - $ref: >-
            #/components/parameters/rowFilter.requisition_sourcing.estimated_unit_cost_currency_id
        - $ref: >-
            #/components/parameters/rowFilter.requisition_sourcing.suggested_vendor_id
        - $ref: >-
            #/components/parameters/rowFilter.requisition_sourcing.suggested_vendor
        - $ref: >-
            #/components/parameters/rowFilter.requisition_sourcing.requisition_status_code
        - $ref: >-
            #/components/parameters/rowFilter.requisition_sourcing.requisition_status
        - $ref: '#/components/parameters/rowFilter.requisition_sourcing.is_open'
        - $ref: >-
            #/components/parameters/rowFilter.requisition_sourcing.sourcing_closed_at
        - $ref: >-
            #/components/parameters/rowFilter.requisition_sourcing.sourcing_closed_reason
        - $ref: >-
            #/components/parameters/rowFilter.requisition_sourcing.sourcing_closed_by
        - $ref: '#/components/parameters/rowFilter.requisition_sourcing.row_version'
        - $ref: '#/components/parameters/rowFilter.requisition_sourcing.updated_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/requisition_sourcing'
                type: array
            application/vnd.pgrst.object+json:
              schema:
                items:
                  $ref: '#/components/schemas/requisition_sourcing'
                type: array
            application/vnd.pgrst.object+json;nulls=stripped:
              schema:
                items:
                  $ref: '#/components/schemas/requisition_sourcing'
                type: array
            text/csv:
              schema:
                items:
                  $ref: '#/components/schemas/requisition_sourcing'
                type: array
          description: OK
        '206':
          description: Partial Content
components:
  parameters:
    rowFilter.requisition_sourcing.id:
      in: query
      name: id
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.purchase_requisition_id:
      in: query
      name: purchase_requisition_id
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.requisition_number:
      in: query
      name: requisition_number
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.requisition_title:
      in: query
      name: requisition_title
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.priority:
      in: query
      name: priority
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.submitted_at:
      in: query
      name: submitted_at
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.approved_at:
      in: query
      name: approved_at
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.line_number:
      in: query
      name: line_number
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.kind:
      in: query
      name: kind
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.part_id:
      in: query
      name: part_id
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.part_number:
      in: query
      name: part_number
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.part_name:
      in: query
      name: part_name
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.asset_category_id:
      in: query
      name: asset_category_id
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.asset_category:
      in: query
      name: asset_category
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.description:
      in: query
      name: description
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.site_id:
      in: query
      name: site_id
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.site_code:
      in: query
      name: site_code
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.site_name:
      in: query
      name: site_name
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.warehouse_id:
      in: query
      name: warehouse_id
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.warehouse_name:
      in: query
      name: warehouse_name
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.quantity_requested:
      in: query
      name: quantity_requested
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.unit_of_measure_id:
      in: query
      name: unit_of_measure_id
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.unit_of_measure:
      in: query
      name: unit_of_measure
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.quantity_ordered:
      in: query
      name: quantity_ordered
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.quantity_from_stock:
      in: query
      name: quantity_from_stock
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.quantity_allocated:
      in: query
      name: quantity_allocated
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.quantity_outstanding:
      in: query
      name: quantity_outstanding
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.available_anywhere:
      in: query
      name: available_anywhere
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.spares_available:
      in: query
      name: spares_available
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.required_by:
      in: query
      name: required_by
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.estimated_unit_cost:
      in: query
      name: estimated_unit_cost
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.estimated_unit_cost_currency_id:
      in: query
      name: estimated_unit_cost_currency_id
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.suggested_vendor_id:
      in: query
      name: suggested_vendor_id
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.suggested_vendor:
      in: query
      name: suggested_vendor
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.requisition_status_code:
      in: query
      name: requisition_status_code
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.requisition_status:
      in: query
      name: requisition_status
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.is_open:
      in: query
      name: is_open
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.sourcing_closed_at:
      in: query
      name: sourcing_closed_at
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.sourcing_closed_reason:
      in: query
      name: sourcing_closed_reason
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.sourcing_closed_by:
      in: query
      name: sourcing_closed_by
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.row_version:
      in: query
      name: row_version
      required: false
      schema:
        type: string
    rowFilter.requisition_sourcing.updated_at:
      in: query
      name: updated_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:
    requisition_sourcing:
      description: >-
        One request's lines and how each of them is being answered — ordered,
        taken from stock, given a spare, still to find, or called off.
      properties:
        approved_at:
          format: timestamp with time zone
          type: string
        asset_category:
          format: character varying
          maxLength: 200
          type: string
        asset_category_id:
          description: >-
            Note:

            This is a Foreign Key to `asset_categories.id`.<fk
            table='asset_categories' column='id'/>
          format: uuid
          type: string
        available_anywhere:
          format: numeric
          type: number
        description:
          format: character varying
          maxLength: 500
          type: string
        estimated_unit_cost:
          format: numeric
          type: number
        estimated_unit_cost_currency_id:
          description: >-
            Note:

            This is a Foreign Key to `asset_cost_to_keep.currency_id`.<fk
            table='asset_cost_to_keep' column='currency_id'/>
          format: uuid
          type: string
        id:
          description: |-
            Note:
            This is a Primary Key.<pk/>
          format: uuid
          type: string
        is_open:
          format: boolean
          type: boolean
        kind:
          format: character varying
          maxLength: 10
          type: string
        line_number:
          format: integer
          type: integer
        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
        priority:
          format: character varying
          maxLength: 20
          type: string
        purchase_requisition_id:
          description: >-
            Note:

            This is a Foreign Key to
            `purchase_recommendations.purchase_requisition_id`.<fk
            table='purchase_recommendations' column='purchase_requisition_id'/>
          format: uuid
          type: string
        quantity_allocated:
          format: numeric
          type: number
        quantity_from_stock:
          format: numeric
          type: number
        quantity_ordered:
          format: numeric
          type: number
        quantity_outstanding:
          format: numeric
          type: number
        quantity_requested:
          format: numeric
          type: number
        required_by:
          format: date
          type: string
        requisition_number:
          format: character varying
          maxLength: 60
          type: string
        requisition_status:
          format: character varying
          maxLength: 150
          type: string
        requisition_status_code:
          format: character varying
          maxLength: 60
          type: string
        requisition_title:
          format: character varying
          maxLength: 250
          type: string
        row_version:
          format: bigint
          type: integer
        site_code:
          format: character varying
          maxLength: 50
          type: string
        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
        site_name:
          format: character varying
          maxLength: 200
          type: string
        sourcing_closed_at:
          format: timestamp with time zone
          type: string
        sourcing_closed_by:
          format: character varying
          maxLength: 200
          type: string
        sourcing_closed_reason:
          format: text
          type: string
        spares_available:
          format: bigint
          type: integer
        submitted_at:
          format: timestamp with time zone
          type: string
        suggested_vendor:
          format: character varying
          maxLength: 200
          type: string
        suggested_vendor_id:
          description: >-
            Note:

            This is a Foreign Key to `assignable_vendors.id`.<fk
            table='assignable_vendors' column='id'/>
          format: uuid
          type: string
        unit_of_measure:
          format: character varying
          maxLength: 30
          type: string
        unit_of_measure_id:
          description: >-
            Note:

            This is a Foreign Key to `units_of_measure.id`.<fk
            table='units_of_measure' column='id'/>
          format: uuid
          type: string
        updated_at:
          format: timestamp with time zone
          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

````