NormanRynd Posted November 18 Share Posted November 18 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 November 18 Share Posted November 18 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 November 18 Author Share Posted November 18 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 November 18 Share Posted November 18 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 November 18 Share Posted November 18 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.