Cancelation Flow Details
Summary
There is a need to support the cancelation flow for DCB circulation. The transaction can include 2-role circulation as well as 3-role. The management of the transaction is handled by DCB.
Requirements
The transaction cancellation can be initiated by the following sources:
- In Lending library: by FOLIO users
- In Borrowing library:
- by FOLIO users
- by patron initiated from Local locate. The cancellation request will originate in Local Locate and routed through
edge-patron
- In all roles:
- by DCB initiative
Assumptions
- DCB will handle status synchronization in order of the event arrival
Target Solution
The cancellation request can be applied to DCB transactions that are in the following statuses [CREATED, OPEN, AWAITING_PICKUP]. For the transactions that are in status [ITEM_CHECKED_OUT, ITEM_CHECKED_IN] FOLIO should reject such requests with a "400 Bad request" response.