activeCampaign.json•21.1 kB
{
"nodeType": "n8n-nodes-base.activeCampaign",
"displayName": "ActiveCampaign",
"description": "Create and edit data in ActiveCampaign",
"version": 1,
"properties": [
{
"name": "account",
"displayName": "Account ID",
"type": "number",
"default": "",
"required": true,
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"accountContact"
]
}
}
},
{
"name": "contact",
"displayName": "Contact ID",
"type": "number",
"default": "",
"required": true,
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"accountContact"
]
}
}
},
{
"name": "additionalFields",
"displayName": "Additional Fields",
"type": "collection",
"default": {},
"description": "Job Title of the contact at the account",
"placeholder": "Add Field",
"options": [
{
"name": "jobTitle",
"displayName": "Job Title",
"type": "string",
"default": "",
"description": "Job Title of the contact at the account"
}
],
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"accountContact"
]
}
}
},
{
"name": "accountContactId",
"displayName": "Account Contact ID",
"type": "number",
"default": 0,
"description": "ID of the account contact to delete",
"required": true,
"displayOptions": {
"show": {
"operation": [
"delete"
],
"resource": [
"accountContact"
]
}
}
},
{
"name": "updateFields",
"displayName": "Update Fields",
"type": "collection",
"default": {},
"description": "The fields to update",
"placeholder": "Add Field",
"options": [
{
"name": "jobTitle",
"displayName": "Job Title",
"type": "string",
"default": "",
"description": "Job Title of the contact at the account"
}
],
"displayOptions": {
"show": {
"operation": [
"update"
],
"resource": [
"accountContact"
]
}
}
},
{
"name": "operation",
"displayName": "Operation",
"type": "options",
"default": "create",
"description": "Create an association",
"options": [
{
"name": "Create",
"value": "create",
"description": "Create an association"
},
{
"name": "Delete",
"value": "delete",
"description": "Delete an association"
},
{
"name": "Update",
"value": "update",
"description": "Update an association"
}
],
"displayOptions": {
"show": {
"resource": [
"accountContact"
]
}
}
},
{
"name": "name",
"displayName": "Name",
"type": "string",
"default": "",
"description": "Account's name",
"required": true,
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"account"
]
}
}
},
{
"name": "accountId",
"displayName": "Account ID",
"type": "number",
"default": 0,
"description": "ID of the account to update",
"required": true,
"displayOptions": {
"show": {
"operation": [
"update"
],
"resource": [
"account"
]
}
}
},
{
"name": "filters",
"displayName": "Filters",
"type": "collection",
"default": {},
"description": "Search by name",
"placeholder": "Add Filter",
"options": [
{
"name": "search",
"displayName": "Search",
"type": "string",
"default": "",
"description": "Search by name"
}
],
"displayOptions": {
"show": {
"operation": [
"getAll"
],
"resource": [
"account"
]
}
}
},
{
"name": "service",
"displayName": "Service",
"type": "string",
"default": "",
"description": "The name of the service",
"required": true,
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"connection"
]
}
}
},
{
"name": "externalid",
"displayName": "External Account ID",
"type": "string",
"default": "",
"description": "The ID of the account in the external service",
"required": true,
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"connection"
]
}
}
},
{
"name": "logoUrl",
"displayName": "Logo URL",
"type": "string",
"default": "",
"description": "The URL to a logo image for the external service",
"required": true,
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"connection"
]
}
}
},
{
"name": "linkUrl",
"displayName": "Link URL",
"type": "string",
"default": "",
"description": "The URL to a page where the integration with the external service can be managed in the third-party's website",
"required": true,
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"connection"
]
}
}
},
{
"name": "connectionId",
"displayName": "Connection ID",
"type": "number",
"default": 0,
"description": "ID of the connection to update",
"required": true,
"displayOptions": {
"show": {
"operation": [
"update"
],
"resource": [
"connection"
]
}
}
},
{
"name": "email",
"displayName": "Email",
"type": "string",
"default": "",
"description": "The email of the contact to create",
"placeholder": "name@email.com",
"required": true,
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"contact"
]
}
}
},
{
"name": "updateIfExists",
"displayName": "Update if Exists",
"type": "boolean",
"default": false,
"description": "Whether to update user if it exists already. If not set and user exists it will error instead.",
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"contact"
]
}
}
},
{
"name": "contactId",
"displayName": "Contact ID",
"type": "number",
"default": 0,
"description": "ID of the contact to update",
"required": true,
"displayOptions": {
"show": {
"operation": [
"update"
],
"resource": [
"contact"
]
}
}
},
{
"name": "listId",
"displayName": "List ID",
"type": "number",
"default": "",
"required": true,
"displayOptions": {
"show": {
"operation": [
"add"
],
"resource": [
"contactList"
]
}
}
},
{
"name": "tagId",
"displayName": "Tag Name or ID",
"type": "options",
"default": "",
"description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
"required": true,
"displayOptions": {
"show": {
"operation": [
"add"
],
"resource": [
"contactTag"
]
}
}
},
{
"name": "contactTagId",
"displayName": "Contact Tag ID",
"type": "number",
"default": 0,
"description": "ID of the contact tag to delete",
"required": true,
"displayOptions": {
"show": {
"operation": [
"remove"
],
"resource": [
"contactTag"
]
}
}
},
{
"name": "title",
"displayName": "Title",
"type": "string",
"default": "",
"description": "The title of the deal",
"required": true,
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"deal"
]
}
}
},
{
"name": "value",
"displayName": "Deal Value",
"type": "number",
"default": 0,
"description": "The value of the deal in cents",
"required": true,
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"deal"
]
}
}
},
{
"name": "currency",
"displayName": "Currency",
"type": "options",
"default": "eur",
"description": "The currency of the deal in 3-character ISO format",
"required": true,
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"deal"
]
}
}
},
{
"name": "group",
"displayName": "Deal Pipeline ID",
"type": "string",
"default": "",
"description": "The pipeline ID of the deal",
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"deal"
]
}
}
},
{
"name": "stage",
"displayName": "Deal Stage ID",
"type": "string",
"default": "",
"description": "The stage ID of the deal",
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"deal"
]
}
}
},
{
"name": "owner",
"displayName": "Deal Owner ID",
"type": "string",
"default": "",
"description": "The owner ID of the deal",
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"deal"
]
}
}
},
{
"name": "dealId",
"displayName": "Deal ID",
"type": "number",
"default": 0,
"description": "ID of the deal to update",
"required": true,
"displayOptions": {
"show": {
"operation": [
"update"
],
"resource": [
"deal"
]
}
}
},
{
"name": "dealNote",
"displayName": "Deal Note",
"type": "string",
"default": "",
"description": "The content of the deal note",
"required": true,
"displayOptions": {
"show": {
"operation": [
"createNote"
],
"resource": [
"deal"
]
}
}
},
{
"name": "dealNoteId",
"displayName": "Deal Note ID",
"type": "number",
"default": "",
"description": "The ID of the deal note",
"required": true,
"displayOptions": {
"show": {
"operation": [
"updateNote"
],
"resource": [
"deal"
]
}
}
},
{
"name": "connectionid",
"displayName": "Service ID",
"type": "string",
"default": "",
"description": "The ID of the connection object for the service where the customer originates",
"required": true,
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"ecommerceCustomer"
]
}
}
},
{
"name": "ecommerceCustomerId",
"displayName": "Customer ID",
"type": "number",
"default": 0,
"description": "ID of the E-commerce customer to update",
"required": true,
"displayOptions": {
"show": {
"operation": [
"update"
],
"resource": [
"ecommerceCustomer"
]
}
}
},
{
"name": "externalcheckoutid",
"displayName": "External Checkout ID",
"type": "string",
"default": "",
"description": "The ID of the cart in the external service. ONLY REQUIRED IF EXTERNALID IS NOT INCLUDED.",
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"ecommerceOrder"
]
}
}
},
{
"name": "source",
"displayName": "Order Source",
"type": "number",
"default": 0,
"description": "The order source code (0 - will not trigger automations, 1 - will trigger automations)",
"required": true,
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"ecommerceOrder"
]
}
}
},
{
"name": "totalPrice",
"displayName": "Total Price",
"type": "number",
"default": 0,
"description": "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.",
"required": true,
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"ecommerceOrder"
]
}
}
},
{
"name": "customerid",
"displayName": "Customer ID",
"type": "number",
"default": 0,
"description": "The ID of the customer associated with this order",
"required": true,
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"ecommerceOrder"
]
}
}
},
{
"name": "externalCreatedDate",
"displayName": "Creation Date",
"type": "dateTime",
"default": "",
"description": "The date the order was placed",
"required": true,
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"ecommerceOrder"
]
}
}
},
{
"name": "abandonedDate",
"displayName": "Abandoning Date",
"type": "dateTime",
"default": "",
"description": "The date the cart was abandoned. REQUIRED ONLY IF INCLUDING EXTERNALCHECKOUTID.",
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"ecommerceOrder"
]
}
}
},
{
"name": "orderProducts",
"displayName": "Products",
"type": "collection",
"default": {},
"description": "All ordered products",
"placeholder": "Add product field",
"options": [
{
"name": "name",
"displayName": "Name",
"type": "string",
"default": "",
"description": "The name of the product"
},
{
"name": "price",
"displayName": "Price",
"type": "number",
"default": 0,
"description": "The price of the product, in cents. (i.e. $456.78 => 45678). Must be greater than or equal to zero."
},
{
"name": "quantity",
"displayName": "Product Quantity",
"type": "number",
"default": 0,
"description": "The quantity ordered"
},
{
"name": "externalid",
"displayName": "Product External ID",
"type": "string",
"default": "",
"description": "The ID of the product in the external service"
},
{
"name": "category",
"displayName": "Product Category",
"type": "string",
"default": "",
"description": "The category of the product"
},
{
"name": "sku",
"displayName": "SKU",
"type": "string",
"default": "",
"description": "The SKU for the product"
},
{
"name": "description",
"displayName": "Description",
"type": "string",
"default": "",
"description": "The description of the product"
},
{
"name": "imageUrl",
"displayName": "Image URL",
"type": "string",
"default": "",
"description": "An Image URL that displays an image of the product"
},
{
"name": "productUrl",
"displayName": "Product URL",
"type": "string",
"default": "",
"description": "A URL linking to the product in your store"
}
],
"typeOptions": {
"multipleValues": true
},
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"ecommerceOrder"
]
}
}
},
{
"name": "orderId",
"displayName": "Order ID",
"type": "number",
"default": 0,
"description": "The ID of the e-commerce order",
"displayOptions": {
"show": {
"operation": [
"update"
],
"resource": [
"ecommerceOrder"
]
}
}
},
{
"name": "procuctId",
"displayName": "Product ID",
"type": "number",
"default": 0,
"description": "The ID of the product you'd like returned",
"displayOptions": {
"show": {
"operation": [
"getByProductId"
],
"resource": [
"ecommerceOrderProducts"
]
}
}
},
{
"name": "tagType",
"displayName": "Type",
"type": "options",
"default": "contact",
"description": "Tag contact",
"required": true,
"options": [
{
"name": "Contact",
"value": "contact",
"description": "Tag contact"
},
{
"name": "Template",
"value": "template",
"description": "Tag template"
}
],
"displayOptions": {
"show": {
"operation": [
"create"
],
"resource": [
"tag"
]
}
}
},
{
"name": "resource",
"displayName": "Resource",
"type": "options",
"default": "contact",
"options": [
{
"name": "Account",
"value": "account"
},
{
"name": "Account Contact",
"value": "accountContact"
},
{
"name": "Connection",
"value": "connection"
},
{
"name": "Contact",
"value": "contact"
},
{
"name": "Contact List",
"value": "contactList"
},
{
"name": "Contact Tag",
"value": "contactTag"
},
{
"name": "Deal",
"value": "deal"
},
{
"name": "E-Commerce Customer",
"value": "ecommerceCustomer"
},
{
"name": "E-Commerce Order",
"value": "ecommerceOrder"
},
{
"name": "E-Commerce Order Product",
"value": "ecommerceOrderProducts"
},
{
"name": "List",
"value": "list"
},
{
"name": "Tag",
"value": "tag"
}
]
}
],
"credentialsConfig": [
{
"name": "activeCampaignApi",
"required": true
},
{
"name": "resource",
"required": false
}
],
"io": {
"inputs": [
"Main"
],
"outputs": [
"Main"
],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [
"Main"
],
"produces": [
"Main"
]
}
}