We sell software-as-a-service and our billing is usage based. Our backend system (the product we sell) has UI reports that we can manually run for a “usage” figure for a particular customer and date range. Our development team says that our newly built API interface (into our backend) is a beta, but is almost ready to go….
Our typical customer would have a contract with us that would include a start and end date (let’s say May 5, 2008 through May 4, 2009), and they are then supposed to be billed for usage on a monthly basis (June 5th, July 5th, Aug 5th etc…), however, this process is currently completely manual and we need to update it.
Let’s say it’s November 1 of 2008 and I need to know what the usage is for each customer who was last billed on October 1st. Currently, I have to manually key in the date range and customer number into our backend to get this “usage” number. I then have to create sales orders in Netsuite to invoice (sounds okay if you have 20 customers, but we are looking at approximately 300 who are billed in this manner and it is simply not manageable using our current manual process).
Our goal is to have a saved search in NS that dynamically would retrieve a single “usage” number for a given date range from our backend system for each customer (all at once—up to current). It would be great if this were done in real-time, whenever the saved search was run-- sort of the way that SQL formulas on a saved search will always update to current data—although these (at least all of the ones I have made) always refer to data that exists within netsuite. We are also okay with running an “update of usage data in Netsuite” on a monthly basis and then viewing this via a saved search (in fact, we are considering using a CSV import to get the data in during the interim as the manual one-by-one keying in of the data is like building a sandcastle on a mudslide).
The API to get the data from our backend system should be relatively simple:
1. Netsuite passes a date range and customer ID number to our backend
2. Our backend sends back the customer ID with a “usage figure”
3. This usage figure can be compared (within Netsuite) to existing contract data to see if invoicing needs to occur
4.
The problem is that I have only made some relatively simple SQL fields, lots of custom forms/records etc. and a bunch of javascripts, but have no idea how to accomplish this.
Does anybody know how involved writing something like this might be, or where I should start. We have professional programmers who will be involved, but for now I am trying to find out:
1. What the best first steps?
2. Is the real-time saved-search thing is remotely possible, or is it more likely that we will be running something scheduled?
3. Does anybody have experience setting up something similar? If so would you be willing to give us a few pointers?
4. Is there a possibility that a JavaScript could retrieve this information? (so we could set up a nightly scheduled script execution)
5. Any general comments, suggestions etc that other users might have.
I know that I have given a tiny amount of detail (our newly built API … is almost ready to go) etc, but in theory, this task should not be that hard to accomplish, and could save us a the huge headache of the monthly usage billing, so it’s really worth figuring out….
Any help is greatly appreciated, thanks in advance,
-Matt S.