Emailing an invoice - Select Template
Allow selection of email template from the API when emailing an invoice.
POST https://api.xero.com/api.xro/2.0/Invoices/aa682059-c8ec-44b9-bc7f-344c94e1ffae/Email
Body:
{"Template": "3d4a46af-bb29-481a-85e1-37f59f0724d6"}
-
Brett Sutton commented
originally raise in 2018?
surely this is important enough - and easy enough - that we could get this done? -
Martin Thorburn commented
We run a subscription service and have 3 different payment types throught the life-cycle of an account (Signup/Trial - prepaid by credit card, monthly subscription - paid by direct debit, user add-ons - prepaid by credit card). Each are very different and each needs a very different email template.
I belive defining the email template to be used when email an invoice via the API is critical. Unlike much of the backend work we do which is out of sight of the customer and can often be worked around, the email is customer facing and clear transparent communication with customers is critical to any business. Without customers we have no use for an accounting system, Xero or other.
-
kevin eaton commented
if someone is doing something as detailed as using an api to get xero to generate an invoice and then send it via emails, they probably need more than one email template...i cant build an app to integrate with xero to autosend emails until this works....please this is essential...
-
Cryptopher commented
Companies do have multiple Sales Invoice templates.
Having just a default template for a Sales Invoice API is not enough.Would be really useful to build this feature in.
-
Tanuja commented
Yes choosing an email template would be really useful.
-
Sankar Raj commented
It should have been there by default.
-
Mark commented
Yeah, just found out. Disappointed that this is missing from the API.
We need to send invoices for companies that have either paid already or still need to pay. A different message would be very usefull.