Web Api querying: Activation countAnswered

I would like the ooption to count the available licenses and use them to trigger logic on my customer portals. 

The idea being I want to incrementally pay wyDay more up to the unlimited varaient, however I wish to do this incrementally as the business grows. I don`t want the user to go through the process of payment, only for them to be refunded with message `apologies we`ve run out of licenses` for example. 

Any advice is welcome.

Answer

Hey Jamie,

I'm a bit confused about what you're asking. LimeLM already automatically upgrades your account to the next highest plan if you generate more activations (or change a key with more activations) than you have in your current plan.

Use limelm.pkey.generate or limelm.pkey.setDetails.

Is that what you're looking for?

Hi Wyatt, I wasn't aware that  LimeLM auto upgrades Good to know! 
I was worried that a transaction would fail due to this limit and I would have to process a refund half-way through my customer flows.
 

-Thank you for the links also. I have created a wrapper api with static IP and secrurity to all web api fuunctions.

, edited