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

# Supplier invoices with the three-way match verdict, what it disagrees with, and what has been

> paid against it. `payment_status` is UNPAID, PART_PAID or PAID and is only about money — an invoice
nobody approved is UNPAID and will stay so, and `status` is what says why.



## OpenAPI

````yaml /api-reference/openapi.json get /supplier_invoices
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:
  /supplier_invoices:
    get:
      tags:
        - Procurement
      summary: >-
        Supplier invoices with the three-way match verdict, what it disagrees
        with, and what has been
      description: >-
        paid against it. `payment_status` is UNPAID, PART_PAID or PAID and is
        only about money — an invoice

        nobody approved is UNPAID and will stay so, and `status` is what says
        why.
      parameters:
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.id'
        - $ref: >-
            #/components/parameters/rowFilter.supplier_invoices.purchase_order_id
        - $ref: >-
            #/components/parameters/rowFilter.supplier_invoices.purchase_order_number
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.site_id'
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.site_name'
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.vendor_id'
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.vendor_number'
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.vendor_name'
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.invoice_number'
        - $ref: >-
            #/components/parameters/rowFilter.supplier_invoices.vendor_invoice_number
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.invoice_date'
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.due_date'
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.received_at'
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.status'
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.match_status'
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.subtotal_amount'
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.tax_amount'
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.shipping_amount'
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.total_amount'
        - $ref: >-
            #/components/parameters/rowFilter.supplier_invoices.matched_total_amount
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.variance_amount'
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.currency_id'
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.currency_code'
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.matched_at'
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.matched_by'
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.approved_at'
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.approved_by'
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.disputed_at'
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.dispute_reason'
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.exported_at'
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.notes'
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.payment_overdue'
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.line_count'
        - $ref: >-
            #/components/parameters/rowFilter.supplier_invoices.lines_in_variance
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.paid_amount'
        - $ref: >-
            #/components/parameters/rowFilter.supplier_invoices.outstanding_amount
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.payment_status'
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.last_paid_on'
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.payment_count'
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.row_version'
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.created_at'
        - $ref: '#/components/parameters/rowFilter.supplier_invoices.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/supplier_invoices'
                type: array
            application/vnd.pgrst.object+json:
              schema:
                items:
                  $ref: '#/components/schemas/supplier_invoices'
                type: array
            application/vnd.pgrst.object+json;nulls=stripped:
              schema:
                items:
                  $ref: '#/components/schemas/supplier_invoices'
                type: array
            text/csv:
              schema:
                items:
                  $ref: '#/components/schemas/supplier_invoices'
                type: array
          description: OK
        '206':
          description: Partial Content
components:
  parameters:
    rowFilter.supplier_invoices.id:
      in: query
      name: id
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.purchase_order_id:
      in: query
      name: purchase_order_id
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.purchase_order_number:
      in: query
      name: purchase_order_number
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.site_id:
      in: query
      name: site_id
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.site_name:
      in: query
      name: site_name
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.vendor_id:
      in: query
      name: vendor_id
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.vendor_number:
      in: query
      name: vendor_number
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.vendor_name:
      in: query
      name: vendor_name
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.invoice_number:
      in: query
      name: invoice_number
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.vendor_invoice_number:
      in: query
      name: vendor_invoice_number
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.invoice_date:
      in: query
      name: invoice_date
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.due_date:
      in: query
      name: due_date
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.received_at:
      in: query
      name: received_at
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.status:
      in: query
      name: status
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.match_status:
      in: query
      name: match_status
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.subtotal_amount:
      in: query
      name: subtotal_amount
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.tax_amount:
      in: query
      name: tax_amount
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.shipping_amount:
      in: query
      name: shipping_amount
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.total_amount:
      in: query
      name: total_amount
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.matched_total_amount:
      in: query
      name: matched_total_amount
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.variance_amount:
      in: query
      name: variance_amount
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.currency_id:
      in: query
      name: currency_id
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.currency_code:
      in: query
      name: currency_code
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.matched_at:
      in: query
      name: matched_at
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.matched_by:
      in: query
      name: matched_by
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.approved_at:
      in: query
      name: approved_at
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.approved_by:
      in: query
      name: approved_by
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.disputed_at:
      in: query
      name: disputed_at
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.dispute_reason:
      in: query
      name: dispute_reason
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.exported_at:
      in: query
      name: exported_at
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.notes:
      in: query
      name: notes
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.payment_overdue:
      in: query
      name: payment_overdue
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.line_count:
      in: query
      name: line_count
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.lines_in_variance:
      in: query
      name: lines_in_variance
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.paid_amount:
      in: query
      name: paid_amount
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.outstanding_amount:
      in: query
      name: outstanding_amount
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.payment_status:
      in: query
      name: payment_status
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.last_paid_on:
      in: query
      name: last_paid_on
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.payment_count:
      in: query
      name: payment_count
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.row_version:
      in: query
      name: row_version
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.created_at:
      in: query
      name: created_at
      required: false
      schema:
        type: string
    rowFilter.supplier_invoices.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:
    supplier_invoices:
      description: >-
        Supplier invoices with the three-way match verdict, what it disagrees
        with, and what has been

        paid against it. `payment_status` is UNPAID, PART_PAID or PAID and is
        only about money — an invoice

        nobody approved is UNPAID and will stay so, and `status` is what says
        why.
      properties:
        approved_at:
          format: timestamp with time zone
          type: string
        approved_by:
          format: character varying
          maxLength: 200
          type: string
        created_at:
          format: timestamp with time zone
          type: string
        currency_code:
          format: character varying
          maxLength: 3
          type: string
        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
        dispute_reason:
          format: text
          type: string
        disputed_at:
          format: timestamp with time zone
          type: string
        due_date:
          format: date
          type: string
        exported_at:
          format: timestamp with time zone
          type: string
        id:
          description: |-
            Note:
            This is a Primary Key.<pk/>
          format: uuid
          type: string
        invoice_date:
          format: date
          type: string
        invoice_number:
          format: character varying
          maxLength: 60
          type: string
        last_paid_on:
          format: date
          type: string
        line_count:
          format: bigint
          type: integer
        lines_in_variance:
          format: bigint
          type: integer
        match_status:
          format: character varying
          maxLength: 30
          type: string
        matched_at:
          format: timestamp with time zone
          type: string
        matched_by:
          format: character varying
          maxLength: 200
          type: string
        matched_total_amount:
          format: numeric
          type: number
        notes:
          format: text
          type: string
        outstanding_amount:
          format: numeric
          type: number
        paid_amount:
          format: numeric
          type: number
        payment_count:
          format: bigint
          type: integer
        payment_overdue:
          format: boolean
          type: boolean
        payment_status:
          format: text
          type: string
        purchase_order_id:
          description: >-
            Note:

            This is a Foreign Key to
            `open_purchase_orders.purchase_order_id`.<fk
            table='open_purchase_orders' column='purchase_order_id'/>
          format: uuid
          type: string
        purchase_order_number:
          format: character varying
          maxLength: 60
          type: string
        received_at:
          format: timestamp with time zone
          type: string
        row_version:
          format: bigint
          type: integer
        shipping_amount:
          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
        site_name:
          format: character varying
          maxLength: 200
          type: string
        status:
          format: character varying
          maxLength: 30
          type: string
        subtotal_amount:
          format: numeric
          type: number
        tax_amount:
          format: numeric
          type: number
        total_amount:
          format: numeric
          type: number
        updated_at:
          format: timestamp with time zone
          type: string
        variance_amount:
          format: numeric
          type: number
        vendor_id:
          description: >-
            Note:

            This is a Foreign Key to `assignable_vendors.id`.<fk
            table='assignable_vendors' column='id'/>
          format: uuid
          type: string
        vendor_invoice_number:
          format: character varying
          maxLength: 120
          type: string
        vendor_name:
          format: character varying
          maxLength: 200
          type: string
        vendor_number:
          format: character varying
          maxLength: 60
          type: string
      type: object

````