Overview / Stock & supply / Reject a transfer request

Reject a transfer request

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

The sending branch declines the request outright. No stock moves. Use this rather than approving nothing.

Required scope transfers.write
Success status200
Returns One BranchTransfer object

Parameters

NameInTypeDescription
transfer * path string ULID of the record.

Request body

FieldTypeDescription
reason 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/01m43mznggz9jsteqj8t1yxcfa/reject' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Content-Type: application/json' \
  -d '{
    "reason": "Bizim de yetmiyor"
}'

HTTP 200 · application/json

{
    "data": {
        "id": "01m43mznggz9jsteqj8t1yxcfa",
        "from_branch_id": "01m43mznftjbazt846vz8vaf3w",
        "to_branch_id": "01m43mzng5wxfezck6s7bnvskh",
        "status": "rejected",
        "note": null,
        "requested_at": "2026-10-04T14:27:15+00:00",
        "approved_at": "2026-10-04T14:27:15+00:00",
        "shipped_at": null,
        "received_at": null,
        "items": [
            {
                "id": "01m43mzngjz8fcy8xh46xjk09b",
                "stock_item_id": "01m43mzng3nze4cz826vbtazrv",
                "requested_quantity": 2000,
                "sent_quantity": null,
                "received_quantity": null
            }
        ],
        "created_at": "2026-10-04T14:27:15+00:00",
        "updated_at": "2026-10-04T14:27:15+00:00"
    }
}