kevinsheahan Posted April 29, 2022 Share Posted April 29, 2022 Does anybody know how to apply any customer credit that may exist to an order once the order has been created through the API. For instance, I create the order with 'AddOrder' - from that I can get the invoice and order ID. Can I then apply any credit the client may have on account to this invoice? Thanks in advance. 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted April 29, 2022 Share Posted April 29, 2022 You can use the ApplyCredit function: https://developers.whmcs.com/api-reference/applycredit/ Before doing that, I would recommend that you check if the client has enough credits on their account. 0 Quote Link to comment Share on other sites More sharing options...
kevinsheahan Posted May 3, 2022 Author Share Posted May 3, 2022 Thanks for the reply. I saw this just after posting my question. Just one more thing. If a customer wants to use known credit, what payment method can they choose. At the moment I have 'globalpay' for credit card and 'mailin' for cheque/cash payment. Is there a paymentmethod (in AddOrder) which covers applying existinf credit? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.