---
title: "List all inventory codes"
method: GET
path: "/ext/v2/inventory-codes/"
tags: ["Inventory"]
---

# List all inventory codes

`GET /ext/v2/inventory-codes/`

## Request

- Base URL: `https://connect.vetcove.com`
- URL: `https://connect.vetcove.com/ext/v2/inventory-codes/`
- Auth: HTTP bearer

This endpoint is available to Group API Keys only.

Returns a list of all inventory codes in the organization. The inventory codes are sorted by creation date, with the most recent appearing first.

An **inventory code** represents a trackable supply item used within a clinic (e.g., a specific medication, vaccine vial, or consumable) and can be configured at the organization level with clinic-specific overrides.

## Query parameters

- `ids` integer[], nullable: When provided, filters to objects with these IDs.
- `ending_before` integer, nullable: A cursor used for pagination. Fetches the page of results ending immediately before the object with the given ID. Cannot be used at the same time as `starting_after`.
- `starting_after` integer, nullable: A cursor used for pagination. Fetches the page of results starting immediately after the given ID. Cannot be used at the same time as `ending_before`.
- `limit` integer: The maximum number of items to return per page.
- `code` string, nullable: When provided, filters inventory codes by the code

## Response `200`

OK

- ExternalInventoryCodeSchemaList
  - `data` ExternalInventoryCodeSchema[], required: A single page of data contained within this list.
    - `category_id` integer, required: The ID of the inventory category for this inventory code
    - `code` string, required: The global code assigned to this type of inventory at Vetcove
    - `effective_preferences` EffectiveInventoryPreference, required
      - `clinic_location_group_ids` integer[], required: Which clinic location groups this inventory code is relevant to within your organization
      - `grade` union, required: The grade (importance) assigned to this type of inventory by your organization
        - 'A' | 'B' | 'C' | 'D' | 'X'
        - ''
      - `is_enabled` boolean, required: Whether this inventory code is enabled for your organization
      - `name` string, required: The name assigned to this type of inventory for your organization
      - `unit_of_measure` 'APPLICATOR' | 'BAG' | 'BOTTLE' | 'BOX' | 'BUCKET' | 'CAN' | 'CAPLET' | 'CAPSULE' | 'CASE' | 'CATHETER' | 'CHEW' | 'COLLAR' | 'DOSE' | 'EACH' | 'GRAM' | 'GALLON' | 'JAR' | 'KIT' | 'POUND' | 'LITER' | 'MILLILITER' | 'NEEDLE' | 'OUNCE' | 'PACKET' | 'PAIR' | 'PIPETTE' | 'PURCHASING_UNIT' | 'QUART' | 'ROLL' | 'SUTURE' | 'SYRINGE' | 'TABLET' | 'TEST' | 'TRAY' | 'TUB' | 'TUBE' | 'VIAL' | 'YARD', required
    - `global_preferences` GlobalInventoryPreference, required
      - `name` string, required: The global name assigned to this type of inventory at Vetcove
      - `unit_of_measure` 'APPLICATOR' | 'BAG' | 'BOTTLE' | 'BOX' | 'BUCKET' | 'CAN' | 'CAPLET' | 'CAPSULE' | 'CASE' | 'CATHETER' | 'CHEW' | 'COLLAR' | 'DOSE' | 'EACH' | 'GRAM' | 'GALLON' | 'JAR' | 'KIT' | 'POUND' | 'LITER' | 'MILLILITER' | 'NEEDLE' | 'OUNCE' | 'PACKET' | 'PAIR' | 'PIPETTE' | 'PURCHASING_UNIT' | 'QUART' | 'ROLL' | 'SUTURE' | 'SYRINGE' | 'TABLET' | 'TEST' | 'TRAY' | 'TUB' | 'TUBE' | 'VIAL' | 'YARD', required
    - `id` integer, required: The unique identifier for the inventory code
    - `kind` union, required: The kind of the inventory code
      - 'STANDARD' | 'CUSTOM_ROLLUP' | 'CUSTOM'
      - ''
    - `organization_preferences` OrganizationInventoryPreference, required
      - `clinic_location_group_ids` integer[], required: Which clinic location groups this inventory code is relevant to within your organization
      - `grade` union, required: The grade (importance) assigned to this type of inventory by your organization
        - 'A' | 'B' | 'C' | 'D' | 'X'
        - ''
      - `is_enabled` boolean, required: Whether this inventory code is enabled for your organization
      - `name` string, nullable, required: The name assigned to this type of inventory by your organization. Can be null if you are inheriting Vetcove's default
      - `unit_of_measure` 'APPLICATOR' | 'BAG' | 'BOTTLE' | 'BOX' | 'BUCKET' | 'CAN' | 'CAPLET' | 'CAPSULE' | 'CASE' | 'CATHETER' | 'CHEW' | 'COLLAR' | 'DOSE' | 'EACH' | 'GRAM' | 'GALLON' | 'JAR' | 'KIT' | 'POUND' | 'LITER' | 'MILLILITER' | 'NEEDLE' | 'OUNCE' | 'PACKET' | 'PAIR' | 'PIPETTE' | 'PURCHASING_UNIT' | 'QUART' | 'ROLL' | 'SUTURE' | 'SYRINGE' | 'TABLET' | 'TEST' | 'TRAY' | 'TUB' | 'TUBE' | 'VIAL' | 'YARD', required
  - `has_more` boolean: Whether there are more pages or data in this list.
  - `next_page` string, required: A URL linking to the next page of this list.
  - `type` string: Type of this object. Always `list`.

---

[API](https://skmtc.dev/vetcove/apis/ninjaapi.md) - [All operations](https://skmtc.dev/vetcove/apis/ninjaapi/llms.txt) - [OpenAPI document](https://skmtc.dev/vetcove/apis/ninjaapi/revisions/4ceaed956e15?raw)
