Overview / Stock & supply / Approve a transfer request

Approve a transfer request

post https://api.flactrum.com/v1/branch-transfers/{transfer}/approve

The SENDING branch agrees to send all or part of what was asked for. The approved quantity comes off the sending branch's stock straight away — the goods are on the road from that moment, and belong to neither branch's shelf until they are counted in. 409 if the request is not awaiting approval, if a quantity is above what was requested, or above what the sender actually has.

Required scope transfers.write
Panel screenStock & supply → Branch transfers
Success status200
Returns One BranchTransfer object

Parameters

NameInTypeDescription
transfer * path string ULID of the record.

Request body

FieldTypeDescription
items array Omit to approve the request in full. Send it to approve part of it: each entry is {stock_item_id, quantity} in the base unit, and a line you send as 0 (or leave out) is not sent at all. A quantity above what was requested, or above what the sending branch actually has in stock, is refused.
note string|null Shown to the requesting branch.

Response fields

FieldTypeDescription
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/approve' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Content-Type: application/json' \
  -d '{
    "items": [
        {
            "stock_item_id": "01m43mznc50wsr6ck4qhskyfr2",
            "quantity": 1500
        }
    ],
    "note": "Bizim stoğumuz da kritik"
}'

HTTP 200 · application/json

{
    "data": {
        "id": "01m43mzncmhsj56q9rcrxmmtt9",
        "from_branch_id": "01m43mznbxkw485p3dja374jpy",
        "to_branch_id": "01m43mznc8ztces63wf90dfesz",
        "status": "shipped",
        "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": null,
        "items": [
            {
                "id": "01m43mzncp9as4aqbzcqzp876w",
                "stock_item_id": "01m43mznc50wsr6ck4qhskyfr2",
                "requested_quantity": 2000,
                "sent_quantity": 1500,
                "received_quantity": null
            }
        ],
        "created_at": "2026-10-04T14:27:14+00:00",
        "updated_at": "2026-10-04T14:27:14+00:00"
    }
}