[Bug 39359] New: Lack of REST API Support for Linking Items to Orders
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39359 Bug ID: 39359 Summary: Lack of REST API Support for Linking Items to Orders Change sponsored?: --- Product: Koha Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: REST API Assignee: koha-bugs@lists.koha-community.org Reporter: urho@broomworks.fi QA Contact: testopia@bugs.koha-community.org CC: tomascohen@gmail.com Currently, the Koha REST API does not provide a way to link items to orders. This functionality would be useful for managing acquisitions and ensuring that items are correctly associated with their corresponding orders. Proposed Changes: 1) Allow specifying order_id when creating or updating items: POST /biblios/{biblio_id}/items: Support an optional order_id field to link the item to an order during creation. PUT /biblios/{biblio_id}/items/{item_id}: Allow updating an existing item to set or change its order_id. 2) Enable batch linking of items to orders: POST /acquisitions/orders/ and PUT /orders/{order_id} should accept an array of item IDs in the request body: {"items": [12345, 12346]} This would allow multiple items to be linked to an order in a single request. 3) Validation Requirement: Ensure that an item is not already linked to another order -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org