Returning a publication purchased from the warehouse
The system of the organization processing the loan will have to be adapted so that when this call is made, it finds the loan in its system, considers it returned, and the copy becomes available for a new loan.
When the platform is notified of the early return of a loan, it will call the notification URL provided by the entity operating the loan, as follows:
Address | The notify_url provided by the entity operating the loan | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Method | POST | ||||||||||||||
Authentication | None | ||||||||||||||
Content | A JSON document that provides the loan information from the platform in the form: {"type": "[notification_type]", "time": "[return_time]", "data": {"loan": "[loan_id]", "borrower": "[borrower_id]", "transaction": "[transaction_id]", "time_before_expire": "[time_in_seconds]", , "expire_at": "[expiration_date]"}}
|