diff --git a/Koha/Checkout.pm b/Koha/Checkout.pm index 8b97cf8b36..d0d460ec3c 100644 --- a/Koha/Checkout.pm +++ b/Koha/Checkout.pm @@ -223,6 +223,7 @@ on the API. sub to_api_mapping { return { + checkin_library => 'checkin_library_id', issue_id => 'checkout_id', borrowernumber => 'patron_id', itemnumber => 'item_id', diff --git a/Koha/Old/Checkout.pm b/Koha/Old/Checkout.pm index 2967a78afe..abd19d8bb6 100644 --- a/Koha/Old/Checkout.pm +++ b/Koha/Old/Checkout.pm @@ -148,6 +148,7 @@ on the API. sub to_api_mapping { return { + checkin_library => 'checkin_library_id', issue_id => 'checkout_id', borrowernumber => 'patron_id', itemnumber => 'item_id', diff --git a/api/v1/swagger/definitions/checkout.yaml b/api/v1/swagger/definitions/checkout.yaml index 4ace091bd5..15211a1d85 100644 --- a/api/v1/swagger/definitions/checkout.yaml +++ b/api/v1/swagger/definitions/checkout.yaml @@ -36,6 +36,11 @@ properties: - "null" format: date-time description: Date the item was returned + checkin_library_id: + type: + - string + - "null" + description: Internal library identifier for the library at which the item was returned last_renewed_date: type: - string