Adjust finished-good stock with a reason
Side effect: changes finished_goods.ready_stock by the signed adjustment delta and recalculates the item’s status (in_stock / low_stock / out_of_stock). Returns 400 if the resulting stock would be negative. The reason enum excludes internal reasons (print_completion, order_fulfillment, assembly_completed) which are reserved for events emitted by other handlers.
Authorizations
API keys are minted in the AutoPrintFarm web app under Settings → API Keys. Send as Authorization: Bearer apf_live_.... Keys are shown exactly once at creation and can be revoked at any time.
Path Parameters
Finished-good row id.
Body
Signed integer delta to apply to ready_stock (positive to add, negative to remove). Rejected with 400 if the result would be negative.
Reason for the adjustment, recorded for audit. Internal reasons (print_completion, order_fulfillment, assembly_completed) are reserved for events emitted by other handlers and are not accepted here.
manual, inventory_count, correction, damaged, returned Optional free-form note (max 500 chars).
500