XeroAPI / xero-node-oauth2-app

NodeJS app for demonstrating the xero-node v4 SDK
MIT License
38 stars 43 forks source link

xero.accountingApi.emailInvoice Issues #76

Closed deesonrohan closed 2 years ago

deesonrohan commented 2 years ago

I am trying to email the invoice with no joy, not seeing any sign of it in the App history on developer.xero

this is how I'm using it.

const createdInvoicesResponse = await xero.accountingApi.createInvoices('', createXeroInvoices); const emailInvoice = await xero.accountingApi.emailInvoice('',<string>createdInvoicesResponse?.body?.invoices?.[0]?.invoiceID, {});

deesonrohan commented 2 years ago

Ignore this it was my mistake