Jump to content

Search the Community

Showing results for tags 'api'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • The latest WHMCS Release
    • WHMCS 8.0 Release Discussion Board
  • WHMCS Beta Program
    • WHMCS Mobile App Technical Preview Feedback
  • The Latest from the WHMCS Team
    • News, Announcements & Blogs from WHMCS
  • WHMCS.Community
    • Community Announcements
    • Introduce Yourself
  • Using WHMCS
    • Pre-Sales Questions
    • Admin & Configuration Questions
    • Installation, Upgrade, and Import Support
    • Using WHMCS
    • Troubleshooting Issues
    • Vendor Discussions
  • WHMCS Showcase
    • Showcase Your Site
    • Share Your Best Practices & Tips
  • Developing & Extending WHMCS
    • Third Party Add-ons
    • Service Offers & Requests
    • Developer Corner
    • Building Modules
    • Share Ideas for WHMCS Modules
  • Community Competitions
    • Competitions
  • General Discussions
    • General Discussion
  • General Feedback & Assistance
    • Feedback
    • WHMCS.Community Tips & Tricks
  • Third Party Developers's Topics
  • Turkish International Discussions's Topics
  • Russian International Discussions's Topics
  • Spanish International Discussions's Topics
  • Portuguese International Discussions's Topics
  • French International Discussions's Topics
  • Italian International Discussions's Topics
  • German International Discussions's Topics
  • WHMCS Brasil's Topics
  • WHMCS Brasil's Tópicos
  • ModulesGarden Club's Topics
  • Hungarian International Discussions's Segítség
  • ThemeMetro Club's Topics
  • WHMCS Services Club's Topics
  • SwiftModders Club's Topics
  • WHMCS Global Services Club's Topics
  • Katamaze's Free Scripts
  • Katamaze's Modules
  • Zomex Club's Topics
  • 0100Dev Club's Topics

WHMCS Version

  • V8.0.x Hotfixes
  • V7.10.x Hotfixes
  • V7.9.x Hotfixes

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



About Me

Found 46 results

  1. I have dreamscape registrar module in my WHMCS. unfortunately, am not able to understand the causes of the following error. the hosting server is OK with SOAP and have no issues with rest of the SOAP running. I have also spoke to registrar but they are also unable to understand rectify the error. the url is publicly accessible and has no issues with it. Could someone has the similar issue ? Registrar Error Failed to get domain details: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://soap.secureapi.com.au/wsdl/API-2.0.wsdl' : failed to load external entity "http://soap.secureapi.com.au/wsdl/API-2.0.wsdl"
  2. Hello, I'm working on a python script and i'd like to insert customfields on the updateclient call. This is a json of tblcustomfields {"id":"2","type":"client","relid":"0","fieldname":"status","fieldtype":"dropdown","description":"","fieldoptions":"notVerified,verified","regexpr":"","adminonly":"on","required":"","showorder":"","showinvoice":"","sortorder":"0","created_at":"0000-00-00 00:00:00","updated_at":"0000-00-00 00:00:00"}, tblcustomfieldsvalues {"id":"5","fieldid":"2","relid":"297","value":"verified","created_at":"2019-11-05 04:38:50","updated_at":"2019-11-05 04:38:50"}, {"id":"6","fieldid":"3","relid":"297","value":"","created_at":"2019-11-05 04:38:50","updated_at":"2019-11-05 04:38:50"}, {"id":"7","fieldid":"4","relid":"297","value":"","created_at":"2019-11-05 04:38:50","updated_at":"2019-11-05 04:38:50"}, {"id":"8","fieldid":"6","relid":"297","value":"","created_at":"2019-11-05 04:38:50","updated_at":"2019-11-05 04:38:50"} Now when it comes to pushing the data, the documentation isn't clear. All i'm seeing is; customfields|string|Base64 encoded serialized array of custom field values|Optional Based on web searching, its not getting clearer. Here is a snipped of my last code. cstatus = { "fieldid": "2", "value": "verified" } encoded = base64.b64encode(b'cstatus') with requests.Session() as session_whmcs_bounces: session_whmcs_bounces.headers.update(whmcs_auth) whmcs_bounces_payload = { 'identifier': whmcs_ident, 'secret': whmcs_secret, 'responsetype': whmcs_response, 'action': "UpdateClient", 'clientemail': email, 'status': "Inactive", 'marketingoptin': 0, 'notes': '--- Bounces ---\nCreated: %s\nStatus: %s\nReason: %s\n---Bounces---' % (timeconvert,status,reason), 'customfields': encoded } i tried using the json.dumps/json.loads techniques to serialize the data, but in my mind i don't have to since the data is already serialized, i just have to encode it. I also tried variations, as in just the ID and value { "2": "verified" } / { "id": "2", "value": "verified" } and different combinations. Been at it for a few hours and can't seem to find much information. Ideally i'd like to update multiple sections based on the json reply. The flow i'm trying to achieve is this; Receive client information from datasource. { "email": "example@domain.tld", "type": "prospect", "status": "verified", "firstName": "Jon", "lastName": "Wong", "position": "Senior Linux Administrator", "sourcePage": "https:\/\/www.linkedin.com\/in\/jonthewong" } Add it or Update it into WHMCS Use extra fields as customfields. In this case, type/status/position/sourcepage The python code shown is for a separate part of the project, but the customfields base64,serialization still apply. If anyone has any experience or suggestions i'd appreciate it. Thank you. On a side note, I'm using Python 3.7 + requests/time/json/base64/getpass I'm open to adding other libs, but ideally i'd prefer using the ones i already have build for this env.
  3. Hi there! Is there a way to access the variables of a payment gateway? With "GetModuleConfigurationParameters" I get the names of the parameters, but not their variables or content. If you can help me, that would be great !! Thanks in advance!
  4. Hello everyone, Real quick, I installed Namecheap API and configured WHMCS to auto register domains after payment are received. I did several test registrations with some fails and other successful. I’m now getting live registrations from my existing customers and payments go smoothly with no issues, customer even receives the purchase invoice and domain registration confirmation, but on Namecheap side things are really weird. Checking on the modules log I see the ‘response’ for the actual transaction and apparently the API is not using the correct command or method to create and register the domains. It just checks for the domain. And I say really weird because if I perform a manual registration of the same domain my customer is trying to buy, the registration goes though and it’s updated on my Namecheap account as well. I have to do it a couple of times until it works. Any suggestions on how to fix this problem or maybe documentation I can check. I contacted Namecheap support team several times but all the say is that the API is using the wrong command and that I should update the code 😞 Thank you, - ED
  5. Hi, I wrote an PHP utility for importing domains from an old administrative panel. The utility creates new order then confirm it. We were using nicIT for .it domains and ascio for the others tld; all worked fine, A few days ago we added internetbs and now when trying to create the order for .com domains (still managed by ascio) the AddOrder API returns a null response although the order is created and left in 'pending' status. With .it domains still works fine. Any idea ? is it possible to get a sort of log where to look for the reason the API call does not work properly ?
  6. So I recently noticed a weird bug. All of a sudden, I was getting an invalid IP error from the WHMCS API. I checked all my configurations, the IP was in the WHMCS admin panel under Setup > General > Security in the white listed IPs, I even manually checked the database to make sure I wasn't accidentally connected to the old database. After trying what I thought was everything, I rebooted the server, and to my surprise. It fixed the problem. But now, it has happened again, and again, rebooting the server has solved the issue. This has happened twice within the last few hours and I have no idea why. Anyone have any suggestions, locations for error logs, literally anything that helps me figure out why this is happening? Here's a copy of my Health Check if that helps WHMCS Health Check ================================================================================ error: * The system cron does not appear to have completed successfully within the last 24 hours. Check your activity logs or learn more about enabling the cron in our documentation. * Your configuration file is writable. This can be a security risk. We recommend setting the permissions to read only. .trimmed-dir-list li { text-decoration: underline dashed; } The following directories are owned by a different user from that which is executing WHMCS. This indicates a potentially insecure configuration:crons You can learn more about this in our documentation. * Your system is set to display errors. While this is useful for some debugging situations, it can interfere with some operations and is a security risk. For more information please refer to our documentation. warning: * - Automatic Updates require a writeable directory for staging files during an update. You must provide a directory via the Updater Configuration before you can update. * Your PHP memory_limit value 64M is lower than recommended. WHMCS recommends at least a 128M limit, however your value is higher than the minimum requirement of 64M. You can change this in your php.ini with the set_ini command. * Your PHP version 7.2.30 is supported by WHMCS. The PHP 7.2 branch no longer receives regular bug fixes and will only receive critical security updates until it reaches its end of life. Please see our documentation for more information. * The following PHP extensions are recommended for best performance and trouble free operation. While optional for core WHMCS functionality, certain modules and addons may require them to fully function as intended: - soap - xmlrpc - zip Please review the current system recommendations and search our documentation for the specific modules you use to learn more. * We have detected that your WHMCS installation is currently using the default template names for one or more of the active templates. If you have made any customisations, we strongly recommend creating a custom template directory to avoid losing your customisations the next time you upgrade.You are currently using a default template in the following locations: - Cart - Client Area Please review our documentation on making a custom theme for help doing this. notice: * Sensitive directories cannot be accessed from the web. * Your system is setup to not log unnecessary error levels. * Your PHP installation has all extensions loaded and enabled required for WHMCS to operate. * You are using custom paths for all the recommended WHMCS directories. * Your PHP installation has all required functions enabled for WHMCS to operate. * PHP session support is enabled.Session autostart is disabled.The PHP session save path /var/cpanel/php/sessions/ea-php72 is writable. * Your PHP environment uses a valid timezone. * You currently have version 7.70.0 of cURL installed. This version uses a secure cipher list. * cURL reports that it does support SSL * cURL reports that it does support Secure TLS 1.1 and 1.2 * A verified SSL certificate was detected for your site. * You are running MySQL version 5.7.30. This version supports all features required for full compatibility with WHMCS. * Your system is running "Apache" web server.
  7. 1. Over the past years, we have celebrated many diverse milestones with you by our side. Today the moment has come for another sumptuous celebration but this time is somewhat different. This time, our dear clients, it is all about you – your presence, trust and support we have been endowed with at every stage of our software development journey. We are truly humbled for the privilege of being the number one software house for over 25,000 business customers so far!For this rare honor to be celebrated with a due bang, we have decided to make this event all about you. Without further ado, let us invite you to join our joyful promotion launched especially for this memorable occasion consisting of not one, but a pair of delicious treats – 25% price cut for virtually every single module and the possibility to receive $25 for any purchase at ModulesGarden.Uncover the details of these two stunning bargains directly on our Blog!2. Hot off the press: Products Reseller For WHMCSFasten your seatbelts as there is one more extra surprise to top off this week’s news!During the last couple of months, we carefully listened to our customer’s precious feedback and forged ahead with the development of a completely novel module that we have the pleasure to bring to life today – Products Reseller For WHMCS!Following the example of some other module that we offer – Domains Reseller For WHMCS – we aimed at granting web hosting businesses the same freedom and comfort in managing their reselling operations but focused exclusively on products in this instance.Let us take you on a quick sightseeing tour across the module’s functionalities: The possibility to define custom product pricing rates for each reseller group individually and handle all their details right within your WHMCS. Dynamic statistics in the dashboard page summarizing your total income as well as earnings from specific products generated in a chosen time period. Advanced API documentation enabling your resellers to create custom integration submodules to deliver products to end clients by means of any other platform than WHMCS. For further specifics you should definitely hit the blue link below that will take you to the product’s dedicated page in a matter of seconds. Go carefully through the entire changelog and let the module settle in your business routine for good – especially when you can get hold of it for a mere fraction of its total price, only until the end of this week. How? By combining the splendid 15% Early Bird Sale with the ongoing 25k Customers Promotion!Learn all there is to know about Products Reseller For WHMCS!Need Custom Software Development For Your Business? Get Your Free Quote Now! Specially for you we will adapt an application and its design to your own needs, create a new module or even a completely new system built from scratch!
  8. Hello. I want to be able to add pay methods through the API, but the functionality seems to be broken. I can successfully use AddPayMethod through both the localAPI and also the external API. $command = 'AddPayMethod'; $data = [ 'clientid' => 490, 'type' => 'RemoteCreditCard', 'gateway_name' => 'stripe', 'card_number' => '4111111111111111', 'card_expiry' => '0320', 'set_as_default' => '1', ]; // { // result: "success", // clientid: 490, // paymethodid: 52 // } The pay method then appears in the database in tblpaymethods, albeit with wrong payment_type and no gateway_name. HOWEVER, then calling GetPayMethod retrieves no results: $command = 'GetPayMethods'; $data = [ 'clientid' => 490, ]; // { // result: "success", // clientid: 490, // paymethods: [ ] // } And there are no pay methods in the WHMCS dashboard for this client. NOTE: I have tried this with all kinds of permutations of real credit card numbers (rather than the test cc#, shown above), and also using type: 'CrediCard' and no gateway_name. The results are always the same. The API says, result: 'success', and it saves it to the DB table, but GetPayMethods never returns anything, and the actual WHMCS dashboard shows no pay methods for that client. If I manually add a PayMethod via the WHMCS dashboard, then that will appear in the results for GetPayMethods. How am I supposed to add a PayMethod via API? Thank you, Scott
  9. I have been working with the API for a couple months now and am finding that much of the functionality available through the WHMCS dashboard is simply missing in the API. It's as if the functionality available through the API is a limited subset of the functionality available in the dashboard. Can someone please confirm that this is the case? Thank you, Scott
  10. Hi, I want to perform some tasks that require the service id on a hook(specifically invoice creation) the paramters there are limited all I get is the invoice id. Is there a way to fetch service id using that invoice id any indication/help/solution would be highly appreciated. The hook must trigger either before or after invoice generation. Thanks. 👍
  11. Hello, I try this code: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://******/api/includes/api.php'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query( [ 'action' => 'GetClients', // See https://developers.whmcs.com/api/authentication 'identifier' => '*****', 'secret' => '*****', 'search' => 'domain', 'responsetype' => 'json', ] ) ); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); curl_close($ch); var_dump($response); But i get this error: {"result":"error","message":"An admin user is required"} My Ip is listed in Api Alloweds Ips and I have whmcs v7.9.1 Whats is the problem? Thanks, Cesar
  12. Hi guys, In add order api we can't add domain addons to already registered domains, so you must add domain addons to new domains only, is there any way to pass this issue or someone built custom api to fix the problem ? Thanks for help.
  13. dear community member.. hope all doing very well. i am trying to make a module for my VoIP project . one of my friend helping me out in this module. but i dont know what he done something is he can't figure out how to fix. basically its for VoIP project. so we will sell voip service with local city number. so when the ordering time we will select the city and then based on the city name the available numbers will be display.. so for the list of city the api link is https://mydomainname.com/api/city_list.php?&token=123456 this api link display all the city name from remote database so thats i want it to show in one custom field and for the second custom field based on the city name i have another api link which is https://mydomainname.com/api/did_free.php?city=Dublin&token=123456 which shows result this way its only shows the number is dublin city from the remote database. my friend make the module for me. but the way i want its show very right in the customer order form . i mean if customer directly buy from the client area its shows perfect according to city name so when i select the city then i see available numbers based on the city which the way i wanted to see from the client area. so from the client area its works properly no problem. problem with from the admin area when i wanted to setup a product to client from admin in the admin panel i see like this which means its doesn't matter which city i select. but i see all numbers from my remote database. like 35391 is Galway numbers 35314 is Dublin Numbers and 35321 is Cork numbers. they are all showing together. which is very frustrating . here is my hook file code. can some please please tell me where he did wrong? HOOK FILE CODE ======================================== <?php use PDO; use Exception; use PDOException; use WHMCS\Database\Capsule; $host = 'https://mydomainname.com/api/'; $token = '123456'; $ch = curl_init(); $fields = array( 'token' => $token ); curl_setopt($ch, CURLOPT_URL, $host.'city_list.php?'.http_build_query($fields)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $city = curl_exec($ch); curl_close($ch); $packageNames = json_decode($city, true); $citylist = array(); $numberslist = array(); foreach ($packageNames['result'] as $packageName) { $citylist[$packageName['city']] = ucfirst($packageName['city']); $ch = curl_init(); $fields = array( 'city' => $packageName['city'], 'token' => $token ); curl_setopt($ch, CURLOPT_URL, $host.'did_free.php?'.http_build_query($fields)); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $numbers = curl_exec($ch); $numbers = json_decode($numbers); $numberslist = array_merge($numbers->result,$numberslist); curl_close($ch); } $citylist = implode($citylist,','); $numberslist = implode($numberslist,','); //echo json_encode(array('cities'=>explode(",",$citylist),'numbers'=>explode(",",$numberslist))); $pdo = Capsule::connection()->getPdo(); try { $result = $pdo->query( "update tblcustomfields set fieldoptions = '".$citylist."' where fieldname = 'City'" ); } catch (\Exception $e) { echo "Uh oh! {$e->getMessage()}"; return $e->getMessage(); } try { $result = $pdo->query( "update tblcustomfields set fieldoptions = '".$numberslist."' where fieldname = 'Available Phone Numbers'" ); } catch (\Exception $e) { echo "Uh oh! {$e->getMessage()}"; return $e->getMessage(); } add_hook('OverrideModuleUsernameGeneration', 1, function($vars) { return $vars['customfields']['Available Phone Numbers']; }); ============================================================= please someone help me to correct the code. please
  14. Hii, We are having an issue of file upload in the support ticket. We are using the cakephp for our platform and also the WHMCS API on our platform for the support and billing. On the platform side when a client sends the attachment with the file size more than 1MB the file uploads in the cloud where we are storing but it doesn't get attached in the ticket from the client-side and on the staff side (WHMCS) the attachment is not receiving. We have checked the server's file upload limit and everything and it looks ok that file upload limit is properly set. The file upload less then 1MB is working fine and our staff are able to receive the attachments. Also, the attachment sending from Staff to client is working fine for even 18MB file size.
  15. Hi I have an issue while Placing an order using API. Placing an order with "Free" billing cycle but order placeed with "Monthly" billing cycle. See https://nimb.ws/KhLHV8 . https://nimb.ws/KvqJiT Product Setting : https://nimb.ws/a9DWBU I tried "free","free-account","Free","Free-Account"..etc... But not working. $postdata = array( 'action' => 'AddOrder', 'clientid' =>10, 'pid' => array('242'), 'noinvoiceemail'=>true, 'priceoverride'=>'0.00', 'noemail'=>true, 'noinvoice'=>true, 'billingcycle' => array('Free'), 'paymentmethod' => 'paypal', 'responsetype' => 'json' ); Regards kan
  16. Hi.. I have been working on this for 4 days now and still not able to find a right solution. i have the get client data using api to display it in other platform but it displays in array form. Since i am new to coding, I need it to display in table form . How am i able to do it ? please help me here the code applied: // API Connection Details $whmcsUrl = "https://domain.com/"; // For WHMCS 7.2 and later, we recommend using an API Authentication Credential pair. // Learn more at http://docs.whmcs.com/API_Authentication_Credentials // Prior to WHMCS 7.2, an admin username and md5 hash of the admin password may be used. $username = "xxxxxxxxxxxxxxxxxxxxxxx"; $password = "yyyyyyyyyyyyyyyyyyyyyyyyy"; // Set post values $postfields = array( 'username' => $username, 'password' => $password, 'action' => 'GetClients', 'responsetype' => 'json', ); // Call the API $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $whmcsUrl . 'includes/api.php'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 30); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($postfields)); $response = curl_exec($ch); if (curl_error($ch)) { die('Unable to connect: ' . curl_errno($ch) . ' - ' . curl_error($ch)); } curl_close($ch); // Decode response $jsonData = json_decode($response, true); // Dump array structure for inspection var_dump($jsonData);?> Here is the result: Please help me solve this..Thank you
  17. 1. This is the kind of news we love sharing the most! Our Domains Reseller For WHMCS module has been upgraded to the landmark 2.0 version, thus pioneering a whole new direction in which the tool will be heading from now on. Starting with the spectacular framework redesign, the module embraced also a varied range of new functionalities, including: Possibility to set up different domain pricing rates for individual reseller groups in the module addon Dynamic statistics in admin dashboard summarizing total income plus income from specific TLDs from a chosen time period Advanced API documentation, enabling both admin providers and resellers to create custom submodules Complete overview of reseller details such as TLDs pricing, end users’ orders, or logs now conveniently stored in their own Reseller Area Go carefully through the full changelog and let flexibility settle in your business routine for good! AP Learn more about Domains Reseller For WHMCS 2.0! 2. EasyDCIM - a cutting-edge tool automating daily data center operations, has recently received a solid 1.5.5 update. Among the new utilities administrators are now free to use are the practical tooltips with overview on users and most device types supported by the system, as well as extended features related to QR codes, allowing now to easily label the physical equipment in a server room. Head right over to the official EasyDCIM Blog for extra info! 3. Check out also our other recent module updates: EURid Registrar For WHMCS - 1.2.2 Password Manager For WHMCS - 2.2.5 - 2.2.5 Support Tickets Allocator For WHMCS - 1.3.0 Need Custom Software Development For Your Business? Get Your Free Quote Now! Specially for you we will adapt an application and its design to your own needs, create a new module or even a completely new system built from scratch!
  18. Hello, community! I'm doing some experiments with the API UpdateTransaction but it looks like it is not working with any combination of parameters. I used the required parameter transactionid and tried to update the fee and description, but nothing happens. The API returns success.
  19. Hi All, I've written some PHP to extract client files from the WHMCS database because it's not a native API call. Just opened the thread to share it with anyone who may want to use it. I'm working on another to update the Last Login details also. Create the SQL Connection then Get the Files List - Pass $userID as the clientID - While loop ensures all records are put into the arrary function getfiles($userID) { $conn = new mysqli('DBAddress', 'DBUser', 'DBPW', 'DBName') $result = $conn->query("SELECT * FROM `tblclientsfiles` WHERE userid = $userID"); $rows = array(); while($row = $result->fetch_assoc()) { $rows[] = $row; } return $rows; } $filesData = getfiles($userID); for ($counter = 0; $counter < count($rows); $counter++) { $split = explode("_", $filesData[$counter]['filename']); echo "<tr><td>" . $split['1'] . "</td><td><a href='WHMCSWebsite/attachments" .$filesData[$counter]['filename']. "'>Download</a></td></tr>"; } That should be enough for people to be able to extract the files list and display it through the API.
  20. Hi All, Has anyone successfully worked out a way to generate a forgotten password email from the WHMCS API? It's all good to be able to login to the system but if the user has forgotten their password it's pointless getting them to sign into the WHMCS version of the site when you're using the API to make sure they don't hit that site in the first place? It seems strange that this isn't native to WHMCS already as it aligns with the login process of the normal page? Any help with this is greatly appreciated.. Thanks!
  21. Hi All, Does anyone know if it is possible to make a payment through a custom gateway from outside the WHMCS system? I want to let users pay with a credit card using my custom payment gateway through my own website rather than the WHMCS website, since the API does not have any function built in for payment of invoices from the remote API I was going to try and reference the payment gateway file directly. Is there a clean way to pass through the variables that the payment gateway is looking for or should I $_POST the variables and then just overwrite whatever the gateway file is looking for so that I don't need to change the gateway code that currently functions? Not sure if I will have to manually run the remote API command to AddInvoicePayment to the system depending on whether it is processed or not. Thinking about it like that could this be seen as a functional way of completing a payment? If someone has a cleaner/simpler solution I'd be happy to hear it? Thanks in advance
  22. Hi Guys, Has anyone managed to access customer files via the API? I'm not sure if there is an API call already for it(if there is, it isn't in the doc's). Otherwise has anyone written one themselves that they are willing to provide insight on?? Thanks.
  23. Hi All, I've been looking for a while to find a solution to how I can display users files in a remote API session. Just wondering if anyone has any experience accessing the database across the remote API, I'd rather not write into the page credentials to access the DB, as secure as it may be. As the API seems to have a few gaps in functionality, I'm planning on running SELECT * FROM `tblclientsfiles` WHERE userid = apiuserid Which will give me the information I need to display links to each of the files and their titles. Any help or examples on how to interface with the DB is much appreciated.
  24. An issue has been identified in the 7.4.2 release - published on 9th January, 2018 - that is causing the GetProducts API command not to return product data in the expected format. Data is incorrectly returned as: Array ( [result] => success [totalresults] => ) Resolution We are releasing a hot-fix patch which resolves the underlying issue. Applying the HotFix To apply the fix, download the zip file from the link below. Extract the contents and upload to your whmcs directory overwriting the existing files. CORE-11933-getproducts-api-does-not-return.zip Note: This file is only applicable if you are running Version 7.4.2
  25. Hi Guys, A much asked for feature over the last few years for API users has been the ability to retrieve PDF Invoices from the system. I stumbled across a link from The Wandering System Admin who has done a great job at dissecting the system and getting it to spit out a PDF invoice. (http://thewanderingsysadmin.net/?p=35) However I'm having a bit of trouble getting it working. I've created the request and passed it $username,$password & a static invoice ID of 10 however I'm getting a response of, I've created the api request file in /includes/api/genpdffile.php however it's still not working. Happy to drop the working code once I get it, because I know a few people are looking for it on here, and WHMCS support are yet to implement this natively. Thanks to anyone with any ideas. Anyone can follow the ticket if they want to keep updated on the issue.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated