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

# Which of your sites a vendor covers, and what they have committed to each.

> Response time and whether travel is charged, which is what routing reads before it proposes them.



## OpenAPI

````yaml /api-reference/openapi.json get /vendor_sites
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:
  /vendor_sites:
    get:
      tags:
        - Vendors and contracts
      summary: >-
        Which of your sites a vendor covers, and what they have committed to
        each.
      description: >-
        Response time and whether travel is charged, which is what routing reads
        before it proposes them.
      parameters:
        - $ref: '#/components/parameters/rowFilter.vendor_sites.id'
        - $ref: '#/components/parameters/rowFilter.vendor_sites.vendor_id'
        - $ref: '#/components/parameters/rowFilter.vendor_sites.site_id'
        - $ref: '#/components/parameters/rowFilter.vendor_sites.site_code'
        - $ref: '#/components/parameters/rowFilter.vendor_sites.site_name'
        - $ref: '#/components/parameters/rowFilter.vendor_sites.is_preferred'
        - $ref: '#/components/parameters/rowFilter.vendor_sites.response_time_minutes'
        - $ref: '#/components/parameters/rowFilter.vendor_sites.travel_charge_applies'
        - $ref: '#/components/parameters/rowFilter.vendor_sites.notes'
        - $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/vendor_sites'
                type: array
            application/vnd.pgrst.object+json:
              schema:
                items:
                  $ref: '#/components/schemas/vendor_sites'
                type: array
            application/vnd.pgrst.object+json;nulls=stripped:
              schema:
                items:
                  $ref: '#/components/schemas/vendor_sites'
                type: array
            text/csv:
              schema:
                items:
                  $ref: '#/components/schemas/vendor_sites'
                type: array
          description: OK
        '206':
          description: Partial Content
components:
  parameters:
    rowFilter.vendor_sites.id:
      in: query
      name: id
      required: false
      schema:
        type: string
    rowFilter.vendor_sites.vendor_id:
      in: query
      name: vendor_id
      required: false
      schema:
        type: string
    rowFilter.vendor_sites.site_id:
      in: query
      name: site_id
      required: false
      schema:
        type: string
    rowFilter.vendor_sites.site_code:
      in: query
      name: site_code
      required: false
      schema:
        type: string
    rowFilter.vendor_sites.site_name:
      in: query
      name: site_name
      required: false
      schema:
        type: string
    rowFilter.vendor_sites.is_preferred:
      in: query
      name: is_preferred
      required: false
      schema:
        type: string
    rowFilter.vendor_sites.response_time_minutes:
      in: query
      name: response_time_minutes
      required: false
      schema:
        type: string
    rowFilter.vendor_sites.travel_charge_applies:
      in: query
      name: travel_charge_applies
      required: false
      schema:
        type: string
    rowFilter.vendor_sites.notes:
      in: query
      name: notes
      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:
    vendor_sites:
      description: >-
        Which of your sites a vendor covers, and what they have committed to
        each.


        Response time and whether travel is charged, which is what routing reads
        before it proposes them.
      properties:
        id:
          description: |-
            Note:
            This is a Primary Key.<pk/>
          format: uuid
          type: string
        is_preferred:
          format: boolean
          type: boolean
        notes:
          format: text
          type: string
        response_time_minutes:
          format: integer
          type: integer
        site_code:
          format: character varying
          maxLength: 50
          type: string
        site_id:
          description: >-
            Note:

            This is a Foreign Key to `site_settings.id`.<fk
            table='site_settings' column='id'/>
          format: uuid
          type: string
        site_name:
          format: character varying
          maxLength: 200
          type: string
        travel_charge_applies:
          format: boolean
          type: boolean
        vendor_id:
          description: >-
            Note:

            This is a Foreign Key to `vendor_directory.vendor_id`.<fk
            table='vendor_directory' column='vendor_id'/>
          format: uuid
          type: string
      type: object

````

## Related topics

- [Inside a vendor](/commercial/vendor-detail.md)
- [Vendors](/commercial/vendors.md)
- [Setting up the plant](/setup/overview.md)
- [Inside a work order](/work/work-order-detail.md)
- [Sites and organisation](/setup/sites.md)
