cPanel, WHMCS xml-api 404 error

Server's logs where you can see 404 not found error

"GET /xml-api/suspendacct?user=hiden&reason=test HTTP/1.1" 404 0 "-" "-" "a" "-" 2087
"GET /xml-api/suspendacct?user=hiden&reason=test HTTP/1.1" 404 0 "-" "-" "a" "-" 2087
"GET /xml-api/suspendacct?user=hiden&reason=test HTTP/1.1" 404 0 "-" "-" "a" "-" 2087

The cause of this usually outdated WHMCS version

Support for the XML-like output of our API was removed from the product in cPanel & WHM version 74:

Removed XML output in API functions
In cPanel & WHM version 74, we removed the Extensible Markup Language (XML) output format from all of our API functions. We previously deprecated XML output in cPanel & WHM version 66.

Important:

You must use the JSON return format when you call API functions.
You must update your scripts to use the JSON output format to call WHM API and cPanel API functions.

Source:

https://documentation.cpanel.net/display/74Docs/74+Release+Notes
https://forums.cpanel.net/threads/xmlapi-php-stopped-working.635729/
https://whmcs.community/topic/290984-cpanel-changed-their-api-and-my-whmcs-632-module-do-not-work/

Similar Posts:

One comment on “cPanel, WHMCS xml-api 404 error

  1. Wow, amazing weblog layout! How long have you been blogging for?
    you make running a blog look easy. The overall glance of your web site is
    wonderful, let alone the content!

Leave a Reply

Your email address will not be published.