Overview /
Stock & supply /
Update a transfer
Update a transfer
patch
https://api.flactrum.com/v1/branch-transfers/{transfer}
| Required scope | transfers.write |
| Success status | 200 |
| Returns | One BranchTransfer object |
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| transfer * | path | string | ULID of the record. |
Request body
| Field | Type | Description |
|---|---|---|
| from_branch_id * | string | The branch being asked for the goods. |
| to_branch_id * | string | The branch making the request. Must differ from from_branch_id. |
| note | string|null | — |
| items | array | Replaces every line. Each entry is {stock_item_id, requested_quantity} in the item's base unit. Shipped 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 | — |
| 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 PATCH 'https://api.flactrum.com/v1/branch-transfers/01m43mzn834yh4fcvt0fksfvj0' \
-H 'Authorization: Bearer flk_your_key:your_secret' \
-H 'Content-Type: application/json' \
-d '{
"note": "Acil"
}'
HTTP 200 · application/json
{
"data": {
"id": "01m43mzn834yh4fcvt0fksfvj0",
"from_branch_id": "01m43mzn7dva5ne507twbqz2xd",
"to_branch_id": "01m43mzn7rd7cwkg8m15j2g95c",
"status": "pending",
"note": "Acil",
"requested_at": "2026-10-04T14:27:14+00:00",
"approved_at": null,
"shipped_at": null,
"received_at": null,
"item_count": 1,
"items": [
{
"id": "01m43mzn85jcth1x37v4swd2av",
"stock_item_id": "01m43mzn7pccy6dy4fdtts0fne",
"requested_quantity": 2000,
"sent_quantity": null,
"received_quantity": null
}
],
"created_at": "2026-10-04T14:27:14+00:00",
"updated_at": "2026-10-04T14:27:14+00:00"
}
}