How to Automatically Deactivate Inactive Members via Fabman API?

Hello

I am looking for a way to automate the deactivation of inactive members using the Fabman API. We have a membership system where users are supposed to renew their access periodically, but sometimes they forget or delay payments. :slightly_smiling_face:

Instead of manually checking and disabling access, I’d like to set up an automated process that deactivates members who haven’t been active for a certain period. :innocent:

Is there an API endpoint that allows checking the last activity date of a member? :thinking:I see that /members provides some details, but I’m unsure which field would be best to track inactivity.

Also, what’s the recommended approach to update their status automatically? :thinking:Should I trigger a PATCH request to update their isEnabled status, or is there another preferred method? :thinking: Checked Fabman API Talend Certification guide related to this and found it quite informative.

If anyone has implemented a similar workflow, I’d appreciate any guidance on structuring the API calls efficiently. Also, is there a way to send a warning notification before deactivation using the API? Thanks in advance!

Thank you !! :blush: