Overview / Stock & supply / Count the goods in and complete the request

Count the goods in and complete the request

post https://api.flactrum.com/v1/warehouse-requests/{request}/receive

The requesting BRANCH counts what actually arrived; its stock goes up by what was COUNTED, not by what was approved. Anything missing was lost on the road and is charged to the warehouse as transfer_loss on its own outbound movement — it is NOT deducted a second time. 409 if the request has not been approved, was already received, or a count exceeds what was approved.

Required scope warehouse_requests.write
Panel screenStock & supply → Warehouse requests
Success status200
Returns One WarehouseRequest object

Parameters

NameInTypeDescription
request * path string ULID of the record.

Request body

FieldTypeDescription
items array Omit to accept everything that was approved. Send it to record what you actually counted: each entry is {stock_item_id, quantity} in the base unit. More than was approved is refused — the sender's balance only went down by the approved amount.

Response fields

FieldTypeDescription
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/01m43mzmrw89q1nyhs7nvtc4m4/receive' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Content-Type: application/json' \
  -d '{
    "items": [
        {
            "stock_item_id": "01m43mzmranfc8qx70q68zrnmp",
            "quantity": 1400
        }
    ]
}'

HTTP 200 · application/json

{
    "data": {
        "id": "01m43mzmrw89q1nyhs7nvtc4m4",
        "branch_id": "01m43mzmr1gz2gey222dk34t58",
        "warehouse_id": "01m43mzmrkrs47cwt3a8t23xsk",
        "status": "received",
        "note": null,
        "requested_at": "2026-10-04T14:27:14+00:00",
        "approved_at": "2026-10-04T14:27:14+00:00",
        "shipped_at": "2026-10-04T14:27:14+00:00",
        "received_at": "2026-10-04T14:27:14+00:00",
        "items": [
            {
                "id": "01m43mzmrynk08qp7v1tg3vfvv",
                "stock_item_id": "01m43mzmranfc8qx70q68zrnmp",
                "requested_quantity": 2000,
                "approved_quantity": 1500,
                "sent_quantity": 1500,
                "received_quantity": 1400
            }
        ],
        "created_at": "2026-10-04T14:27:14+00:00",
        "updated_at": "2026-10-04T14:27:14+00:00"
    }
}