diff --git a/packages/nodes-base/nodes/Xero/InvoiceInterface.ts b/packages/nodes-base/nodes/Xero/InvoiceInterface.ts index 1c86f8b560..270ff9ec3f 100644 --- a/packages/nodes-base/nodes/Xero/InvoiceInterface.ts +++ b/packages/nodes-base/nodes/Xero/InvoiceInterface.ts @@ -20,7 +20,7 @@ export interface IInvoice extends ITenantId { Contact?: IDataObject; Date?: string; DueDate?: string; - LineAmountType?: string; + LineAmountTypes?: string; InvoiceNumber?: string; Reference?: string; BrandingThemeID?: string; diff --git a/packages/nodes-base/nodes/Xero/Xero.node.ts b/packages/nodes-base/nodes/Xero/Xero.node.ts index a971b7caf6..27efa06902 100644 --- a/packages/nodes-base/nodes/Xero/Xero.node.ts +++ b/packages/nodes-base/nodes/Xero/Xero.node.ts @@ -291,7 +291,7 @@ export class Xero implements INodeType { body.InvoiceNumber = additionalFields.invoiceNumber as string; } if (additionalFields.lineAmountType) { - body.LineAmountType = additionalFields.lineAmountType as string; + body.LineAmountTypes = additionalFields.lineAmountType as string; } if (additionalFields.plannedPaymentDate) { body.PlannedPaymentDate = additionalFields.plannedPaymentDate as string; @@ -388,7 +388,7 @@ export class Xero implements INodeType { body.InvoiceNumber = updateFields.invoiceNumber as string; } if (updateFields.lineAmountType) { - body.LineAmountType = updateFields.lineAmountType as string; + body.LineAmountTypes = updateFields.lineAmountType as string; } if (updateFields.plannedPaymentDate) { body.PlannedPaymentDate = updateFields.plannedPaymentDate as string;