> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Adjust a bin

> Adjust a bin

<Warning>
  **Confirm your deployment before running this request.** This page describes an API contract;
  a published reference does not establish hosted availability. Check the dated
  [host report](/api-reference/hosts) and obtain your deployment URL and credentials.
  Replace the example host if your provisioned service uses a different URL.
</Warning>

### Request body

`AdjustBinLevelRequest`

<ParamField body="bin_id" type="integer (int32)" required />

<ParamField body="performed_by" type="string,null" />

<ParamField body="quantity" type="string" required>
  Signed decimal quantity as a string (positive adds, negative removes). The same delta is applied to warehouse-level stock atomically.
</ParamField>

<ParamField body="reason" type="string" required />

<ParamField body="reference_id" type="string,null" />

<ParamField body="reference_type" type="string,null" />

<ParamField body="sku" type="string" required />

### Response

`BinLevelResponse`

<ResponseField name="bin_id" type="integer (int32)" required />

<ResponseField name="quantity_allocated" type="string" required />

<ResponseField name="quantity_available" type="string" required />

<ResponseField name="quantity_on_hand" type="string" required />

<ResponseField name="sku" type="string" required />

<ResponseField name="updated_at" type="string" required />

<ResponseField name="warehouse_id" type="integer (int32)" required />

### Status codes

| Code | Meaning |
| - | - |
| `200` | — |
| `400` | — |
| `404` | — |

### Using this contract

Read the [source OpenAPI document](/spec/stateset-icommerce.json) for declared schemas and alternatives.
This page also includes documented corrections from the [spec overlays](https://github.com/stateset/docs/tree/main/spec/overlays).
Example IDs and values are illustrative; replace them with records from your workspace.

<RequestExample>
  ```bash cURL theme={null}
  curl --silent --show-error --fail-with-body --request POST \
    --url 'https://api.stateset.com/api/v1/warehouse-bins/adjust' \
    --header "Authorization: Bearer $STATESET_API_KEY" \
    --header 'Content-Type: application/json' \
    --data '{
    "bin_id": 1001,
    "performed_by": "string",
    "quantity": "2",
    "reason": "Two-person tent, green — replacement for damaged pole set.",
    "reference_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "reference_type": "string",
    "sku": "SKU-TENT-2P-GRN"
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "bin_id": 1001,
    "quantity_allocated": "string",
    "quantity_available": "string",
    "quantity_on_hand": "string",
    "sku": "SKU-TENT-2P-GRN",
    "updated_at": "2026-08-31T14:22:05Z",
    "warehouse_id": 1001
  }
  ```
</ResponseExample>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.