---
title: "Unlocks a bin location for available stock, allowing it to be used for stock allocation."
method: POST
path: "/v2/warehouseassistant/bin-locations/unlock-for-stock"
tags: ["BinLocationManagementCommand"]
---

# Unlocks a bin location for available stock, allowing it to be used for stock allocation.

`POST /v2/warehouseassistant/bin-locations/unlock-for-stock`

## Request

- Base URL: `https://scx-sbx.api.jtl-software.com`
- URL: `https://scx-sbx.api.jtl-software.com/v2/warehouseassistant/bin-locations/unlock-for-stock`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://auth.jtl-cloud.com/oauth2/auth`
    - Token URL: `https://auth.jtl-cloud.com/oauth2/token` scopes: `inventory.write`
  - OAuth 2
    - Client credentials
    - Token URL: `https://auth.jtl-cloud.com/oauth2/token` scopes: `inventory.write`
- TypeScript: <https://skmtc.dev/jtl-software/apis/scx-authentication-api/docs/v2/warehouseassistant/bin-locations/unlock-for-stock/post.ts> (a function with typed inputs; its response is checked against the schema)

## Headers

- `x-tenant-id` string, uuid, required
- `x-runas` string
- `x-companyid` string

## Request body

- JTLWawiWarenlagerverwaltungPublicApiDataTransferObjectsV2BinLocationManagementUnlockBinLocationForAvailableStockCommandRequest: Unlocks a bin location for available stock, allowing it to be used for stock allocation. - Request
  - `binLocationId` string, uuid

## Response `200`

Bin location was successfully unlocked for available stock.

## Other responses

- `500`: Internal server error.

---

[API](https://skmtc.dev/jtl-software/apis/scx-authentication-api.md) - [All operations](https://skmtc.dev/jtl-software/apis/scx-authentication-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jtl-software/apis/scx-authentication-api/revisions/f979b1ea6951?raw)
