Overview /
Stock & supply /
Request stock from a warehouse
Request stock from a warehouse
post
https://api.flactrum.com/v1/warehouse-requests
The BRANCH that wants the goods opens the request and lists what it needs. No stock moves yet.
| Required scope | warehouse_requests.write |
| Success status | 201 |
| Returns | One WarehouseRequest object |
Request body
| Field | Type | Description |
|---|---|---|
| branch_id * | string | — |
| warehouse_id * | string | — |
| note | string|null | — |
| items | array | Replaces every line. Each entry is {stock_item_id, requested_quantity} in the item's base unit. Approved and received quantities are NOT written here — the approve and receive endpoints write them together with the stock movement. |
Response fields
| Field | Type | Description |
|---|---|---|
| id | string | — |
| branch_id | string | — |
| warehouse_id | string | — |
| status | string | pending awaits the warehouse's approval; shipped means approved and already off warehouse stock but not yet counted in; received means counted and on branch stock. Set it through the approve/reject/receive endpoints — writing it directly moves no stock. |
| decision_note | string|null | Why the warehouse approved only part of it, or rejected it. |
| requested_at | string|null | — |
| approved_at | string|null | — |
| shipped_at | string|null | — |
| received_at | string|null | — |
| items | array | — |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X POST 'https://api.flactrum.com/v1/warehouse-requests' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Content-Type: application/json' \
-d '{
"branch_id": "01m43mzmkf3avhdyds8rksj897",
"warehouse_id": "01m43mzmmbjcx5x2f96se0wjq8",
"items": [
{
"stock_item_id": "01m43mzmkqb3prd348dd5fhj14",
"requested_quantity": 10000
}
]
}'
HTTP 201 · application/json
{
"data": {
"id": "01m43mzmmkk1kyskvfxaxesxw6",
"branch_id": "01m43mzmkf3avhdyds8rksj897",
"warehouse_id": "01m43mzmmbjcx5x2f96se0wjq8",
"status": "pending",
"note": null,
"requested_at": "2026-10-04T14:27:14+00:00",
"approved_at": null,
"shipped_at": null,
"received_at": null,
"item_count": 1,
"items": [
{
"id": "01m43mzmmnct9g93wajw17rm9n",
"stock_item_id": "01m43mzmkqb3prd348dd5fhj14",
"requested_quantity": 10000,
"approved_quantity": null,
"sent_quantity": null,
"received_quantity": null
}
],
"created_at": "2026-10-04T14:27:14+00:00",
"updated_at": "2026-10-04T14:27:14+00:00"
}
}