Jump to content

5.0.3 Applycredit API


tsiedsma

Recommended Posts

Everytime i try and use the ApplyCredit API function, I get this message:

 

Amount Exceeds Invoice Balance

 

That isn't true and I've double checked all my numbers. Each time it fails with that. It has to be an issue with the API function itself, the math is good but it fails everytime.

Link to comment
Share on other sites

  • 3 weeks later...
  • WHMCS CEO

Hi,

 

We can't seem to locate any problem here. The balance is worked out from the invoice total minus transactions applied + refunds. Try passing in a value of "amount=full" to have the full balance of the invoice applied from credit if available.

 

Matt

Link to comment
Share on other sites

It appears as though the invoice id being passed to the api doesn't get recognized properly or something. It seems to work fine in my dev environment which has less than 10 customers but in two independent production environments it doesn't work right. This has been confirmed by HostWinds above. He gets the same errors.

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