NormanRynd Posted Monday at 12:48 AM Share Posted Monday at 12:48 AM Hello i'm trying making my custom api action can someone give me any sample cause i keep getting this error no matter what i do { "result": "error", "message": "Invalid API Action: \"unpidoinvoice\" is not a valid API action" } My goal is to be able to "POST" to http://127.0.0.1/includes/api.php?responsetype=json&identifier=XXXXXXXX&secret=XXXXXXXX&action=unpidoinvoice&accesskey=XXXXXXX Using my custom action that will return me the custom data i wanted like total number of orders , can someone provide me working sample and tell me how to make it works? this a code i trying 0 Quote Link to comment Share on other sites More sharing options...
bear Posted Monday at 02:00 AM Share Posted Monday at 02:00 AM Have a look here: https://developers.whmcs.com/api/api-index/ 0 Quote Link to comment Share on other sites More sharing options...
NormanRynd Posted Monday at 02:02 AM Author Share Posted Monday at 02:02 AM 1 minute ago, bear said: Have a look here: https://developers.whmcs.com/api/api-index/ yeah i did not helpful i need a sample of code that working so i apply same method 0 Quote Link to comment Share on other sites More sharing options...
bear Posted Monday at 11:53 AM Share Posted Monday at 11:53 AM My point was "unpidoinvoice" is not shown there as a valid API call. 0 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted Monday at 06:35 PM Share Posted Monday at 06:35 PM 17 hours ago, NormanRynd said: Using my custom action that will return me the custom data i wanted like total number of orders , can someone provide me working sample and tell me how to make it works? this a code i trying total number of orders https://developers.whmcs.com/api-reference/getorders/#:~:text=total number of results available 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.