Jump to content

Whmcs Invoice Api link


dperron25

Recommended Posts

What do you mean? You want to create a URL for the customer to pay?  That'll be something like whmcs//viewinvoice.php?id=INVOICEID . You can get the invoiceid from the API results... If you're using the examples here, then that'd turn out something like

{
    "result": "success",
    "invoiceid": "1",
    "status": "Unpaid"
}

so, the invoiceid would be

$invoiceid = $results['invoiceid'];

 

Link to comment
Share on other sites

No, it is not, and it shouldn't be.

These, as I mentioned, are for one off invoices, not  services which renew. Once you start playing with that, you're really getting yourself into trouble.

WHMCS has a hard enough time trying to keep invoices straight, without worrying about APIs messing products and services up.

Link to comment
Share on other sites

Like I said, that's not the proper way to go about this. You need to leave the automated invoicing side of things alone, unless you know full well what you're doing.

WHMCS has enough problems trying to keep invoices straight, simply 'attaching a relid' to an invoice already in play will screw things up

Link to comment
Share on other sites

What you're trying to do is  a hack. It's better (honestly) to utilize a module that is built for your system specifically, and can calculate things like this.

Since you've got something to suspend automatically, you've got the framework for the module in place. Shouldn't be terribly hard to add a per minute charge if over X minutes

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • 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