Overview /
Stock & supply /
Count the goods in and complete the transfer
Count the goods in and complete the transfer
post
https://api.flactrum.com/v1/branch-transfers/{transfer}/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: since the goods had already left the sender, the shortfall is charged to the sending branch and shows up in its waste report as transfer_loss. It is NOT deducted a second time. 409 if the transfer has not been approved, was already received, or a count exceeds what was approved.
| Required scope | transfers.write |
| Panel screen | Stock & supply → Branch transfers |
| Success status | 200 |
| Returns | One BranchTransfer object |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| transfer * | path | string | ULID of the record. |
Request body
| Field | Type | Description |
|---|---|---|
| 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
| Field | Type | Description |
|---|---|---|
| id | string | — |
| from_branch_id | string | — |
| to_branch_id | string | — |
| status | string | pending awaits the sender's approval; shipped means approved and already off the sender's stock but not yet counted in; received means counted and on the receiver's stock. Set it through the approve/reject/receive endpoints — writing it directly moves no stock. |
| decision_note | string|null | Why the sender approved only part of it, or rejected it. |
| items | array | Each line carries requested_quantity, sent_quantity (what the sender approved and shipped) and received_quantity (what the receiver counted). All in the item's base unit. |
Examples
Recorded from the test suite — these are real requests and their real responses.
curl -X POST 'https://api.flactrum.com/v1/branch-transfers/01m43mzncmhsj56q9rcrxmmtt9/receive' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Content-Type: application/json' \
-d '{
"items": [
{
"stock_item_id": "01m43mznc50wsr6ck4qhskyfr2",
"quantity": 1400
}
]
}'
HTTP 200 · application/json
{
"data": {
"id": "01m43mzncmhsj56q9rcrxmmtt9",
"from_branch_id": "01m43mznbxkw485p3dja374jpy",
"to_branch_id": "01m43mznc8ztces63wf90dfesz",
"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:15+00:00",
"items": [
{
"id": "01m43mzncp9as4aqbzcqzp876w",
"stock_item_id": "01m43mznc50wsr6ck4qhskyfr2",
"requested_quantity": 2000,
"sent_quantity": 1500,
"received_quantity": 1400
}
],
"created_at": "2026-10-04T14:27:14+00:00",
"updated_at": "2026-10-04T14:27:15+00:00"
}
}
curl -X POST 'https://api.flactrum.com/v1/branch-transfers/01m43mznggz9jsteqj8t1yxcfa/receive' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Accept: application/json'
HTTP 409 · application/json
{
"error": {
"code": "conflict",
"message": "Reddedilen ya da iptal edilen transfer teslim alınamaz."
}
}