https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24401 --- Comment #53 from Tomás Cohen Arazi (tcohen) <tomascohen@gmail.com> --- Created attachment 198612 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=198612&action=edit Bug 24401: Add checkin REST API endpoint with confirmation flow Adds two new endpoints: - GET /checkins/availability — pre-check with JWT token - POST /checkins — perform check-in with optional confirmation The response is the Koha::Checkin object serialized via to_api with support for embedding related objects (item, checkout, library, hold, recall, transfer, restriction, claim, debits, credits, etc). Follows the same confirmation flow pattern as POST /checkouts: 1. Client calls availability endpoint to get blockers/confirms 2. If confirmations exist, a JWT token is returned 3. Client passes the token to the checkin endpoint to confirm Test plan: 1. Apply patch 2. Run: $ ktd --shell k$ yarn api:bundle k$ prove t/db_dependent/api/v1/checkins.t => SUCCESS: Tests pass! 3. Run xt/ API validation: k$ prove xt/api.t => SUCCESS: Tests pass! 4. Sign off :-D -- You are receiving this mail because: You are watching all bug changes.