Skip to main content
GET
List all inventory codes for a clinic

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

clinic_id
integer
required

The ID of the clinic to fetch inventory codes for

Query Parameters

ids
integer[] | null

When provided, filters to objects with these IDs.

ending_before
integer | null

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 | null

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
default:10

The maximum number of items to return per page.

Required range: 1 <= x <= 100
code
string | null

When provided, filters inventory codes by the code

is_enabled
boolean | null

When provided, filters inventory codes by their enabled status for the clinic. When true, returns only enabled inventory codes. When false, returns only disabled inventory codes.

status
enum<string> | null

When provided, filters inventory codes by their stock status

Available options:
OUT_OF_STOCK,
LOW_STOCK,
IN_STOCK,
UNKNOWN
category_id
integer | null

When provided, limits results to inventory codes whose global inventory belongs to this category.

Response

200 - application/json

OK

data
ExternalClinicInventoryCodeSchema · object[]
required

A single page of data contained within this list.

next_page
string
required

A URL linking to the next page of this list.

has_more
boolean
default:false

Whether there are more pages or data in this list.

type
string
default:list

Type of this object. Always list.