aguay.umb Posted July 22, 2021 Share Posted July 22, 2021 I'm reading : https://developers.whmcs.com/api-reference/getinvoices/ and I want to access a list of invoices and their items for each of these invoices, how can I proceed? I know I can use the action "GetInvoice" for each invoices obtained with the action "GetInvoices", but when you have 400 Invoices in requires 400 http request to get the items for each of those invoices. How can I combine my queries? Can't find it in the doc if it's in there. 0 Quote Link to comment Share on other sites More sharing options...
Nelson Neoh Posted July 29, 2021 Share Posted July 29, 2021 According to the reference, as long as you are checking for a particular client profile, all invoices should be returns with invoice details when conditions matched. Maybe you should check properly on the localapi getinvoices and its response in detail? 0 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted July 29, 2021 Share Posted July 29, 2021 (edited) You can use this class in a `foreach` loop of results you get on GetInvoices, but first you need to use a proper Hook action Edited July 29, 2021 by pRieStaKos 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.