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

# Stores with their bins, what is in them, and whether the ledger is allowed to go negative.



## OpenAPI

````yaml /api-reference/openapi.json get /warehouse_settings
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:
  /warehouse_settings:
    get:
      tags:
        - Inventory configuration
      summary: >-
        Stores with their bins, what is in them, and whether the ledger is
        allowed to go negative.
      parameters:
        - $ref: '#/components/parameters/rowFilter.warehouse_settings.id'
        - $ref: '#/components/parameters/rowFilter.warehouse_settings.code'
        - $ref: '#/components/parameters/rowFilter.warehouse_settings.name'
        - $ref: '#/components/parameters/rowFilter.warehouse_settings.site_id'
        - $ref: '#/components/parameters/rowFilter.warehouse_settings.site_code'
        - $ref: '#/components/parameters/rowFilter.warehouse_settings.site_name'
        - $ref: '#/components/parameters/rowFilter.warehouse_settings.location_id'
        - $ref: '#/components/parameters/rowFilter.warehouse_settings.warehouse_type'
        - $ref: >-
            #/components/parameters/rowFilter.warehouse_settings.keeper_worker_id
        - $ref: '#/components/parameters/rowFilter.warehouse_settings.keeper_name'
        - $ref: >-
            #/components/parameters/rowFilter.warehouse_settings.allows_negative_stock
        - $ref: '#/components/parameters/rowFilter.warehouse_settings.is_active'
        - $ref: '#/components/parameters/rowFilter.warehouse_settings.bins'
        - $ref: '#/components/parameters/rowFilter.warehouse_settings.parts_stocked'
        - $ref: '#/components/parameters/rowFilter.warehouse_settings.units_on_hand'
        - $ref: '#/components/parameters/rowFilter.warehouse_settings.negative_rows'
        - $ref: '#/components/parameters/rowFilter.warehouse_settings.row_version'
        - $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/warehouse_settings'
                type: array
            application/vnd.pgrst.object+json:
              schema:
                items:
                  $ref: '#/components/schemas/warehouse_settings'
                type: array
            application/vnd.pgrst.object+json;nulls=stripped:
              schema:
                items:
                  $ref: '#/components/schemas/warehouse_settings'
                type: array
            text/csv:
              schema:
                items:
                  $ref: '#/components/schemas/warehouse_settings'
                type: array
          description: OK
        '206':
          description: Partial Content
components:
  parameters:
    rowFilter.warehouse_settings.id:
      in: query
      name: id
      required: false
      schema:
        type: string
    rowFilter.warehouse_settings.code:
      in: query
      name: code
      required: false
      schema:
        type: string
    rowFilter.warehouse_settings.name:
      in: query
      name: name
      required: false
      schema:
        type: string
    rowFilter.warehouse_settings.site_id:
      in: query
      name: site_id
      required: false
      schema:
        type: string
    rowFilter.warehouse_settings.site_code:
      in: query
      name: site_code
      required: false
      schema:
        type: string
    rowFilter.warehouse_settings.site_name:
      in: query
      name: site_name
      required: false
      schema:
        type: string
    rowFilter.warehouse_settings.location_id:
      in: query
      name: location_id
      required: false
      schema:
        type: string
    rowFilter.warehouse_settings.warehouse_type:
      in: query
      name: warehouse_type
      required: false
      schema:
        type: string
    rowFilter.warehouse_settings.keeper_worker_id:
      in: query
      name: keeper_worker_id
      required: false
      schema:
        type: string
    rowFilter.warehouse_settings.keeper_name:
      in: query
      name: keeper_name
      required: false
      schema:
        type: string
    rowFilter.warehouse_settings.allows_negative_stock:
      in: query
      name: allows_negative_stock
      required: false
      schema:
        type: string
    rowFilter.warehouse_settings.is_active:
      in: query
      name: is_active
      required: false
      schema:
        type: string
    rowFilter.warehouse_settings.bins:
      in: query
      name: bins
      required: false
      schema:
        type: string
    rowFilter.warehouse_settings.parts_stocked:
      in: query
      name: parts_stocked
      required: false
      schema:
        type: string
    rowFilter.warehouse_settings.units_on_hand:
      in: query
      name: units_on_hand
      required: false
      schema:
        type: string
    rowFilter.warehouse_settings.negative_rows:
      in: query
      name: negative_rows
      required: false
      schema:
        type: string
    rowFilter.warehouse_settings.row_version:
      in: query
      name: row_version
      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:
    warehouse_settings:
      description: >-
        Stores with their bins, what is in them, and whether the ledger is
        allowed to go negative.
      properties:
        allows_negative_stock:
          format: boolean
          type: boolean
        bins:
          format: bigint
          type: integer
        code:
          format: character varying
          maxLength: 60
          type: string
        id:
          description: |-
            Note:
            This is a Primary Key.<pk/>
          format: uuid
          type: string
        is_active:
          format: boolean
          type: boolean
        keeper_name:
          format: character varying
          maxLength: 200
          type: string
        keeper_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
        location_id:
          description: >-
            Note:

            This is a Foreign Key to `location_settings.id`.<fk
            table='location_settings' column='id'/>
          format: uuid
          type: string
        name:
          format: character varying
          maxLength: 200
          type: string
        negative_rows:
          format: bigint
          type: integer
        parts_stocked:
          format: bigint
          type: integer
        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 `site_settings.id`.<fk
            table='site_settings' column='id'/>
          format: uuid
          type: string
        site_name:
          format: character varying
          maxLength: 200
          type: string
        units_on_hand:
          format: numeric
          type: number
        warehouse_type:
          format: character varying
          maxLength: 30
          type: string
      type: object

````

## Related topics

- [Organisation settings](/setup/organisation.md)
- [Inside a part](/inventory/part-detail.md)
- [The dispatch board](/work/dispatch.md)
- [Setting up the plant](/setup/overview.md)
- [Inventory settings](/config/inventory.md)
