Hello,
I have reviewed the project description, and I believe I have a solution to the issue you are facing. Instead of generating a new link every time the API sends data, we can implement a process that checks if the invoice link is already present in the database. If it is, we can avoid generating a new link and directly send the SMS to the client. If it is not present, we can generate a short link, store it in the database, and then send the SMS to the client.
This solution will optimize the process and ensure that the clients receive the relevant SMS notifications without unnecessary link generations.
Do you have any specific preferences for the SMS provider? I can integrate the system with Clicksend as mentioned in the project description, or if you have another preference, please let me know.
Please let me know if you would like to proceed with my proposal.
Best Regards,