Jump to content

WHMCS billing based on the amount of emails sent


vmunich

Recommended Posts

I need some help to think. I got WHMCS API and Mailgun API.

 

My server uses Mailgun to send out emails. I want to bill my customers based on the amount of emails they've sent.

 

With Mailgun's API I can get the amount of emails my customers sent, but how would I make WHMCS get this information and bill them?

 

Any help will be appreciated.

Link to comment
Share on other sites

Thank you jclarke, that gave me a place to start.

I would make this script as a cron job then? So let's suppose, at the end of every month, the script would run and add the billable item + generate an invoice. Am I correct?

 

Thanks.

Edited by vmunich
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated