Koha::REST::V1::Checkins
POST /checkins/{checkin_id}/hold_confirmation
POST /checkins/{checkin_id}/hold_cancellation
POST /checkins/{checkin_id}/transfer_confirmation
POST /checkins/{checkin_id}/transfer_cancellation
POST /checkins/{checkin_id}/recall_confirmation
my $checkin = $c->_get_actionable_checkin($action) or return;
Returns the checkin from the checkin_id path parameter if the follow-up $action can be performed on it. Otherwise it renders the error response and returns undef:
Renders the standard checkin response, with the URI of the action performed as the Location header. The query string is left out, as it carries the action token.
Renders the 409 response for a transfer that has already arrived or has been cancelled.
return unless $c->_validate_library( { library_id => $library_id, path => $path } );
Renders an error and returns false if the library does not exist (400), or if the user cannot act on it (403). The same rule applies to the x-koha-library header: when IndependentBranches is enabled, only superlibrarians can act on a library other than their own.