Retrieve updated patron lists from Wise
This scenario describes how a list of patrons can be retrieved from Wise. Use this scenario to keep patrons in sync with an external system like a marketing tool or CRM database.
Step 1: Authenticate
Get an access token by logging in as a staff user in the Wise Rest-API. See Authentication for more information
Step 2: Get a list of updated patrons
/patronmanagement/patron/library/{libraryId}/updatedpatron?date=yyyy-mm-dd
This endpoint will return a list of patron system IDs, which have been updated (or created) since the date entered. Every patron has a unique patron system ID.
Step 3: Retrieve the information per patron
With the list of patron system ids created in Step 2, you can call the endpoint below to get the patron information for those users or use other endpoints for other patron-related information when needed.
/patron/{patronSystemId}/library/{libraryId}/patroninformation
Step 4 : Retrieve deleted patrons
In Step 3, newly created and updated patrons were returned. The last step is to delete patrons who are no longer in Wise. The following endpoint can be called:
/patronmanagement/patron/library/{libraryId}/deletedpatron