Jump to content

Add credit to invoice using API


Klangaroo

Recommended Posts

If a customer has credit on their account, and they then generate an invoice, the credit doesn't appear to automatically be applied to the invoice. This is fine, as the user might want to save up their credit, but i do all of my interactions with WHMCS using the API and the database directly and there doesnt appear to be an API function for moving credit around. You can give a client credit, but you can't do anything with it.

 

Or can you? I can't work out how to apply a customer's existing credit to an invoice.

Link to comment
Share on other sites

  • 1 month later...

Klangaroo, would you mind either outlining the steps in your function or providing your function? I'm in the same pickle. I can add/subtract a clients credit via the API, but not apply the credit to an invoice. I too can drive that horse from the backend with a function but I just want to make sure my thoughts on doing this are similar/same to the direction you took.

 

Thanks,

Brad

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