Overview / Stock & supply / Update a receipt

Update a receipt

patch https://api.flactrum.com/v1/goods-receipts/{receipt}

A posted receipt is frozen.

Required scope goods_receipts.write
Success status200
Returns One GoodsReceipt object

Parameters

NameInTypeDescription
receipt * path string ULID of the record.

Request body

FieldTypeDescription
source_type string —
supplier_id string|null —
branch_id string|null Destination. Either this or warehouse_id.
warehouse_id string|null —
note string|null —
received_at string|null Delivery date. Defaults to today.
items array Replaces every line. Each entry is {stock_item_id, received_quantity, expected_quantity?, unit_cost?, purchase_unit_id?, entry_quantity?, note?, expires_at?}. Quantities are in the base unit. expires_at (date) is the best-before date of the batch; it travels with the stock and feeds the expiry board.

Response fields

FieldTypeDescription
id string —
source_type string —
supplier_id string|null —
branch_id string|null —
warehouse_id string|null —
received_at string|null —
posted_at string|null —
is_posted boolean Stock only changes once the receipt is posted.
items array —

Examples

Recorded from the test suite — these are real requests and their real responses.

curl -X PATCH 'https://api.flactrum.com/v1/goods-receipts/01m43mzm8xynncss7r71wvr4q7' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Content-Type: application/json' \
  -d '{
    "note": "Sevkiyat eksiksiz"
}'

HTTP 200 · application/json

{
    "data": {
        "id": "01m43mzm8xynncss7r71wvr4q7",
        "source_type": "supplier",
        "supplier_id": "01m43mzm8ksw8k7mg9qpj27wbh",
        "branch_id": "01m43mzm81852pekwsy3v35k14",
        "warehouse_id": null,
        "note": "Sevkiyat eksiksiz",
        "received_at": "2026-10-04T14:27:13+00:00",
        "posted_at": null,
        "is_posted": false,
        "item_count": 1,
        "items": [
            {
                "id": "01m43mzm8zw0aq6wmpe6kr65t3",
                "stock_item_id": "01m43mzm8aff2wxd8b1q3qy0jy",
                "expected_quantity": null,
                "received_quantity": 25000,
                "unit_cost": 0.05,
                "total_cost": null,
                "purchase_unit_id": null,
                "entry_quantity": null,
                "note": null,
                "expires_at": null
            }
        ],
        "created_at": "2026-10-04T14:27:13+00:00",
        "updated_at": "2026-10-04T14:27:13+00:00"
    }
}