Jump to content

API: addorder & invoice emails


Recommended Posts

Hello :)

 

I'm working on an integration with our order process, and in building a module to handle invoicing for legacy clients, I want to use the api addorder function to add products to a client. I also want it to add the invoice for the products to the client, and have it paid, but I don't want to email the client these details - an existing process is already doing the emailing.

 

If I set noemail to true in the addorder api request, that's great, the order doesn't generate an email. If, however, I set noinvoice to false, and noemail to true, I'm finding that I get no email for the order, but I do get emails for the invoice.

 

Is that right? Is there something else I should do to suppress the email for the invoice, too?

 

Many thanks, and hope this is clear enough,

 

-- Jamie Wiseman

-- http://www.subhub.com

Link to comment
Share on other sites

  • 2 months later...

If I am correct, in order to avoind the emails that are being sent, you have to create the order marking noemail and no invoice to true and then create an invoice yourself in the same script marking noemail to true. If you wish any emails to be sent to the client (custom emails) have your script compose and send the script with the information gathered through the order and invoice creation process.

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