@@ -, +, @@ --- Koha/REST/V1/Checkouts.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/Koha/REST/V1/Checkouts.pm +++ a/Koha/REST/V1/Checkouts.pm @@ -289,7 +289,7 @@ sub delete { my $c = shift->openapi->valid_input or return; - my $body = $c->validation->param('body'); + my $body = $c->req->json; my $item_id = $body->{item_id}; return try { @@ -307,7 +307,7 @@ sub delete { openapi => { error => "Item not checked out" } ); } - my $library_id = $c->validation->output->{library_id}; + my $library_id = $body->{library_id}; unless ($library_id) { $library_id = $checkout->patron->branchcode; } --