Jump to content

API Integration: Create Orders without sending Invoice emails


hannibalza

Recommended Posts

Hi

 

We've integrated one of our client console with WHMCS for billing via the API.

 

Up until now it has worked fine, except we have a requirement to disable sending of invoice emails the moment a new order is created on the system. The idea being that invoices generated during the course of the month would be consolidated at month end for billing simplicity.

 

In some cases we have resellers who would otherwise be receiving hundreds of 'Invoice generated' emails throughout the month, which has resulted in lots of complaints.

 

We are trying to simplify this process from our end, but there doesn't seem to be anything in the API documentation that helps with this.

 

The one flag we found in the Accept_Order action of the API was "sendemail", which we tried omitting, setting to 'false', even setting to '0'. Neither approach helped, as the system still generated the following emails:

 

- Order Confirmation

- Customer Invoice

- {product} account Details

 

Any assistance will be greatly appreciated.

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...
so you need to stop sending one or multiple email templates from sending?

 

there is two solutions for that, the easiest one is:

Admin Area -> Setup -> Email Templates -> Invoice Payment Confirmation -> tick the Disable checkbox

 

mmm that would affect the entire system though.

 

We are creating Invoices and Orders via the API from a separate system, and it is here we want to be able to prevent the Invoice Emails from going out.

 

as mentioned above;

 

The one flag we found in the Accept_Order action of the API was "sendemail", which we tried omitting, setting to 'false', even setting to '0'. Neither approach helped, as the system still generated the following emails:

 

- Order Confirmation

- Customer Invoice <--- THIS WE WANT TO STOP

- {product} account Details

Link to comment
Share on other sites

  • WHMCS Support Manager

Hi,

The 'sendemail' variable in the Accept_Order API command applies to the "{product} account Details" email. It's too late to prevent the invoice notification email being sent because the invoice has already been generated by the time you're in a position to be accepting it.

 

To prevent invoices emails sending when placing an order, tick Setup > General Settings > Ordering tab > No Invoice Email on Order.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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