---
title: "Get rack equipment"
method: POST
path: "/refrigeranttracking"
tags: ["RefrigerantTracking"]
---

# Get rack equipment

`POST /refrigeranttracking`

## Request

- Base URL: `https://sb2api.servicechannel.com/v3`
- URL: `https://sb2api.servicechannel.com/v3/refrigeranttracking`
- Auth: OAuth 2
  - Authorization code: `https://sb2login.servicechannel.com/oauth/authorize`
  - Token URL: `https://sb2login.servicechannel.com/oauth/token`
- TypeScript: <https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/docs/refrigeranttracking/post.ts> (a function with typed inputs; its response is checked against the schema)

Returns rack assets for the specified subscriber and location. Only assets with the **Refrigerant Usage Type** set to **Rack** will be sent in the response.
            <br />To check the rack connection, use the [GET/refrigeranttracking/rack](https://developer.servicechannel.com/swagger/index.html#/RefrigerantTracking/GETv3_refrigeranttracking_rack%3Fid%3D%7Bid%7D) method.

## Request body

- ServiceChannelServicesMessagingEquipmentsGetAvailableRacksRequest: Object containing the request parameters for retrieving rack assets.
  - `SubscriberId` integer, required: Unique numeric identifier of the subscriber.
  - `LocationId` integer, required: Unique numeric identifier of the location to get rack assets for. One location ID is allowed per request.
  - `IncludeInactive` boolean: Allows including/excluding deactivated rack assets. Possible input values: • `true`: Deactivated rack assets will be included in the response. • `false`: Deactivated rack assets will be excluded from the response.
  - `SelectInactiveRackId` integer: To get a specific rack asset in the response, enter the asset ID.

## Response `200`

Rack assets are returned in the response.

- ServiceChannelServicesCoreInternalRequestsRefrigerantTrackingGetAvailableRacksResponse
  - `RefrigerantRack` ServiceChannelServicesMessagingRefrigerantTrackingRefrigerantRack[]
    - `Id` integer: Unique numeric identifier of the asset (generated by the system).
    - `TypeId` integer: Unique numeric identifier of the asset type (generated by the system).
    - `TagId` string: Unique identifier of the asset specified by the subscriber.
    - `RackId` string: Unique identifier of the rack specified by the subscriber. It can be the same as the `TagId`.
    - `Active` boolean: Defines whether the rack asset is active or deactivated.

## Other responses

- `400`: The request was not accepted due to bad syntax, missing parameters, insufficient data, etc. <br/>Error codes: 502 &mdash; No rack equipment 503 &mdash; Request is empty or null
- `401`: The requested resource requires authentication. <br/>Error codes: 504 &mdash; API call rejected by security permissions

---

[API](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3.md) - [All operations](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/llms.txt) - [OpenAPI document](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/revisions/d490d6596809?raw)
