/** * Keap Node - Version 1 * Discriminator: resource=ecommerceOrder, operation=create */ interface Credentials { keapOAuth2Api: CredentialReference; } /** Create a company */ export type KeapV1EcommerceOrderCreateParams = { resource: 'ecommerceOrder'; operation: 'create'; /** * Contact ID */ contactId?: string | Expression | PlaceholderValue; /** * Order Date */ orderDate?: string | Expression; /** * Order Title */ orderTitle?: string | Expression | PlaceholderValue; /** * Order Type */ orderType?: 'offline' | 'online' | Expression; /** * Additional Fields * @default {} */ additionalFields?: { /** Lead Affiliate ID * @default 0 */ leadAffiliateId?: number | Expression; /** Uses multiple strings separated by comma as promo codes. The corresponding discount will be applied to the order. */ promoCodes?: string | Expression | PlaceholderValue; /** Sales Affiliate ID * @default 0 */ salesAffiliateId?: number | Expression; }; /** * Shipping Address * @default {} */ addressUi?: { /** Address */ addressValues?: { /** Company */ company?: string | Expression | PlaceholderValue; /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ countryCode?: string | Expression; /** First Name */ firstName?: string | Expression | PlaceholderValue; /** Middle Name */ middleName?: string | Expression | PlaceholderValue; /** Last Name */ lastName?: string | Expression | PlaceholderValue; /** Line 1 */ line1?: string | Expression | PlaceholderValue; /** Line 2 */ line2?: string | Expression | PlaceholderValue; /** Locality */ locality?: string | Expression | PlaceholderValue; /** Region */ region?: string | Expression | PlaceholderValue; /** Zip Code */ zipCode?: string | Expression | PlaceholderValue; /** Zip Four */ zipFour?: string | Expression | PlaceholderValue; /** Phone */ phone?: string | Expression | PlaceholderValue; }; }; /** * Order Items * @default {} */ orderItemsUi?: { /** Order Item */ orderItemsValues?: Array<{ /** Description */ description?: string | Expression | PlaceholderValue; /** Overridable price of the product, if not specified, the default will be used * @default 0 */ price?: number | Expression; /** Product ID * @default 0 */ 'product ID'?: number | Expression; /** Quantity * @default 1 */ quantity?: number | Expression; }>; }; }; export type KeapV1EcommerceOrderCreateNode = { type: 'n8n-nodes-base.keap'; version: 1; credentials?: Credentials; config: NodeConfig; };