/** * ActiveCampaign Node - Version 1 * Discriminator: resource=ecommerceOrder, operation=update */ interface Credentials { activeCampaignApi: CredentialReference; } /** Update an account */ export type ActiveCampaignV1EcommerceOrderUpdateParams = { resource: 'ecommerceOrder'; operation: 'update'; /** * The ID of the e-commerce order * @default 0 */ orderId?: number | Expression; /** * Update Fields * @default {} */ updateFields?: { /** The ID of the order in the external service. ONLY REQUIRED IF EXTERNALCHECKOUTID NOT INCLUDED. */ externalid?: string | Expression | PlaceholderValue; /** The ID of the cart in the external service. ONLY REQUIRED IF EXTERNALID IS NOT INCLUDED. */ externalcheckoutid?: string | Expression | PlaceholderValue; /** The order source code (0 - will not trigger automations, 1 - will trigger automations) * @default 0 */ source?: number | Expression; /** The email address of the customer who placed the order */ email?: string | Expression | PlaceholderValue; /** The total price of the order in cents, including tax and shipping charges. (i.e. $456.78 => 45678). Must be greater than or equal to zero. * @default 0 */ totalPrice?: number | Expression; /** The currency of the order (3-digit ISO code, e.g., "USD") * @default eur */ currency?: 'eur' | 'usd' | 'gbp' | 'chf' | 'cny' | '' | 'aed' | 'afn' | 'all' | 'amd' | 'ang' | 'aoa' | 'ars' | 'aud' | 'awg' | 'azn' | 'bam' | 'bbd' | 'bdt' | 'bgn' | 'bhd' | 'bif' | 'bmd' | 'bnd' | 'bob' | 'brl' | 'bsd' | 'btc' | 'btn' | 'bwp' | 'byn' | 'bzd' | 'cad' | 'cdf' | 'clf' | 'clp' | 'cnh' | 'cop' | 'crc' | 'cuc' | 'cup' | 'cve' | 'czk' | 'djf' | 'dkk' | 'dop' | 'dzd' | 'egp' | 'ern' | 'etb' | 'fjd' | 'fkp' | 'gel' | 'ggp' | 'ghs' | 'gip' | 'gmd' | 'gnf' | 'gtq' | 'gyd' | 'hkd' | 'hnl' | 'hrk' | 'htg' | 'huf' | 'idr' | 'ils' | 'imp' | 'inr' | 'iqd' | 'irr' | 'isk' | 'jep' | 'jmd' | 'jod' | 'jpy' | 'kes' | 'kgs' | 'khr' | 'kmf' | 'kpw' | 'krw' | 'kwd' | 'kyd' | 'kzt' | 'lak' | 'lbp' | 'lkr' | 'lrd' | 'lsl' | 'lyd' | 'mad' | 'mdl' | 'mga' | 'mkd' | 'mmk' | 'mnt' | 'mop' | 'mro' | 'mru' | 'mur' | 'mvr' | 'mwk' | 'mxn' | 'myr' | 'mzn' | 'nad' | 'ngn' | 'nio' | 'nok' | 'npr' | 'nzd' | 'omr' | 'pab' | 'pen' | 'pgk' | 'php' | 'pkr' | 'pln' | 'pyg' | 'qar' | 'ron' | 'rsd' | 'rub' | 'rwf' | 'sar' | 'sbd' | 'scr' | 'sdg' | 'sek' | 'sgd' | 'shp' | 'sll' | 'sos' | 'srd' | 'ssp' | 'std' | 'stn' | 'svc' | 'syp' | 'szl' | 'thb' | 'tjs' | 'tmt' | 'tnd' | 'top' | 'try' | 'ttd' | 'twd' | 'tzs' | 'uah' | 'ugx' | 'uyu' | 'uzs' | 'vef' | 'vnd' | 'vuv' | 'wst' | 'xaf' | 'xag' | 'xau' | 'xcd' | 'xdr' | 'xof' | 'xpd' | 'xpf' | 'xpt' | 'yer' | 'zar' | 'zmw' | 'zwl' | Expression; /** The ID of the connection from which this order originated * @default 0 */ connectionid?: number | Expression; /** The ID of the customer associated with this order * @default 0 */ customerid?: number | Expression; /** The date the order was placed */ externalupdatedDate?: string | Expression; /** The date the cart was abandoned. REQUIRED ONLY IF INCLUDING EXTERNALCHECKOUTID. */ abandonedDate?: string | Expression; /** The total shipping amount for the order in cents * @default 0 */ shippingAmount?: number | Expression; /** The total tax amount for the order in cents * @default 0 */ taxAmount?: number | Expression; /** The total discount amount for the order in cents * @default 0 */ discountAmount?: number | Expression; /** The URL for the order in the external service */ orderUrl?: string | Expression | PlaceholderValue; /** The date the order was updated */ externalUpdatedDate?: string | Expression; /** The shipping method of the order */ shippingMethod?: string | Expression | PlaceholderValue; /** The order number. This can be different than the externalid. */ orderNumber?: string | Expression | PlaceholderValue; /** All ordered products * @default {} */ orderProducts?: { /** The name of the product */ name?: string | Expression | PlaceholderValue; /** The price of the product, in cents. (i.e. $456.78 => 45678). Must be greater than or equal to zero. * @default 0 */ price?: number | Expression; /** The quantity ordered * @default 0 */ quantity?: number | Expression; /** The ID of the product in the external service */ externalid?: string | Expression | PlaceholderValue; /** The category of the product */ category?: string | Expression | PlaceholderValue; /** The SKU for the product */ sku?: string | Expression | PlaceholderValue; /** The description of the product */ description?: string | Expression | PlaceholderValue; /** An Image URL that displays an image of the product */ imageUrl?: string | Expression | PlaceholderValue; /** A URL linking to the product in your store */ productUrl?: string | Expression | PlaceholderValue; }; }; }; export type ActiveCampaignV1EcommerceOrderUpdateNode = { type: 'n8n-nodes-base.activeCampaign'; version: 1; credentials?: Credentials; config: NodeConfig; };