Skip to content

MoceanAPI/dolibarr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 

Repository files navigation

Dolibarr MoceanAPI module user documentation

Table of Contents

Installation

  1. Download the latest version of MoceanAPI module here

  2. Go to Setup - Modules/Application

image

  1. Search for MoceanAPI and activate the module.

image

  1. Installation is now complete and you can access the module via Top Navigation

image

Prerequisites

  1. Before you can send SMS, you need a MoceanAPI account. Register an account here in 5 minutes or less
  2. Navigate to MoceanAPI module in dolibarr and specify your API Key, API Secret, Sender(Your business name), Default country and Active hour to send SMS reminder. You can find your API Credentials here

image

Features

Send SMS Notification

You can send SMS notifications based on specific events that occured in dolibarr. For eg: Send SMS when an invoice is validated

Configuration

  1. Navigate to MoceanAPI app via Top Navigation
  2. Click on the module you'd like to configure. For eg: Invoice module
  3. You can then configure the trigger for SMS notification. For eg: Send SMS when Invoice is validated

image

  1. Once you're satisfied with all the configurations, you can click on Save SMS Setting at the bottom of the page
  2. Test the SMS notification by Validating an Invoice.
  3. SMS sent information will be available in the SMS Outbox

Send Invoice Reminder

Reminder Prerequisite

Set PHP timezone in server
  1. SSH into your server
  2. Modify your php.ini file

nano /etc/php/7.4/apache2/php.ini

image

  1. You may need to change the command based on the PHP version your server is using. For eg: if you're using PHP Version 8.1 your command would be

nano /etc/php/8.1/apache2/php.ini

  1. Look for date.timezone and set the timezone to your local timezone.

image

  1. Save the file and restart your web server
Setup Cron Job
  1. Navigate to Setup > Modules / Application in Dolibarr and enable the Scheduled Jobs module and click on the gear icon

image

  1. Generate a security key to launch the cronjob using a script.

image

  1. Copy the command generated by dolibarr and replace the values according to your dolibarr installation

image

  1. Copy and paste the modified command into your cronjob entry in your server, in my case it would be

*/5 * * * * /srv/dolibarr-16.0.0/scripts/cron/cron_run_jobs.php 715WIrfV14Blvdv4aQV26VMIrJwR4g2g admin > /srv/dolibarr-16.0.0/documents/cron_run_jobs.php.log

Note: You may need to add /path/to/php infront of the script to run it successfully, the final code would be:

*/5 * * * * /usr/bin/php /srv/dolibarr-16.0.0/scripts/cron/cron_run_jobs.php 715WIrfV14Blvdv4aQV26VMIrJwR4g2g admin > /srv/dolibarr-16.0.0/documents/cron_run_jobs.php.log

  1. Navigate to Admin Tools > Scheduled Jobs

image

  1. If Scheduled is green color, your configuration is correct. If not, please recheck the steps above.

image

Contact us if you require assistance

Send Reminder Configuration

  1. Navigate to Invoice module in MoceanAPI app.
  2. Click on Add Reminder

image

  1. Configure the reminder criteria (when you want to send the reminder). You can personalise your SMS message using keywords

image

  1. Click on Save once you're satisfied with your configuration

  2. Enable the SMS notification and click on Save SMS Setting at the bottom of the page.

image

Voice Call

Before you can call, you need to set a callback number. This will usually be your number. After you recipient have answered the call, we will forward the call to you and you'll be connected to the call.

  1. Navigate to Contact of your choice
  2. You should see a Button MoceanAPI - Call.
  3. Click on it, and we'll connect the call to your recipient.

image

FAQ

  1. Can I get Test Credits ?

You can get 20 FREE credits and credits are valid for 14 days. Subject to approval.

  1. Can I send international messages?

Yes. We are an international SMS provider. You can send out SMS both locally and internationally based on our price list.

  1. What is the maximum characters per SMS I can put into the message?

160 characters for a normal text message, 70 characters for a Unicode text message (Arabic, Chinese, and etc)

  1. Is there a limit to how many numbers I can send at one time?

There is no limit on numbers to be sent in one go.

  1. What format does my phone number need to be in?

Mobile phone numbers need to be entered in international formatting with the country code and without spaces, plus signs or leading zeros.

  1. I have multiple phone numbers in my contact, which one will be used to receive SMS ?

We will send SMS to the mobile number of your contact

Did not find what you're looking for ?

Do raise a support ticket with our Support Team at [email protected].

Feature Request

Do raise a support ticket with our Support Team at [email protected].

Feedback

Send feedback to our Support Team at [email protected].

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published