sonpython Posted October 27, 2019 Share Posted October 27, 2019 I quoted this guy 2-years old feature request https://requests.whmcs.com/topic/retrieve-invoice-currency It was put to Under Consideration status for 2 years Quote Hi there, When using the API and making the request for an invoice (GetInvoice), the currency is absent. If you make and api call to get all of the user invoices (GetInvoices), the currency is returned as a symbol and as an ISO code. Please add the currency to GetInvoice api call. This is very annoying. We build auto addon to check from the bank transactions then add payment to the invoice. When call the API GetInvoice it does not include the currency information. So we need to call the GetInvoices and then compare one by one to get the currency information or need to call the GetClientsDetails to get the currency information. Why don't just add currency information to the GetInvoice API? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 29, 2019 Share Posted October 29, 2019 Hi Michael, On 27/10/2019 at 08:34, sonpython said: Why don't just add currency information to the GetInvoice API? I suppose the logic is that in WHMCS, the currency is assigned to the client and not to any invoice... if GetInvoice is returning a result, then one option would be to use the userid value from the result in a second API call (using GetClientsDetails) to get the currency ID for that client.. if you then need currency/prefix details for that currency, you may need to refer GetCurrencies to obtain them. with regards to getting the API changed, perhaps raise it as an issue on the WHMCS GitHub Docs site - I wouldn't hold out much hope via there or a feature request, but it might be worth a go. 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.