Jump to content

How to fetch Invoice PDF's programatically?


Rendrag

Recommended Posts

Hi Folks,

 

We talk to our WHMCS via API from our customer portal - customers don't actually ever see WHMCS, we just use it on the backend as it handles billing SO well. We're in the process of rebuilding the customer portal as it's getting a little too patched together and hard to maintain. One of the issues on my list is that we're generating PDF's separately to WHMCS so when we change something we have to change it in both WHMCS and the portal.

 

Has anyone worked out a way to pull invoice PDF's from WHMCS? If I *really* have to, I can create an admin user, then use curl calls to login as them and pull them that way, but that seems a bit icky... Is there a way we can call the invoicing even from a local PHP script on the WHMCS server? We need to be able to pull a few other things (like list of domain questions), so I'm thinking we're going to have to write our own little json api that sits beside the WHMCS api anyway..

 

Thanks,

 

Damien

Link to comment
Share on other sites

  • 3 weeks later...

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