Availability for up to 100 items, by id or by identifier.
curl --request POST \
--url https://api.clinikehr.com/v1/v1/clinics/{clinic_id}/inventory/availability \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"entries": [
{
"item_id": "9c1e6f2a-9b2b-4a36-8f6a-2f7b1e8b9a02"
},
{
"system": "gtin",
"value": "6001234567890"
}
]
}
'import requests
url = "https://api.clinikehr.com/v1/v1/clinics/{clinic_id}/inventory/availability"
payload = { "entries": [
{ "item_id": "9c1e6f2a-9b2b-4a36-8f6a-2f7b1e8b9a02" },
{
"system": "gtin",
"value": "6001234567890"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
entries: [
{item_id: '9c1e6f2a-9b2b-4a36-8f6a-2f7b1e8b9a02'},
{system: 'gtin', value: '6001234567890'}
]
})
};
fetch('https://api.clinikehr.com/v1/v1/clinics/{clinic_id}/inventory/availability', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.clinikehr.com/v1/v1/clinics/{clinic_id}/inventory/availability",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'entries' => [
[
'item_id' => '9c1e6f2a-9b2b-4a36-8f6a-2f7b1e8b9a02'
],
[
'system' => 'gtin',
'value' => '6001234567890'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.clinikehr.com/v1/v1/clinics/{clinic_id}/inventory/availability"
payload := strings.NewReader("{\n \"entries\": [\n {\n \"item_id\": \"9c1e6f2a-9b2b-4a36-8f6a-2f7b1e8b9a02\"\n },\n {\n \"system\": \"gtin\",\n \"value\": \"6001234567890\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.clinikehr.com/v1/v1/clinics/{clinic_id}/inventory/availability")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"entries\": [\n {\n \"item_id\": \"9c1e6f2a-9b2b-4a36-8f6a-2f7b1e8b9a02\"\n },\n {\n \"system\": \"gtin\",\n \"value\": \"6001234567890\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.clinikehr.com/v1/v1/clinics/{clinic_id}/inventory/availability")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"entries\": [\n {\n \"item_id\": \"9c1e6f2a-9b2b-4a36-8f6a-2f7b1e8b9a02\"\n },\n {\n \"system\": \"gtin\",\n \"value\": \"6001234567890\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"item_id": "9c1e6f2a-9b2b-4a36-8f6a-2f7b1e8b9a02",
"matched": true,
"band": "in_stock",
"as_of": "2026-09-20T10:00:00.000Z"
},
{
"item_id": null,
"matched": false,
"band": null,
"as_of": null
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}API reference
Availability for up to 100 items, by id or by identifier.
For a workspace TEST key this reads the workspace’s seeded synthetic sandbox — same shape either way.
POST
/
v1
/
clinics
/
{clinic_id}
/
inventory
/
availability
Availability for up to 100 items, by id or by identifier.
curl --request POST \
--url https://api.clinikehr.com/v1/v1/clinics/{clinic_id}/inventory/availability \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"entries": [
{
"item_id": "9c1e6f2a-9b2b-4a36-8f6a-2f7b1e8b9a02"
},
{
"system": "gtin",
"value": "6001234567890"
}
]
}
'import requests
url = "https://api.clinikehr.com/v1/v1/clinics/{clinic_id}/inventory/availability"
payload = { "entries": [
{ "item_id": "9c1e6f2a-9b2b-4a36-8f6a-2f7b1e8b9a02" },
{
"system": "gtin",
"value": "6001234567890"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
entries: [
{item_id: '9c1e6f2a-9b2b-4a36-8f6a-2f7b1e8b9a02'},
{system: 'gtin', value: '6001234567890'}
]
})
};
fetch('https://api.clinikehr.com/v1/v1/clinics/{clinic_id}/inventory/availability', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.clinikehr.com/v1/v1/clinics/{clinic_id}/inventory/availability",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'entries' => [
[
'item_id' => '9c1e6f2a-9b2b-4a36-8f6a-2f7b1e8b9a02'
],
[
'system' => 'gtin',
'value' => '6001234567890'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.clinikehr.com/v1/v1/clinics/{clinic_id}/inventory/availability"
payload := strings.NewReader("{\n \"entries\": [\n {\n \"item_id\": \"9c1e6f2a-9b2b-4a36-8f6a-2f7b1e8b9a02\"\n },\n {\n \"system\": \"gtin\",\n \"value\": \"6001234567890\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.clinikehr.com/v1/v1/clinics/{clinic_id}/inventory/availability")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"entries\": [\n {\n \"item_id\": \"9c1e6f2a-9b2b-4a36-8f6a-2f7b1e8b9a02\"\n },\n {\n \"system\": \"gtin\",\n \"value\": \"6001234567890\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.clinikehr.com/v1/v1/clinics/{clinic_id}/inventory/availability")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"entries\": [\n {\n \"item_id\": \"9c1e6f2a-9b2b-4a36-8f6a-2f7b1e8b9a02\"\n },\n {\n \"system\": \"gtin\",\n \"value\": \"6001234567890\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"item_id": "9c1e6f2a-9b2b-4a36-8f6a-2f7b1e8b9a02",
"matched": true,
"band": "in_stock",
"as_of": "2026-09-20T10:00:00.000Z"
},
{
"item_id": null,
"matched": false,
"band": null,
"as_of": null
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"request_id": "<string>",
"detail": "<string>",
"errors": [
{
"pointer": "<string>",
"message": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Required array length:
1 - 100 elementsExactly one of an item_id, or a {system, value} identifier — never both.
- Option 1
- Option 2
Show child attributes
Show child attributes
Response
OK. One entry per requested item, in request order.
Show child attributes
Show child attributes