Locations
Get the effective inventory of a location
GET
/
v1
/
locations
/
{location_external_id}
/
inventory
Get the effective inventory of a location
curl --request GET \
--url https://api.technicallyfit.com/v1/locations/{location_external_id}/inventory \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.technicallyfit.com/v1/locations/{location_external_id}/inventory', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.technicallyfit.com/v1/locations/{location_external_id}/inventory"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"as_of": "2023-12-25",
"baseline_revision": 123,
"inventory_revision": 123,
"items": [
{
"attributes": {},
"count": 123,
"family": "<string>",
"name": "<string>",
"source": "baseline",
"token": "<string>"
}
],
"location": "<string>",
"set_up": true,
"unavailable": [
{
"back_in_service_on": "<string>",
"name": "<string>",
"note": "<string>",
"reason": "missing",
"token": "<string>"
}
]
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}Path Parameters
Query Parameters
Response
⌘I
Get the effective inventory of a location
curl --request GET \
--url https://api.technicallyfit.com/v1/locations/{location_external_id}/inventory \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.technicallyfit.com/v1/locations/{location_external_id}/inventory', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.technicallyfit.com/v1/locations/{location_external_id}/inventory"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"as_of": "2023-12-25",
"baseline_revision": 123,
"inventory_revision": 123,
"items": [
{
"attributes": {},
"count": 123,
"family": "<string>",
"name": "<string>",
"source": "baseline",
"token": "<string>"
}
],
"location": "<string>",
"set_up": true,
"unavailable": [
{
"back_in_service_on": "<string>",
"name": "<string>",
"note": "<string>",
"reason": "missing",
"token": "<string>"
}
]
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}