Frontaccounting SimpleAPI Module guide |

Congrats, You are Subscribed to Receive Updates.

Frontaccounting SimpleAPI Module guide

Frontaccounting SimpleAPI Module guide is one of a good way to integrate your products lists from your Frontaccounting to Your eCommerce Store. Here is an simple Helping tutorial to install SimpleAPI on your FA and which will be accessed from remote.  Let’s start integration.


First get a copy of SimplAPI module from the Author “Andrés Amaya Díaz “. Here is the link to get the zip of the SimpleAPI module.

Download zip 

And now goto your installed Frontaccoutning directory and open “modules/ ” and extract the zip into it. Than rename the Extracted folder name “FrontAccountingSimpleAPI-master ” into your desired name ” here i just renamed it as ” kvcodes ” . Than move to your browser and goto Install Extension in the Setup page .

Now, it will appear in the list, just install it,  and you have one more important work here. Goto your modules directory and open your SimpleAPI module folder  than find,  util.php and open it on text editor, and here, you need to change the company name, user name and password with your Working FA details and Save it.

$company = '0'; // Company extension, you gave it while creating company
$user = 'kvcodes';  // username
$password = 'login_password'; //password

and open your browser and open

http://your-fa-url/modules/kvcodes/. This is the testing url. if you encounter any error than it will be the problem of Slim framework or you gave wrong login credentials,

Now, we need to test the API on Remote Server, The following code helps you to test it on remote.

$action = 'customers';
$headers = array('X_company: 0', 'X_user: admin', 'X_password: 123456');
$url = "$action/";

// create a new cURL for data retrieval 
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);

$content = ob_get_contents(); 

echo print_r(json_decode($content, true), true); ?>

This will list you the JSON encoded  Customer list gathered from the customers table,



About Varadharaj V

The founder of Kvcodes, Varadharaj V is an ERP Analyst and a Web developer specializing in WordPress(WP), WP Theme development, WP Plugin development, Frontaccounting(FA), Sales, Purchases, Inventory, Ledgers, Payroll & HRM, CRM, FA Core Customization, PHP and Data Analyst. Database Management Advance Level


  1. commenter


    Could you please tell me is it possible to use this solution for integration between Vtiger (CRM) and FA?

    Best and Regards,


  2. commenter


    Thank you for this guide.

    After I point to domain: http://your-fa-url/modules/kvcodes/ , I got an error as below:

    include_once(../../modules/api/ failed to open stream: No such file or directory in file: /home/hockieum/public_html/ketoan/modules/FrontAccountingSimpleAPI-master/ at line 227

    include_once(): Failed opening ‘../../modules/api/’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in file: /home/hockieum/public_html/ketoan/modules/FrontAccountingSimpleAPI-master/ at line 227

    Could you please tell me why I got the errors? I have done all step you post before.

    Thank you again and happy new years to you.

    Best and Regards,


Comment Below

Your email address will not be published. Required fields are marked *


Current ye@r *