Overview / Stock & supply / Request a transfer

Request a transfer

post https://api.flactrum.com/v1/branch-transfers

The branch that WANTS the goods opens the request and lists what it needs. No stock moves yet.

Required scope transfers.write
Success status201
Returns One BranchTransfer object

Request body

FieldTypeDescription
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

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' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Content-Type: application/json' \
  -d '{
    "from_branch_id": "01m43mzn7dva5ne507twbqz2xd",
    "to_branch_id": "01m43mzn7rd7cwkg8m15j2g95c",
    "items": [
        {
            "stock_item_id": "01m43mzn7pccy6dy4fdtts0fne",
            "requested_quantity": 2000
        }
    ]
}'

HTTP 201 · application/json

{
    "data": {
        "id": "01m43mzn834yh4fcvt0fksfvj0",
        "from_branch_id": "01m43mzn7dva5ne507twbqz2xd",
        "to_branch_id": "01m43mzn7rd7cwkg8m15j2g95c",
        "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": "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"
    }
}