It's back
loan_returnedClose a loan when an item is returned to its owner; history remains and borrower reminders stop. Supply the loan ID from list_loans.
Instructions
Closes a loan: a lent thing is back, or a borrowed one was given back. Use it when the person says so ("Sam returned the ladder"); the loanId comes from list_loans. The loan stays in the item's history and the borrower's reminder emails stop; nothing else about the item changes. Calling it again for the same loan is refused (it's already back).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | No | The day it came back, yyyy-mm-dd; today if left out | |
| loanId | Yes | The loan's id, from list_loans |