---
title: "Receive stock, adjust with a reason or record a count (variance is calculated). Refuses to go below zero unless the product allows it"
method: POST
path: "/api/v1/stock/movements"
---

# Receive stock, adjust with a reason or record a count (variance is calculated). Refuses to go below zero unless the product allows it

`POST /api/v1/stock/movements`

## Request

- Base URL: `http://127.0.0.1:4310`
- URL: `http://127.0.0.1:4310/api/v1/stock/movements`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `sfb_session`

## Request body

- object
  - `kind` 'receive' | 'adjustment' | 'count', required
  - `variant_id` string, uuid, required
  - `location_id` string, uuid
  - `stock_location_id` string, uuid
  - `quantity` integer
  - `counted_quantity` integer
  - `reason` string
  - `unit_cost_minor` integer
  - `idempotency_key` string, required: Unique per change. Repeating it returns the original result.

## Response `201`

OK

- object

## Other responses

- `400`: Validation error
- `401`: Unauthenticated
- `403`: Forbidden
- `404`: Not found
- `409`: Conflict or invalid state

---

[API](https://skmtc.dev/scalingfirm/apis/tsf-booking-api.md) · [All operations](https://skmtc.dev/scalingfirm/apis/tsf-booking-api/llms.txt) · [OpenAPI document](https://skmtc.dev/scalingfirm/apis/tsf-booking-api/revisions/81704199cd37?raw)
