/** * Zoho CRM Node - Version 1 * Discriminator: resource=invoice, operation=create */ interface Credentials { zohoOAuth2Api: CredentialReference; } /** Create an account */ export type ZohoCrmV1InvoiceCreateParams = { resource: 'invoice'; operation: 'create'; /** * Subject or title of the invoice */ subject?: string | Expression | PlaceholderValue; /** * Products * @default {} */ Product_Details?: { /** List Price */ list_price?: number | Expression; /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> * @default [] */ id?: string | Expression; /** Product Description */ product_description?: string | Expression | PlaceholderValue; /** Quantity * @default 1 */ quantity?: number | Expression; /** Quantity in Stock * @default 0 */ quantity_in_stock?: number | Expression; /** Tax * @default 0 */ Tax?: number | Expression; /** Total * @default 0 */ total?: number | Expression; /** Total After Discount * @default 0 */ total_after_discount?: number | Expression; /** Total (Net) * @default 0 */ net_total?: number | Expression; /** Unit Price * @default 0 */ unit_price?: number | Expression; }; /** * Additional Fields * @default {} */ additionalFields?: { /** ID of the account associated with this invoice. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. * @default [] */ accountId?: string | Expression; /** Adjustment in the grand total, if any */ Adjustment?: number | Expression; /** Billing Address * @default {} */ Billing_Address?: { /** Billing Address Fields */ address_fields?: { /** Street */ Billing_Street?: string | Expression | PlaceholderValue; /** City */ Billing_City?: string | Expression | PlaceholderValue; /** State */ Billing_State?: string | Expression | PlaceholderValue; /** Country */ Billing_Country?: string | Expression | PlaceholderValue; /** Zip Code */ Billing_Code?: string | Expression | PlaceholderValue; }; }; /** Symbol of the currency in which revenue is generated * @default USD */ Currency?: 'USD' | 'EUR' | 'AED' | 'AFN' | 'ALL' | 'ARS' | 'AUD' | 'AZN' | 'BBD' | 'BDT' | 'BGN' | 'BMD' | 'BND' | 'BOB' | 'BRL' | 'BSD' | 'BWP' | 'BZD' | 'CAD' | 'CHF' | 'CLP' | 'CNY' | 'COP' | 'CRC' | 'CZK' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'FJD' | 'GBP' | 'GTQ' | 'HKD' | 'HNL' | 'HRK' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'JMD' | 'JPY' | 'KES' | 'KRW' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'MAD' | 'MMK' | 'MOP' | 'MRO' | 'MUR' | 'MVR' | 'MXN' | 'MYR' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'QAR' | 'RON' | 'RUB' | 'SAR' | 'SBD' | 'SCR' | 'SEK' | 'SGD' | 'SYP' | 'THB' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'UAH' | 'VND' | 'VUV' | 'WST' | 'XCD' | 'XOF' | 'YER' | 'ZAR' | Expression; /** Filter by custom fields * @default {} */ customFields?: { /** Custom Field */ customFields?: Array<{ /** Custom field to set a value to */ fieldId?: string | Expression; /** Value to set on custom field */ value?: string | Expression | PlaceholderValue; }>; }; /** Description */ Description?: string | Expression | PlaceholderValue; /** Due Date */ Due_Date?: string | Expression; /** Exchange rate of the default currency to the home currency */ Exchange_Rate?: number | Expression; /** Total amount for the product after deducting tax and discounts */ Grand_Total?: number | Expression; /** Invoice Date */ Invoice_Date?: string | Expression; /** Invoice Number */ Invoice_Number?: string | Expression | PlaceholderValue; /** Commission of sales person on deal closure as a percentage. For example, enter 12 for 12%. */ Sales_Commission?: number | Expression; /** Shipping Address * @default {} */ Shipping_Address?: { /** Shipping Address Fields */ address_fields?: { /** Street */ Shipping_Street?: string | Expression | PlaceholderValue; /** City */ Shipping_City?: string | Expression | PlaceholderValue; /** State */ Shipping_State?: string | Expression | PlaceholderValue; /** Country */ Shipping_Country?: string | Expression | PlaceholderValue; /** Zip Code */ Shipping_Code?: string | Expression | PlaceholderValue; }; }; /** Status */ Status?: string | Expression | PlaceholderValue; /** Total amount for the product excluding tax */ Sub_Total?: number | Expression; /** Tax amount as the sum of sales tax and value-added tax */ Tax?: number | Expression; /** Terms and conditions associated with the invoice */ Terms_and_Conditions?: string | Expression | PlaceholderValue; }; }; export type ZohoCrmV1InvoiceCreateNode = { type: 'n8n-nodes-base.zohoCrm'; version: 1; credentials?: Credentials; config: NodeConfig; };