Hi All,
I need some assistance on how I can the accomplish this process for our client using API. P.S I am new to FreeAgent,
Our client has customer who enrolls for courses and when they enroll they can pay partial which will be split into 6 months. So in FreeAgent we create 6 invoices. Now this bit is easy and its has already been integrated however, part I am struggling is when customer unenroll from course and they can unenroll in any months.
So what the process needs to look like is if the customer unenroll in month 4, we need to cancel the invoice for month 5 and 6. I had a look at the API documents but could not find the right endpoint to use. Delete invoice is not the endpoint that I would like to use and its a hard delete, mark invoice as cancelled is only availalbe to use if the due date is in the past and I cannot find a way to update the invoice status as cancelled as the cancelled status is not in the attribute.
Thanks