# nodes

node_type: nodes-base.xero
package_name: n8n-nodes-base
display_name: Xero
description: Consume Xero API
category: output
development_style: programmatic
version: 1
credentials_required:
  [
  {
  "name": "xeroOAuth2Api",
  "required": true
  }
  ]

outputs:
  [
  "main"
  ]

updated_at: 2026-03-30 13:12:50
documentation:
  ---
  #https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
  title: Xero node documentation
  description: Learn how to use the Xero node in n8n. Follow technical documentation to integrate Xero node into your workflows.
  contentType: [integration, reference]
  ---

  # Xero node

  Use the Xero node to automate work in Xero, and integrate Xero with other applications. n8n has built-in support for a wide range of Xero features, including creating, updating, and getting contacts and invoices. 

  On this page, you'll find a list of operations the Xero node supports and links to more resources.

  /// note | Credentials
  Refer to [Xero credentials](/integrations/builtin/credentials/xero.md) for guidance on setting up authentication. 
  ///

  ## Operations

  * Contact
      * Create a contact
      * Get a contact
      * Get all contacts
      * Update a contact
  * Invoice
      * Create a invoice
      * Get a invoice
      * Get all invoices
      * Update a invoice

  ## Templates and examples

  <!-- see https://www.notion.so/n8n/Pull-in-templates-for-the-integrations-pages-37c716837b804d30a33b47475f6e3780 -->
  [[ templatesWidget(page.title, 'xero') ]]

  ## Related resources

  Refer to [Xero's API documentation](https://developer.xero.com/documentation/api/accounting/overview){:target=_blank .external-link} for more information about the service.

  --8<-- "_snippets/integrations/builtin/app-nodes/operation-not-supported.md"

properties_schema:
  [
    {
      "displayName": "Resource",
      "name": "resource",
      "type": "options",
      "default": "invoice",
      "options": [
        {
          "name": "Contact",
          "value": "contact"
        },
        {
          "name": "Invoice",
          "value": "invoice"
        }
      ],
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a contact",
          "action": "Create a contact"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get a contact",
          "action": "Get a contact"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many contacts",
          "action": "Get many contacts"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update a contact",
          "action": "Update a contact"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Organization Name or ID",
      "name": "organizationId",
      "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": {
          "resource": [
            "contact"
          ],
          "operation": [
            "create"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "getTenants"
      }
    },
    {
      "displayName": "Name",
      "name": "name",
      "type": "string",
      "default": "",
      "description": "Full name of contact/organisation",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Account Number",
          "name": "accountNumber",
          "type": "string",
          "default": "",
          "description": "A user defined account number"
        },
        {
          "displayName": "Addresses",
          "name": "addressesUi",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "default": {},
          "placeholder": "Add Address",
          "options": [
            {
              "name": "addressesValues",
              "displayName": "Address",
              "values": [
                {
                  "displayName": "Type",
                  "name": "type",
                  "type": "options",
                  "options": [
                    {
                      "name": "PO Box",
                      "value": "POBOX"
                    },
                    {
                      "name": "Street",
                      "value": "STREET"
                    }
                  ],
                  "default": ""
                },
                {
                  "displayName": "Line 1",
                  "name": "line1",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Line 2",
                  "name": "line2",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "City",
                  "name": "city",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Region",
                  "name": "region",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Postal Code",
                  "name": "postalCode",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Country",
                  "name": "country",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Attention To",
                  "name": "attentionTo",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Bank Account Details",
          "name": "bankAccountDetails",
          "type": "string",
          "default": "",
          "description": "Bank account number of contact"
        },
        {
          "displayName": "Contact Number",
          "name": "contactNumber",
          "type": "string",
          "default": "",
          "description": "This field is read only on the Xero contact screen, used to identify contacts in external systems"
        },
        {
          "displayName": "Contact Status",
          "name": "contactStatus",
          "type": "options",
          "options": [
            {
              "name": "Active",
              "value": "ACTIVE",
              "description": "The Contact is active and can be used in transactions"
            },
            {
              "name": "Archived",
              "value": "ARCHIVED",
              "description": "The Contact is archived and can no longer be used in transactions"
            },
            {
              "name": "GDPR Request",
              "value": "GDPRREQUEST",
              "description": "The Contact is the subject of a GDPR erasure request"
            }
          ],
          "default": "",
          "description": "Current status of a contact - see contact status types"
        },
        {
          "displayName": "Default Currency",
          "name": "defaultCurrency",
          "type": "string",
          "default": "",
          "description": "Default currency for raising invoices against contact"
        },
        {
          "displayName": "Email",
          "name": "emailAddress",
          "type": "string",
          "default": "",
          "description": "Email address of contact person (umlauts not supported) (max length = 255)"
        },
        {
          "displayName": "First Name",
          "name": "firstName",
          "type": "string",
          "default": "",
          "description": "First name of contact person (max length = 255)"
        },
        {
          "displayName": "Last Name",
          "name": "lastName",
          "type": "string",
          "default": "",
          "description": "Last name of contact person (max length = 255)"
        },
        {
          "displayName": "Phones",
          "name": "phonesUi",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "default": {},
          "placeholder": "Add Phone",
          "options": [
            {
              "name": "phonesValues",
              "displayName": "Phones",
              "values": [
                {
                  "displayName": "Type",
                  "name": "phoneType",
                  "type": "options",
                  "options": [
                    {
                      "name": "Default",
                      "value": "DEFAULT"
                    },
                    {
                      "name": "DDI",
                      "value": "DDI"
                    },
                    {
                      "name": "Mobile",
                      "value": "MOBILE"
                    },
                    {
                      "name": "Fax",
                      "value": "FAX"
                    }
                  ],
                  "default": ""
                },
                {
                  "displayName": "Number",
                  "name": "phoneNumber",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Area Code",
                  "name": "phoneAreaCode",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Country Code",
                  "name": "phoneCountryCode",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Purchase Default Account Code Name or ID",
          "name": "purchasesDefaultAccountCode",
          "type": "options",
          "typeOptions": {
            "loadOptionsMethod": "getAccountCodes"
          },
          "default": "",
          "description": "The default purchases account code for contacts. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        },
        {
          "displayName": "Sales Default Account Code Name or ID",
          "name": "salesDefaultAccountCode",
          "type": "options",
          "typeOptions": {
            "loadOptionsMethod": "getAccountCodes"
          },
          "default": "",
          "description": "The default sales account code for contacts. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        },
        {
          "displayName": "Skype",
          "name": "skypeUserName",
          "type": "string",
          "default": "",
          "description": "Skype user name of contact"
        },
        {
          "displayName": "Tax Number",
          "name": "taxNumber",
          "type": "string",
          "default": "",
          "description": "Tax number of contact"
        },
        {
          "displayName": "Xero Network Key",
          "name": "xeroNetworkKey",
          "type": "string",
          "default": "",
          "description": "Store XeroNetworkKey for contacts"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Organization Name or ID",
      "name": "organizationId",
      "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": {
          "resource": [
            "contact"
          ],
          "operation": [
            "get"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "getTenants"
      }
    },
    {
      "displayName": "Contact ID",
      "name": "contactId",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Organization Name or ID",
      "name": "organizationId",
      "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": {
          "resource": [
            "contact"
          ],
          "operation": [
            "getAll"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "getTenants"
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 100
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Include Archived",
          "name": "includeArchived",
          "type": "boolean",
          "default": false,
          "description": "Whether contacts with a status of ARCHIVED will be included in the response"
        },
        {
          "displayName": "Order By",
          "name": "orderBy",
          "type": "string",
          "placeholder": "contactID",
          "default": "",
          "description": "Order by any element returned"
        },
        {
          "displayName": "Sort Order",
          "name": "sortOrder",
          "type": "options",
          "options": [
            {
              "name": "Asc",
              "value": "ASC"
            },
            {
              "name": "Desc",
              "value": "DESC"
            }
          ],
          "default": ""
        },
        {
          "displayName": "Where",
          "name": "where",
          "type": "string",
          "placeholder": "EmailAddress!=null&&EmailAddress.StartsWith(\"boom\")",
          "default": "",
          "description": "The where parameter allows you to filter on endpoints and elements that don't have explicit parameters. <a href=\"https://developer.xero.com/documentation/api/requests-and-responses#get-modified\">Examples Here</a>."
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Organization Name or ID",
      "name": "organizationId",
      "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": {
          "resource": [
            "contact"
          ],
          "operation": [
            "update"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "getTenants"
      }
    },
    {
      "displayName": "Contact ID",
      "name": "contactId",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Account Number",
          "name": "accountNumber",
          "type": "string",
          "default": "",
          "description": "A user defined account number"
        },
        {
          "displayName": "Addresses",
          "name": "addressesUi",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "default": {},
          "placeholder": "Add Address",
          "options": [
            {
              "name": "addressesValues",
              "displayName": "Address",
              "values": [
                {
                  "displayName": "Type",
                  "name": "type",
                  "type": "options",
                  "options": [
                    {
                      "name": "PO Box",
                      "value": "POBOX"
                    },
                    {
                      "name": "Street",
                      "value": "STREET"
                    }
                  ],
                  "default": ""
                },
                {
                  "displayName": "Line 1",
                  "name": "line1",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Line 2",
                  "name": "line2",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "City",
                  "name": "city",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Region",
                  "name": "region",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Postal Code",
                  "name": "postalCode",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Country",
                  "name": "country",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Attention To",
                  "name": "attentionTo",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Bank Account Details",
          "name": "bankAccountDetails",
          "type": "string",
          "default": "",
          "description": "Bank account number of contact"
        },
        {
          "displayName": "Contact Number",
          "name": "contactNumber",
          "type": "string",
          "default": "",
          "description": "This field is read only on the Xero contact screen, used to identify contacts in external systems"
        },
        {
          "displayName": "Contact Status",
          "name": "contactStatus",
          "type": "options",
          "options": [
            {
              "name": "Active",
              "value": "ACTIVE",
              "description": "The Contact is active and can be used in transactions"
            },
            {
              "name": "Archived",
              "value": "ARCHIVED",
              "description": "The Contact is archived and can no longer be used in transactions"
            },
            {
              "name": "GDPR Request",
              "value": "GDPRREQUEST",
              "description": "The Contact is the subject of a GDPR erasure request"
            }
          ],
          "default": "",
          "description": "Current status of a contact - see contact status types"
        },
        {
          "displayName": "Default Currency",
          "name": "defaultCurrency",
          "type": "string",
          "default": "",
          "description": "Default currency for raising invoices against contact"
        },
        {
          "displayName": "Email",
          "name": "emailAddress",
          "type": "string",
          "default": "",
          "description": "Email address of contact person (umlauts not supported) (max length = 255)"
        },
        {
          "displayName": "First Name",
          "name": "firstName",
          "type": "string",
          "default": "",
          "description": "First name of contact person (max length = 255)"
        },
        {
          "displayName": "Last Name",
          "name": "lastName",
          "type": "string",
          "default": "",
          "description": "Last name of contact person (max length = 255)"
        },
        {
          "displayName": "Name",
          "name": "name",
          "type": "string",
          "default": "",
          "description": "Full name of contact/organisation"
        },
        {
          "displayName": "Phones",
          "name": "phonesUi",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "default": {},
          "placeholder": "Add Phone",
          "options": [
            {
              "name": "phonesValues",
              "displayName": "Phones",
              "values": [
                {
                  "displayName": "Type",
                  "name": "phoneType",
                  "type": "options",
                  "options": [
                    {
                      "name": "Default",
                      "value": "DEFAULT"
                    },
                    {
                      "name": "DDI",
                      "value": "DDI"
                    },
                    {
                      "name": "Mobile",
                      "value": "MOBILE"
                    },
                    {
                      "name": "Fax",
                      "value": "FAX"
                    }
                  ],
                  "default": ""
                },
                {
                  "displayName": "Number",
                  "name": "phoneNumber",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Area Code",
                  "name": "phoneAreaCode",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Country Code",
                  "name": "phoneCountryCode",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Purchase Default Account Code Name or ID",
          "name": "purchasesDefaultAccountCode",
          "type": "options",
          "typeOptions": {
            "loadOptionsMethod": "getAccountCodes"
          },
          "default": "",
          "description": "The default purchases account code for contacts. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        },
        {
          "displayName": "Sales Default Account Code Name or ID",
          "name": "salesDefaultAccountCode",
          "type": "options",
          "typeOptions": {
            "loadOptionsMethod": "getAccountCodes"
          },
          "default": "",
          "description": "The default sales account code for contacts. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        },
        {
          "displayName": "Skype",
          "name": "skypeUserName",
          "type": "string",
          "default": "",
          "description": "Skype user name of contact"
        },
        {
          "displayName": "Tax Number",
          "name": "taxNumber",
          "type": "string",
          "default": "",
          "description": "Tax number of contact"
        },
        {
          "displayName": "Xero Network Key",
          "name": "xeroNetworkKey",
          "type": "string",
          "default": "",
          "description": "Store XeroNetworkKey for contacts"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a invoice",
          "action": "Create an invoice"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get a invoice",
          "action": "Get an invoice"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many invoices",
          "action": "Get many invoices"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update a invoice",
          "action": "Update an invoice"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "invoice"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Organization Name or ID",
      "name": "organizationId",
      "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": {
          "resource": [
            "invoice"
          ],
          "operation": [
            "create"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "getTenants"
      }
    },
    {
      "displayName": "Type",
      "name": "type",
      "type": "options",
      "default": "",
      "description": "Invoice Type",
      "options": [
        {
          "name": "Bill",
          "value": "ACCPAY",
          "description": "Accounts Payable or supplier invoice"
        },
        {
          "name": "Sales Invoice",
          "value": "ACCREC",
          "description": "Accounts Receivable or customer invoice"
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "invoice"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Contact ID",
      "name": "contactId",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "invoice"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Line Items",
      "name": "lineItemsUi",
      "type": "fixedCollection",
      "default": {},
      "description": "Line item data",
      "options": [
        {
          "name": "lineItemsValues",
          "displayName": "Line Item",
          "values": [
            {
              "displayName": "Description",
              "name": "description",
              "type": "string",
              "default": "",
              "description": "A line item with just a description"
            },
            {
              "displayName": "Quantity",
              "name": "quantity",
              "type": "number",
              "default": 1,
              "typeOptions": {
                "minValue": 1
              },
              "description": "LineItem Quantity"
            },
            {
              "displayName": "Unit Amount",
              "name": "unitAmount",
              "type": "string",
              "default": "",
              "description": "Lineitem unit amount. By default, unit amount will be rounded to two decimal places."
            },
            {
              "displayName": "Item Code Name or ID",
              "name": "itemCode",
              "type": "options",
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "typeOptions": {
                "loadOptionsMethod": "getItemCodes",
                "loadOptionsDependsOn": [
                  "organizationId"
                ]
              },
              "default": ""
            },
            {
              "displayName": "Account Code Name or ID",
              "name": "accountCode",
              "type": "options",
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "typeOptions": {
                "loadOptionsMethod": "getAccountCodes",
                "loadOptionsDependsOn": [
                  "organizationId"
                ]
              },
              "default": ""
            },
            {
              "displayName": "Tax Type",
              "name": "taxType",
              "type": "options",
              "options": [
                {
                  "name": "Tax on Purchases",
                  "value": "INPUT"
                },
                {
                  "name": "Tax Exempt",
                  "value": "NONE"
                },
                {
                  "name": "Tax on Sales",
                  "value": "OUTPUT"
                },
                {
                  "name": "Sales Tax on Imports",
                  "value": "GSTONIMPORTS"
                }
              ],
              "default": "",
              "required": true
            },
            {
              "displayName": "Tax Amount",
              "name": "taxAmount",
              "type": "string",
              "default": "",
              "description": "The tax amount is auto calculated as a percentage of the line amount based on the tax rate"
            },
            {
              "displayName": "Line Amount",
              "name": "lineAmount",
              "type": "string",
              "default": "",
              "description": "The line amount reflects the discounted price if a DiscountRate has been used"
            },
            {
              "displayName": "Discount Rate",
              "name": "discountRate",
              "type": "string",
              "default": "",
              "description": "Percentage discount or discount amount being applied to a line item. Only supported on ACCREC invoices - ACCPAY invoices and credit notes in Xero do not support discounts."
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "invoice"
          ],
          "operation": [
            "create"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Branding Theme Name or ID",
          "name": "brandingThemeId",
          "type": "options",
          "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
          "typeOptions": {
            "loadOptionsMethod": "getBrandingThemes",
            "loadOptionsDependsOn": [
              "organizationId"
            ]
          },
          "default": ""
        },
        {
          "displayName": "Currency Name or ID",
          "name": "currency",
          "type": "options",
          "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
          "typeOptions": {
            "loadOptionsMethod": "getCurrencies",
            "loadOptionsDependsOn": [
              "organizationId"
            ]
          },
          "default": ""
        },
        {
          "displayName": "Currency Rate",
          "name": "currencyRate",
          "type": "string",
          "default": "",
          "description": "The currency rate for a multicurrency invoice. If no rate is specified, the XE.com day rate is used."
        },
        {
          "displayName": "Date",
          "name": "date",
          "type": "dateTime",
          "default": "",
          "description": "Date invoice was issued - YYYY-MM-DD. If the Date element is not specified it will default to the current date based on the timezone setting of the organisation."
        },
        {
          "displayName": "Due Date",
          "name": "dueDate",
          "type": "dateTime",
          "default": "",
          "description": "Date invoice is due - YYYY-MM-DD"
        },
        {
          "displayName": "Expected Payment Date",
          "name": "expectedPaymentDate",
          "type": "dateTime",
          "default": "",
          "description": "Shown on sales invoices (Accounts Receivable) when this has been set"
        },
        {
          "displayName": "Invoice Number",
          "name": "invoiceNumber",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Line Amount Type",
          "name": "lineAmountType",
          "type": "options",
          "options": [
            {
              "name": "Exclusive",
              "value": "Exclusive",
              "description": "Line items are exclusive of tax"
            },
            {
              "name": "Inclusive",
              "value": "Inclusive",
              "description": "Line items are inclusive tax"
            },
            {
              "name": "NoTax",
              "value": "NoTax",
              "description": "Line have no tax"
            }
          ],
          "default": "Exclusive"
        },
        {
          "displayName": "Planned Payment Date",
          "name": "plannedPaymentDate",
          "type": "dateTime",
          "default": "",
          "description": "Shown on bills (Accounts Payable) when this has been set"
        },
        {
          "displayName": "Reference",
          "name": "reference",
          "type": "string",
          "default": "",
          "description": "ACCREC only - additional reference number (max length = 255)"
        },
        {
          "displayName": "Send To Contact",
          "name": "sendToContact",
          "type": "boolean",
          "default": false,
          "description": "Whether the invoice in the Xero app should be marked as \"sent\". This can be set only on invoices that have been approved."
        },
        {
          "displayName": "Status",
          "name": "status",
          "type": "options",
          "options": [
            {
              "name": "Draft",
              "value": "DRAFT"
            },
            {
              "name": "Submitted",
              "value": "SUBMITTED"
            },
            {
              "name": "Authorised",
              "value": "AUTHORISED"
            }
          ],
          "default": "DRAFT"
        },
        {
          "displayName": "URL",
          "name": "url",
          "type": "string",
          "default": "",
          "description": "URL link to a source document - shown as \"Go to [appName]\" in the Xero app"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "invoice"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Organization Name or ID",
      "name": "organizationId",
      "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": {
          "resource": [
            "invoice"
          ],
          "operation": [
            "update"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "getTenants"
      }
    },
    {
      "displayName": "Invoice ID",
      "name": "invoiceId",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "invoice"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Branding Theme Name or ID",
          "name": "brandingThemeId",
          "type": "options",
          "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
          "typeOptions": {
            "loadOptionsMethod": "getBrandingThemes",
            "loadOptionsDependsOn": [
              "organizationId"
            ]
          },
          "default": ""
        },
        {
          "displayName": "Contact ID",
          "name": "contactId",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Currency Name or ID",
          "name": "currency",
          "type": "options",
          "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
          "typeOptions": {
            "loadOptionsMethod": "getCurrencies",
            "loadOptionsDependsOn": [
              "organizationId"
            ]
          },
          "default": ""
        },
        {
          "displayName": "Currency Rate",
          "name": "currencyRate",
          "type": "string",
          "default": "",
          "description": "The currency rate for a multicurrency invoice. If no rate is specified, the XE.com day rate is used."
        },
        {
          "displayName": "Date",
          "name": "date",
          "type": "dateTime",
          "default": "",
          "description": "Date invoice was issued - YYYY-MM-DD. If the Date element is not specified it will default to the current date based on the timezone setting of the organisation."
        },
        {
          "displayName": "Due Date",
          "name": "dueDate",
          "type": "dateTime",
          "default": "",
          "description": "Date invoice is due - YYYY-MM-DD"
        },
        {
          "displayName": "Expected Payment Date",
          "name": "expectedPaymentDate",
          "type": "dateTime",
          "default": "",
          "description": "Shown on sales invoices (Accounts Receivable) when this has been set"
        },
        {
          "displayName": "Invoice Number",
          "name": "invoiceNumber",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Line Amount Type",
          "name": "lineAmountType",
          "type": "options",
          "options": [
            {
              "name": "Exclusive",
              "value": "Exclusive",
              "description": "Line items are exclusive of tax"
            },
            {
              "name": "Inclusive",
              "value": "Inclusive",
              "description": "Line items are inclusive tax"
            },
            {
              "name": "NoTax",
              "value": "NoTax",
              "description": "Line have no tax"
            }
          ],
          "default": "Exclusive"
        },
        {
          "displayName": "Line Items",
          "name": "lineItemsUi",
          "placeholder": "Add Line Item",
          "type": "fixedCollection",
          "default": {},
          "typeOptions": {
            "multipleValues": true
          },
          "description": "Line item data",
          "options": [
            {
              "name": "lineItemsValues",
              "displayName": "Line Item",
              "values": [
                {
                  "displayName": "Line Item ID",
                  "name": "lineItemId",
                  "type": "string",
                  "default": "",
                  "description": "The Xero generated identifier for a LineItem"
                },
                {
                  "displayName": "Description",
                  "name": "description",
                  "type": "string",
                  "default": "",
                  "description": "A line item with just a description"
                },
                {
                  "displayName": "Quantity",
                  "name": "quantity",
                  "type": "number",
                  "default": 1,
                  "typeOptions": {
                    "minValue": 1
                  },
                  "description": "LineItem Quantity"
                },
                {
                  "displayName": "Unit Amount",
                  "name": "unitAmount",
                  "type": "string",
                  "default": "",
                  "description": "Lineitem unit amount. By default, unit amount will be rounded to two decimal places."
                },
                {
                  "displayName": "Item Code Name or ID",
                  "name": "itemCode",
                  "type": "options",
                  "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
                  "typeOptions": {
                    "loadOptionsMethod": "getItemCodes",
                    "loadOptionsDependsOn": [
                      "organizationId"
                    ]
                  },
                  "default": ""
                },
                {
                  "displayName": "Account Code Name or ID",
                  "name": "accountCode",
                  "type": "options",
                  "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
                  "typeOptions": {
                    "loadOptionsMethod": "getAccountCodes",
                    "loadOptionsDependsOn": [
                      "organizationId"
                    ]
                  },
                  "default": ""
                },
                {
                  "displayName": "Tax Type",
                  "name": "taxType",
                  "type": "options",
                  "options": [
                    {
                      "name": "Tax on Purchases",
                      "value": "INPUT"
                    },
                    {
                      "name": "Tax Exempt",
                      "value": "NONE"
                    },
                    {
                      "name": "Tax on Sales",
                      "value": "OUTPUT"
                    },
                    {
                      "name": "Sales Tax on Imports",
                      "value": "GSTONIMPORTS"
                    }
                  ],
                  "default": "",
                  "required": true
                },
                {
                  "displayName": "Tax Amount",
                  "name": "taxAmount",
                  "type": "string",
                  "default": "",
                  "description": "The tax amount is auto calculated as a percentage of the line amount based on the tax rate"
                },
                {
                  "displayName": "Line Amount",
                  "name": "lineAmount",
                  "type": "string",
                  "default": "",
                  "description": "The line amount reflects the discounted price if a DiscountRate has been used"
                },
                {
                  "displayName": "Discount Rate",
                  "name": "discountRate",
                  "type": "string",
                  "default": "",
                  "description": "Percentage discount or discount amount being applied to a line item. Only supported on ACCREC invoices - ACCPAY invoices and credit notes in Xero do not support discounts."
                }
              ]
            }
          ]
        },
        {
          "displayName": "Planned Payment Date",
          "name": "plannedPaymentDate",
          "type": "dateTime",
          "default": "",
          "description": "Shown on bills (Accounts Payable) when this has been set"
        },
        {
          "displayName": "Reference",
          "name": "reference",
          "type": "string",
          "default": "",
          "description": "ACCREC only - additional reference number (max length = 255)"
        },
        {
          "displayName": "Send To Contact",
          "name": "sendToContact",
          "type": "boolean",
          "default": false,
          "description": "Whether the invoice in the Xero app should be marked as \"sent\". This can be set only on invoices that have been approved."
        },
        {
          "displayName": "Status",
          "name": "status",
          "type": "options",
          "options": [
            {
              "name": "Draft",
              "value": "DRAFT"
            },
            {
              "name": "Submitted",
              "value": "SUBMITTED"
            },
            {
              "name": "Authorised",
              "value": "AUTHORISED"
            }
          ],
          "default": "DRAFT"
        },
        {
          "displayName": "URL",
          "name": "url",
          "type": "string",
          "default": "",
          "description": "URL link to a source document - shown as \"Go to [appName]\" in the Xero app"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "invoice"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Organization Name or ID",
      "name": "organizationId",
      "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": {
          "resource": [
            "invoice"
          ],
          "operation": [
            "get"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "getTenants"
      }
    },
    {
      "displayName": "Invoice ID",
      "name": "invoiceId",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "invoice"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Organization Name or ID",
      "name": "organizationId",
      "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": {
          "resource": [
            "invoice"
          ],
          "operation": [
            "getAll"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "getTenants"
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "invoice"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "invoice"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 100
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Created By My App",
          "name": "createdByMyApp",
          "type": "boolean",
          "default": false,
          "description": "Whether you'll only retrieve Invoices created by your app"
        },
        {
          "displayName": "Order By",
          "name": "orderBy",
          "type": "string",
          "placeholder": "InvoiceID",
          "default": "",
          "description": "Order by any element returned"
        },
        {
          "displayName": "Sort Order",
          "name": "sortOrder",
          "type": "options",
          "options": [
            {
              "name": "Asc",
              "value": "ASC"
            },
            {
              "name": "Desc",
              "value": "DESC"
            }
          ],
          "default": ""
        },
        {
          "displayName": "Statuses",
          "name": "statuses",
          "type": "multiOptions",
          "options": [
            {
              "name": "Draft",
              "value": "DRAFT"
            },
            {
              "name": "Submitted",
              "value": "SUBMITTED"
            },
            {
              "name": "Authorised",
              "value": "AUTHORISED"
            }
          ],
          "default": []
        },
        {
          "displayName": "Where",
          "name": "where",
          "type": "string",
          "placeholder": "EmailAddress!=null&&EmailAddress.StartsWith(\"boom\")",
          "default": "",
          "description": "The where parameter allows you to filter on endpoints and elements that don't have explicit parameters. <a href=\"https://developer.xero.com/documentation/api/requests-and-responses#get-modified\">Examples Here</a>."
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "invoice"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    }
  ]

operations:
  [
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a contact",
      "resource": "contact"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get a contact",
      "resource": "contact"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many contacts",
      "resource": "contact"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update a contact",
      "resource": "contact"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a invoice",
      "resource": "invoice"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get a invoice",
      "resource": "invoice"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many invoices",
      "resource": "invoice"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update a invoice",
      "resource": "invoice"
    }
  ]


node_type: nodes-base.xml
package_name: n8n-nodes-base
display_name: XML
description: Convert data from and to XML
category: transform
development_style: programmatic
version: 1
operations: []
credentials_required: []
outputs:
  [
  "main"
  ]

updated_at: 2026-03-30 13:12:50
documentation:
  ---
  #https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
  title: XML
  description: Documentation for the XML node in n8n, a workflow automation platform. Includes guidance on usage, and links to examples.
  contentType: [integration, reference]
  priority: medium
  ---

  # XML

  Use the XML node to convert data from and to XML.

  /// note | Binary files
  If your XML is within a binary file, use the [Extract from File](/integrations/builtin/core-nodes/n8n-nodes-base.extractfromfile.md) node to convert it to text first.
  ///

  ## Node parameters

  - **Mode**: The format the data should be converted from and to.
  	- **JSON to XML**: Converts data from JSON to XML.
      - **XML to JSON**: Converts data from XML to JSON.
  - **Property Name**: Enter the name of the property which contains the data to convert.

  ## Node options

  These options are available regardless of the **Mode** you select:

  - **Attribute Key**: Enter the prefix used to access the attributes. Default is `$`.
  - **Character Key**: Enter the prefix used to access the character content. Default is `_`.

  All other options depend on the selected **Mode**.

  ### JSON to XML options

  These options only appear if you select **JSON to XML** as the **Mode**:

  - **Allow Surrogate Chars**: Set whether to allow using characters from the Unicode surrogate blocks (turned on) or not (turned off).
  - **Cdata**: Set whether to wrap text nodes in `<![CDATA[ ... ]]>` instead of escaping when it's required (turned on) or not (turned off).
      * Turning this option on doesn't add `<![CDATA[ ... ]]>` if it's not required.
  - **Headless**: Set whether to omit the XML header (turned on) or include it (turned off).
  - **Root Name**: Enter the root element name to use.

  ### XML to JSON options

  These options only appear if you select **XML to JSON** as the **Mode**:

  - **Explicit Array**: Set whether to put child nodes in an array (turned on) or create an array only if there's more than one child node (turned off).
  - **Explicit Root**: Set whether to get the root node in the resulting object (turned on) or not (turned off).
  - **Ignore Attributes**: Set whether to ignore all XML attributes and only create text nodes (turned on) or not (turned off).
  - **Merge Attributes**: Set whether to merge attributes and child elements as properties of the parent (turned on) or key attributes off a child attribute object (turned off). This option is ignored if **Ignore Attribute** is turned on.
  - **Normalize**: Set whether to trim whitespaces inside the text nodes (turned on) or not to trim them (turned off).
  - **Normalize Tags**: Set whether to normalize all tag names to lowercase (turned on) or keep tag names as-is (turned off).
  - **Trim**: Set whether to trim the whitespace at the beginning and end of text nodes (turned on) or to leave the whitespace as-is (turned off).

  ## Templates and examples

  <!-- see https://www.notion.so/n8n/Pull-in-templates-for-the-integrations-pages-37c716837b804d30a33b47475f6e3780 -->
  [[ templatesWidget(page.title, 'xml') ]]

properties_schema:
  [
    {
      "displayName": "Mode",
      "name": "mode",
      "type": "options",
      "default": "xmlToJson",
      "description": "From and to what format the data should be converted",
      "options": [
        {
          "name": "JSON to XML",
          "value": "jsonToxml",
          "description": "Converts data from JSON to XML"
        },
        {
          "name": "XML to JSON",
          "value": "xmlToJson",
          "description": "Converts data from XML to JSON"
        }
      ]
    },
    {
      "displayName": "If your XML is inside a binary file, use the 'Extract from File' node to convert it to text first",
      "name": "xmlNotice",
      "type": "notice",
      "default": "",
      "displayOptions": {
        "show": {
          "mode": [
            "xmlToJson"
          ]
        }
      }
    },
    {
      "displayName": "Property Name",
      "name": "dataPropertyName",
      "type": "string",
      "default": "data",
      "description": "Name of the property to which to contains the converted XML data",
      "required": true,
      "displayOptions": {
        "show": {
          "mode": [
            "jsonToxml"
          ]
        }
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Allow Surrogate Chars",
          "name": "allowSurrogateChars",
          "type": "boolean",
          "default": false,
          "description": "Whether to allow using characters from the Unicode surrogate blocks"
        },
        {
          "displayName": "Attribute Key",
          "name": "attrkey",
          "type": "string",
          "default": "$",
          "description": "Prefix that is used to access the attributes"
        },
        {
          "displayName": "Cdata",
          "name": "cdata",
          "type": "boolean",
          "default": false,
          "description": "Whether to wrap text nodes in &lt;![CDATA[ ... ]]&gt; instead of escaping when necessary. Does not add &lt;![CDATA[ ... ]]&gt; if it is not required."
        },
        {
          "displayName": "Character Key",
          "name": "charkey",
          "type": "string",
          "default": "_",
          "description": "Prefix that is used to access the character content"
        },
        {
          "displayName": "Headless",
          "name": "headless",
          "type": "boolean",
          "default": false,
          "description": "Whether to omit the XML header"
        },
        {
          "displayName": "Root Name",
          "name": "rootName",
          "type": "string",
          "default": "root",
          "description": "Root element name to be used"
        }
      ],
      "displayOptions": {
        "show": {
          "mode": [
            "jsonToxml"
          ]
        }
      }
    },
    {
      "displayName": "Property Name",
      "name": "dataPropertyName",
      "type": "string",
      "default": "data",
      "description": "Name of the property which contains the XML data to convert",
      "required": true,
      "displayOptions": {
        "show": {
          "mode": [
            "xmlToJson"
          ]
        }
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Attribute Key",
          "name": "attrkey",
          "type": "string",
          "default": "$",
          "description": "Prefix that is used to access the attributes"
        },
        {
          "displayName": "Character Key",
          "name": "charkey",
          "type": "string",
          "default": "_",
          "description": "Prefix that is used to access the character content"
        },
        {
          "displayName": "Explicit Array",
          "name": "explicitArray",
          "type": "boolean",
          "default": false,
          "description": "Whether to always put child nodes in an array if true; otherwise an array is created only if there is more than one"
        },
        {
          "displayName": "Explicit Root",
          "name": "explicitRoot",
          "type": "boolean",
          "default": true,
          "description": "Whether to set this if you want to get the root node in the resulting object"
        },
        {
          "displayName": "Ignore Attributes",
          "name": "ignoreAttrs",
          "type": "boolean",
          "default": false,
          "description": "Whether to ignore all XML attributes and only create text nodes"
        },
        {
          "displayName": "Merge Attributes",
          "name": "mergeAttrs",
          "type": "boolean",
          "default": true,
          "description": "Whether to merge attributes and child elements as properties of the parent, instead of keying attributes off a child attribute object. This option is ignored if ignoreAttrs is true."
        },
        {
          "displayName": "Normalize",
          "name": "normalize",
          "type": "boolean",
          "default": false,
          "description": "Whether to trim whitespaces inside text nodes"
        },
        {
          "displayName": "Normalize Tags",
          "name": "normalizeTags",
          "type": "boolean",
          "default": false,
          "description": "Whether to normalize all tag names to lowercase"
        },
        {
          "displayName": "Trim",
          "name": "trim",
          "type": "boolean",
          "default": false,
          "description": "Whether to trim the whitespace at the beginning and end of text nodes"
        }
      ],
      "displayOptions": {
        "show": {
          "mode": [
            "xmlToJson"
          ]
        }
      }
    }
  ]


node_type: nodes-base.yourlsTool
package_name: n8n-nodes-base
display_name: Yourls Tool
description: Consume Yourls API (AI Tool variant for use with AI Agents)
category: input
development_style: programmatic
version: 1
credentials_required:
  [
  {
  "name": "yourlsApi",
  "required": true
  }
  ]

outputs:
  [
  {
  "type": "ai_tool",
  "displayName": "Tool"
  }
  ]

output_names:
  [
  "Tool"
  ]

updated_at: 2026-03-30 13:12:50
tool_variant_of: nodes-base.yourls
documentation:
  ---
  #https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
  title: Yourls node documentation
  description: Learn how to use the Yourls node in n8n. Follow technical documentation to integrate Yourls node into your workflows.
  contentType: [integration, reference]
  ---

  # Yourls node

  Use the Yourls node to automate work in Yourls, and integrate Yourls with other applications. n8n has built-in support for a wide range of Yourls features, including expanding and shortening URLs. 

  On this page, you'll find a list of operations the Yourls node supports and links to more resources.

  /// note | Credentials
  Refer to [Yourls credentials](/integrations/builtin/credentials/yourls.md) for guidance on setting up authentication. 
  ///

  ## Operations

  * URL
      * Expand a URL
      * Shorten a URL
      * Get stats about one short URL

  ## Templates and examples

  <!-- see https://www.notion.so/n8n/Pull-in-templates-for-the-integrations-pages-37c716837b804d30a33b47475f6e3780 -->
  [[ templatesWidget(page.title, 'yourls') ]]

properties_schema:
  [
    {
      "displayName": "Tool Description",
      "name": "toolDescription",
      "type": "string",
      "default": "",
      "required": false,
      "description": "Description for the AI to understand what this tool does and when to use it",
      "typeOptions": {
        "rows": 3
      },
      "placeholder": "e.g., Use this tool to interact with Yourls"
    },
    {
      "displayName": "Resource",
      "name": "resource",
      "type": "options",
      "default": "url",
      "options": [
        {
          "name": "URL",
          "value": "url"
        }
      ],
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "shorten",
      "options": [
        {
          "name": "Expand",
          "value": "expand",
          "description": "Expand a URL",
          "action": "Expand a URL"
        },
        {
          "name": "Shorten",
          "value": "shorten",
          "description": "Shorten a URL",
          "action": "Shorten a URL"
        },
        {
          "name": "Stats",
          "value": "stats",
          "description": "Get stats about one short URL",
          "action": "Get stats for a URL"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "url"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "URL",
      "name": "url",
      "type": "string",
      "default": "",
      "description": "The URL to shorten",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "url"
          ],
          "operation": [
            "shorten"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Keyword",
          "name": "keyword",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Title",
          "name": "title",
          "type": "string",
          "default": "",
          "description": "Title for custom short URLs"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "url"
          ],
          "operation": [
            "shorten"
          ]
        }
      }
    },
    {
      "displayName": "Short URL",
      "name": "shortUrl",
      "type": "string",
      "default": "",
      "description": "The short URL to expand",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "url"
          ],
          "operation": [
            "expand"
          ]
        }
      }
    },
    {
      "displayName": "Short URL",
      "name": "shortUrl",
      "type": "string",
      "default": "",
      "description": "The short URL for which to get stats",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "url"
          ],
          "operation": [
            "stats"
          ]
        }
      }
    }
  ]

operations:
  [
    {
      "operation": "expand",
      "name": "Expand",
      "description": "Expand a URL",
      "resource": "url"
    },
    {
      "operation": "shorten",
      "name": "Shorten",
      "description": "Shorten a URL",
      "resource": "url"
    },
    {
      "operation": "stats",
      "name": "Stats",
      "description": "Get stats about one short URL",
      "resource": "url"
    }
  ]


node_type: nodes-base.yourls
package_name: n8n-nodes-base
display_name: Yourls
description: Consume Yourls API
category: input
development_style: programmatic
version: 1
credentials_required:
  [
  {
  "name": "yourlsApi",
  "required": true
  }
  ]

outputs:
  [
  "main"
  ]

updated_at: 2026-03-30 13:12:50
documentation:
  ---
  #https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
  title: Yourls node documentation
  description: Learn how to use the Yourls node in n8n. Follow technical documentation to integrate Yourls node into your workflows.
  contentType: [integration, reference]
  ---

  # Yourls node

  Use the Yourls node to automate work in Yourls, and integrate Yourls with other applications. n8n has built-in support for a wide range of Yourls features, including expanding and shortening URLs. 

  On this page, you'll find a list of operations the Yourls node supports and links to more resources.

  /// note | Credentials
  Refer to [Yourls credentials](/integrations/builtin/credentials/yourls.md) for guidance on setting up authentication. 
  ///

  ## Operations

  * URL
      * Expand a URL
      * Shorten a URL
      * Get stats about one short URL

  ## Templates and examples

  <!-- see https://www.notion.so/n8n/Pull-in-templates-for-the-integrations-pages-37c716837b804d30a33b47475f6e3780 -->
  [[ templatesWidget(page.title, 'yourls') ]]

properties_schema:
  [
    {
      "displayName": "Resource",
      "name": "resource",
      "type": "options",
      "default": "url",
      "options": [
        {
          "name": "URL",
          "value": "url"
        }
      ],
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "shorten",
      "options": [
        {
          "name": "Expand",
          "value": "expand",
          "description": "Expand a URL",
          "action": "Expand a URL"
        },
        {
          "name": "Shorten",
          "value": "shorten",
          "description": "Shorten a URL",
          "action": "Shorten a URL"
        },
        {
          "name": "Stats",
          "value": "stats",
          "description": "Get stats about one short URL",
          "action": "Get stats for a URL"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "url"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "URL",
      "name": "url",
      "type": "string",
      "default": "",
      "description": "The URL to shorten",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "url"
          ],
          "operation": [
            "shorten"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Keyword",
          "name": "keyword",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Title",
          "name": "title",
          "type": "string",
          "default": "",
          "description": "Title for custom short URLs"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "url"
          ],
          "operation": [
            "shorten"
          ]
        }
      }
    },
    {
      "displayName": "Short URL",
      "name": "shortUrl",
      "type": "string",
      "default": "",
      "description": "The short URL to expand",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "url"
          ],
          "operation": [
            "expand"
          ]
        }
      }
    },
    {
      "displayName": "Short URL",
      "name": "shortUrl",
      "type": "string",
      "default": "",
      "description": "The short URL for which to get stats",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "url"
          ],
          "operation": [
            "stats"
          ]
        }
      }
    }
  ]

operations:
  [
    {
      "operation": "expand",
      "name": "Expand",
      "description": "Expand a URL",
      "resource": "url"
    },
    {
      "operation": "shorten",
      "name": "Shorten",
      "description": "Shorten a URL",
      "resource": "url"
    },
    {
      "operation": "stats",
      "name": "Stats",
      "description": "Get stats about one short URL",
      "resource": "url"
    }
  ]


node_type: nodes-base.zammadTool
package_name: n8n-nodes-base
display_name: Zammad Tool
description: Consume the Zammad API (AI Tool variant for use with AI Agents)
category: input
development_style: programmatic
version: 1
outputs:
  [
  {
  "type": "ai_tool",
  "displayName": "Tool"
  }
  ]

output_names:
  [
  "Tool"
  ]

updated_at: 2026-03-30 13:12:50
tool_variant_of: nodes-base.zammad
documentation:
  ---
  #https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
  title: Zammad node documentation
  description: Learn how to use the Zammad node in n8n. Follow technical documentation to integrate Zammad node into your workflows.
  contentType: [integration, reference]
  ---

  # Zammad node

  Use the Zammad node to automate work in Zammad, and integrate Zammad with other applications. n8n has built-in support for a wide range of Zammad features, including creating, retrieving, and deleting groups and organizations.

  On this page, you'll find a list of operations the Zammad node supports and links to more resources.

  /// note | Credentials
  Refer to [Zammad credentials](/integrations/builtin/credentials/zammad.md) for guidance on setting up authentication. 
  ///

  ## Operations

  * Group
      * Create
      * Delete
      * Get
      * Get many
      * Update
  * Organization
      * Create
      * Delete
      * Get
      * Get many
      * Update
  * Ticket
      * Create
      * Delete
      * Get
      * Get many
  * User
      * Create
      * Delete
      * Get
      * Get many
  	* Get self
      * Update

  ## Templates and examples

  <!-- see https://www.notion.so/n8n/Pull-in-templates-for-the-integrations-pages-37c716837b804d30a33b47475f6e3780 -->
  [[ templatesWidget(page.title, 'zammad') ]]

properties_schema:
  [
    {
      "displayName": "Tool Description",
      "name": "toolDescription",
      "type": "string",
      "default": "",
      "required": false,
      "description": "Description for the AI to understand what this tool does and when to use it",
      "typeOptions": {
        "rows": 3
      },
      "placeholder": "e.g., Use this tool to interact with Zammad"
    },
    {
      "displayName": "Authentication",
      "name": "authentication",
      "type": "options",
      "default": "tokenAuth",
      "options": [
        {
          "name": "Basic Auth",
          "value": "basicAuth"
        },
        {
          "name": "Token Auth",
          "value": "tokenAuth"
        }
      ]
    },
    {
      "displayName": "Resource",
      "name": "resource",
      "type": "options",
      "default": "user",
      "options": [
        {
          "name": "Group",
          "value": "group"
        },
        {
          "name": "Organization",
          "value": "organization"
        },
        {
          "name": "Ticket",
          "value": "ticket"
        },
        {
          "name": "User",
          "value": "user"
        }
      ],
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a group",
          "action": "Create a group"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a group",
          "action": "Delete a group"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Retrieve a group",
          "action": "Get a group"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many groups",
          "action": "Get many groups"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update a group",
          "action": "Update a group"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "group"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Group Name",
      "name": "name",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "group"
          ]
        }
      }
    },
    {
      "displayName": "Group ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "Group to update. Specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "group"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Group ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "Group to delete. Specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "group"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    },
    {
      "displayName": "Group ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "Group to retrieve. Specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "group"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Active",
          "name": "active",
          "type": "boolean",
          "default": true
        },
        {
          "displayName": "Custom Fields",
          "name": "customFieldsUi",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Custom Field",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "name": "customFieldPairs",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "name",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "loadGroupCustomFields"
                  },
                  "default": "",
                  "description": "Name of the custom field to set. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
                },
                {
                  "displayName": "Field Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on the custom field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Notes",
          "name": "note",
          "type": "string",
          "default": ""
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "group"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Active",
          "name": "active",
          "type": "boolean",
          "default": true
        },
        {
          "displayName": "Custom Fields",
          "name": "customFieldsUi",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Custom Field",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "name": "customFieldPairs",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "name",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "loadGroupCustomFields"
                  },
                  "default": "",
                  "description": "Name of the custom field to set. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
                },
                {
                  "displayName": "Field Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on the custom field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Group Name",
          "name": "name",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Notes",
          "name": "note",
          "type": "string",
          "default": ""
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "update"
          ],
          "resource": [
            "group"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "group"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 50,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "group"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create an organization",
          "action": "Create an organization"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete an organization",
          "action": "Delete an organization"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Retrieve an organization",
          "action": "Get an organization"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Retrieve many organizations",
          "action": "Get many organizations"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update an organization",
          "action": "Update an organization"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Organization Name",
      "name": "name",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "organization"
          ]
        }
      }
    },
    {
      "displayName": "Organization ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "Organization to update. Specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Organization ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "Organization to delete. Specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    },
    {
      "displayName": "Organization ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "Organization to retrieve. Specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Shared",
          "name": "shared",
          "type": "boolean",
          "default": false,
          "description": "Whether the organization is shared with other instances"
        },
        {
          "displayName": "Domain",
          "name": "domain",
          "type": "string",
          "default": "",
          "description": "The domain associated with the organization"
        },
        {
          "displayName": "Domain Assignment",
          "name": "domain_assignment",
          "type": "boolean",
          "default": true,
          "description": "Whether to assign users based on their email domain"
        },
        {
          "displayName": "Active",
          "name": "active",
          "type": "boolean",
          "default": true,
          "description": "Whether the organization is active"
        },
        {
          "displayName": "VIP",
          "name": "vip",
          "type": "boolean",
          "default": false,
          "description": "Whether the organization is marked as VIP"
        },
        {
          "displayName": "Notes",
          "name": "note",
          "type": "string",
          "default": "",
          "description": "A note about the organization"
        },
        {
          "displayName": "Custom Fields",
          "name": "customFieldsUi",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Custom Field",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "name": "customFieldPairs",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "name",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "loadOrganizationCustomFields"
                  },
                  "default": "",
                  "description": "Name of the custom field to set. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on the custom field"
                }
              ]
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "organization"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Shared",
          "name": "shared",
          "type": "boolean",
          "default": false,
          "description": "Whether the organization is shared with other instances"
        },
        {
          "displayName": "Domain",
          "name": "domain",
          "type": "string",
          "default": "",
          "description": "The domain associated with the organization"
        },
        {
          "displayName": "Domain Assignment",
          "name": "domain_assignment",
          "type": "boolean",
          "default": true,
          "description": "Whether to assign users based on their email domain"
        },
        {
          "displayName": "Active",
          "name": "active",
          "type": "boolean",
          "default": true,
          "description": "Whether the organization is active"
        },
        {
          "displayName": "VIP",
          "name": "vip",
          "type": "boolean",
          "default": false,
          "description": "Whether the organization is marked as VIP"
        },
        {
          "displayName": "Notes",
          "name": "note",
          "type": "string",
          "default": "",
          "description": "A note about the organization"
        },
        {
          "displayName": "Custom Fields",
          "name": "customFieldsUi",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Custom Field",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "name": "customFieldPairs",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "name",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "loadOrganizationCustomFields"
                  },
                  "default": "",
                  "description": "Name of the custom field to set. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on the custom field"
                }
              ]
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "update"
          ],
          "resource": [
            "organization"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 50,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a ticket",
          "action": "Create a ticket"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a ticket",
          "action": "Delete a ticket"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Retrieve a ticket",
          "action": "Get a ticket"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Retrieve many tickets",
          "action": "Get many tickets"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Title",
      "name": "title",
      "type": "string",
      "default": "",
      "description": "Title of the ticket to create",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Group Name or ID",
      "name": "group",
      "type": "options",
      "default": "",
      "description": "Group that will own the ticket to create. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "create"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "loadGroupNames"
      }
    },
    {
      "displayName": "Customer Email Name or ID",
      "name": "customer",
      "type": "options",
      "default": "",
      "description": "Email address of the customer concerned in the ticket to create. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "create"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "loadCustomerEmails"
      }
    },
    {
      "displayName": "Ticket ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "Ticket to retrieve. Specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Ticket ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "Ticket to delete. Specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    },
    {
      "displayName": "Article",
      "name": "article",
      "type": "fixedCollection",
      "default": {},
      "options": [
        {
          "displayName": "Article Details",
          "name": "articleDetails",
          "values": [
            {
              "displayName": "Subject",
              "name": "subject",
              "type": "string",
              "default": ""
            },
            {
              "displayName": "Body",
              "name": "body",
              "type": "string",
              "default": ""
            },
            {
              "displayName": "Visibility",
              "name": "visibility",
              "type": "options",
              "default": "internal",
              "options": [
                {
                  "name": "External",
                  "value": "external",
                  "description": "Visible to customers"
                },
                {
                  "name": "Internal",
                  "value": "internal",
                  "description": "Visible to help desk"
                }
              ]
            },
            {
              "displayName": "Sender",
              "name": "sender",
              "type": "options",
              "options": [
                {
                  "name": "Agent",
                  "value": "Agent"
                },
                {
                  "name": "Customer",
                  "value": "Customer"
                },
                {
                  "name": "System",
                  "value": "System",
                  "description": "Only subject will be displayed in Zammad"
                }
              ],
              "default": "Agent"
            },
            {
              "displayName": "Article Type",
              "name": "type",
              "type": "options",
              "options": [
                {
                  "name": "Chat",
                  "value": "chat"
                },
                {
                  "name": "Email",
                  "value": "email"
                },
                {
                  "name": "Fax",
                  "value": "fax"
                },
                {
                  "name": "Note",
                  "value": "note"
                },
                {
                  "name": "Phone",
                  "value": "phone"
                },
                {
                  "name": "SMS",
                  "value": "sms"
                }
              ],
              "default": "note"
            },
            {
              "displayName": "Reply To",
              "name": "reply_to",
              "type": "string",
              "default": ""
            }
          ]
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Custom Fields",
          "name": "customFieldsUi",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Custom Field",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "name": "customFieldPairs",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "name",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "loadTicketCustomFields"
                  },
                  "default": "",
                  "description": "Name of the custom field to set. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on the custom field"
                }
              ]
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 50,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a user",
          "action": "Create a user"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a user",
          "action": "Delete a user"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Retrieve a user",
          "action": "Get a user"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Retrieve many users",
          "action": "Get many users"
        },
        {
          "name": "Get Self",
          "value": "getSelf",
          "description": "Retrieve currently logged-in user",
          "action": "Get currently logged-in user"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update a user",
          "action": "Update a user"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "First Name",
      "name": "firstname",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Last Name",
      "name": "lastname",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "User ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "User to update. Specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "User ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "User to delete. Specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    },
    {
      "displayName": "User ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "User to retrieve. Specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Active",
          "name": "active",
          "type": "boolean",
          "default": true
        },
        {
          "displayName": "Address",
          "name": "addressUi",
          "type": "fixedCollection",
          "placeholder": "Add Address",
          "default": {},
          "options": [
            {
              "displayName": "Address Details",
              "name": "addressDetails",
              "values": [
                {
                  "displayName": "City",
                  "name": "city",
                  "type": "string",
                  "default": "",
                  "placeholder": "Berlin"
                },
                {
                  "displayName": "Country",
                  "name": "country",
                  "type": "string",
                  "default": "",
                  "placeholder": "Germany"
                },
                {
                  "displayName": "Street & Number",
                  "name": "address",
                  "type": "string",
                  "default": "",
                  "placeholder": "Borsigstr. 27"
                },
                {
                  "displayName": "Zip Code",
                  "name": "zip",
                  "type": "string",
                  "default": "",
                  "placeholder": "10115"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Custom Fields",
          "name": "customFieldsUi",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Custom Field",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "name": "customFieldPairs",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "name",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "loadUserCustomFields"
                  },
                  "default": "",
                  "description": "Name of the custom field to set. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
                },
                {
                  "displayName": "Field Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on the custom field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Department",
          "name": "department",
          "type": "string",
          "default": "",
          "placeholder": "Finance"
        },
        {
          "displayName": "Email Address",
          "name": "email",
          "type": "string",
          "placeholder": "name@email.com",
          "default": ""
        },
        {
          "displayName": "Fax",
          "name": "fax",
          "type": "string",
          "default": "",
          "placeholder": "+49 30 901820"
        },
        {
          "displayName": "Notes",
          "name": "note",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Organization Name or ID",
          "name": "organization",
          "type": "options",
          "description": "Name of the organization to assign to the user. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
          "default": "",
          "typeOptions": {
            "loadOptionsMethod": "loadOrganizations"
          }
        },
        {
          "displayName": "Phone (Landline)",
          "name": "phone",
          "type": "string",
          "default": "",
          "placeholder": "+49 30 901820"
        },
        {
          "displayName": "Phone (Mobile)",
          "name": "mobile",
          "type": "string",
          "default": "",
          "placeholder": "+49 1522 3433333"
        },
        {
          "displayName": "Verified",
          "name": "verified",
          "type": "boolean",
          "default": false,
          "description": "Whether the user has been verified"
        },
        {
          "displayName": "VIP",
          "name": "vip",
          "type": "boolean",
          "default": false,
          "description": "Whether the user is a Very Important Person"
        },
        {
          "displayName": "Website",
          "name": "web",
          "type": "string",
          "default": "",
          "placeholder": "https://n8n.io"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Active",
          "name": "active",
          "type": "boolean",
          "default": true
        },
        {
          "displayName": "Address",
          "name": "addressUi",
          "type": "fixedCollection",
          "placeholder": "Add Address",
          "default": {},
          "options": [
            {
              "displayName": "Address Details",
              "name": "addressDetails",
              "values": [
                {
                  "displayName": "City",
                  "name": "city",
                  "type": "string",
                  "default": "",
                  "placeholder": "Berlin"
                },
                {
                  "displayName": "Country",
                  "name": "country",
                  "type": "string",
                  "default": "",
                  "placeholder": "Germany"
                },
                {
                  "displayName": "Street & Number",
                  "name": "address",
                  "type": "string",
                  "default": "",
                  "placeholder": "Borsigstr. 27"
                },
                {
                  "displayName": "Zip Code",
                  "name": "zip",
                  "type": "string",
                  "default": "",
                  "placeholder": "10115"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Custom Fields",
          "name": "customFieldsUi",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Custom Field",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "name": "customFieldPairs",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "name",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "loadUserCustomFields"
                  },
                  "default": "",
                  "description": "Name of the custom field to set. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
                },
                {
                  "displayName": "Field Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on the custom field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Department",
          "name": "department",
          "type": "string",
          "default": "",
          "placeholder": "Finance"
        },
        {
          "displayName": "Email Address",
          "name": "email",
          "type": "string",
          "default": "",
          "placeholder": "hello@n8n.io"
        },
        {
          "displayName": "Fax",
          "name": "fax",
          "type": "string",
          "default": "",
          "placeholder": "+49 30 901820"
        },
        {
          "displayName": "First Name",
          "name": "firstname",
          "type": "string",
          "default": "",
          "placeholder": "John"
        },
        {
          "displayName": "Last Name",
          "name": "lastname",
          "type": "string",
          "default": "",
          "placeholder": "Smith"
        },
        {
          "displayName": "Notes",
          "name": "note",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Organization Name or ID",
          "name": "organization",
          "type": "options",
          "description": "Name of the organization to assign to the user. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
          "default": "",
          "typeOptions": {
            "loadOptionsMethod": "loadOrganizationNames"
          }
        },
        {
          "displayName": "Phone (Landline)",
          "name": "phone",
          "type": "string",
          "default": "",
          "placeholder": "+49 30 901820"
        },
        {
          "displayName": "Phone (Mobile)",
          "name": "mobile",
          "type": "string",
          "default": "",
          "placeholder": "+49 1522 3433333"
        },
        {
          "displayName": "Verified",
          "name": "verified",
          "type": "boolean",
          "default": false,
          "description": "Whether the user has been verified"
        },
        {
          "displayName": "VIP",
          "name": "vip",
          "type": "boolean",
          "default": false,
          "description": "Whether the user is a Very Important Person"
        },
        {
          "displayName": "Website",
          "name": "web",
          "type": "string",
          "default": "",
          "placeholder": "https://n8n.io"
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "update"
          ],
          "resource": [
            "user"
          ]
        }
      }
    },
    {
      "displayName": "Query",
      "name": "query",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "search"
          ],
          "resource": [
            "user"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 50,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "operation": [
            "search"
          ],
          "resource": [
            "user"
          ]
        }
      },
      "typeOptions": {
        "minValue": 1
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 50,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1
      }
    },
    {
      "displayName": "Filters",
      "name": "filters",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Query",
          "name": "query",
          "type": "string",
          "default": "",
          "description": "Query to filter results by",
          "placeholder": "user.firstname:john"
        },
        {
          "displayName": "Sort",
          "name": "sortUi",
          "type": "fixedCollection",
          "placeholder": "Add Sort Options",
          "default": {},
          "options": [
            {
              "displayName": "Sort Options",
              "name": "sortDetails",
              "values": [
                {
                  "displayName": "Sort Key Name or ID",
                  "name": "sort_by",
                  "type": "options",
                  "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
                  "typeOptions": {
                    "loadOptionsMethod": "loadUserFields"
                  },
                  "default": ""
                },
                {
                  "displayName": "Sort Order",
                  "name": "order_by",
                  "type": "options",
                  "options": [
                    {
                      "name": "Ascending",
                      "value": "asc"
                    },
                    {
                      "name": "Descending",
                      "value": "desc"
                    }
                  ],
                  "default": "asc"
                }
              ]
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    }
  ]

operations:
  [
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a group",
      "resource": "group"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a group",
      "resource": "group"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Retrieve a group",
      "resource": "group"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many groups",
      "resource": "group"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update a group",
      "resource": "group"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create an organization",
      "resource": "organization"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete an organization",
      "resource": "organization"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Retrieve an organization",
      "resource": "organization"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Retrieve many organizations",
      "resource": "organization"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update an organization",
      "resource": "organization"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a ticket",
      "resource": "ticket"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a ticket",
      "resource": "ticket"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Retrieve a ticket",
      "resource": "ticket"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Retrieve many tickets",
      "resource": "ticket"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a user",
      "resource": "user"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a user",
      "resource": "user"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Retrieve a user",
      "resource": "user"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Retrieve many users",
      "resource": "user"
    },
    {
      "operation": "getSelf",
      "name": "Get Self",
      "description": "Retrieve currently logged-in user",
      "resource": "user"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update a user",
      "resource": "user"
    }
  ]

credentials_required:
  [
    {
      "name": "zammadBasicAuthApi",
      "required": true,
      "testedBy": "zammadBasicAuthApiTest",
      "displayOptions": {
        "show": {
          "authentication": [
            "basicAuth"
          ]
        }
      }
    },
    {
      "name": "zammadTokenAuthApi",
      "required": true,
      "testedBy": "zammadTokenAuthApiTest",
      "displayOptions": {
        "show": {
          "authentication": [
            "tokenAuth"
          ]
        }
      }
    }
  ]


node_type: nodes-base.zammad
package_name: n8n-nodes-base
display_name: Zammad
description: Consume the Zammad API
category: input
development_style: programmatic
version: 1
outputs:
  [
  "main"
  ]

updated_at: 2026-03-30 13:12:50
documentation:
  ---
  #https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
  title: Zammad node documentation
  description: Learn how to use the Zammad node in n8n. Follow technical documentation to integrate Zammad node into your workflows.
  contentType: [integration, reference]
  ---

  # Zammad node

  Use the Zammad node to automate work in Zammad, and integrate Zammad with other applications. n8n has built-in support for a wide range of Zammad features, including creating, retrieving, and deleting groups and organizations.

  On this page, you'll find a list of operations the Zammad node supports and links to more resources.

  /// note | Credentials
  Refer to [Zammad credentials](/integrations/builtin/credentials/zammad.md) for guidance on setting up authentication. 
  ///

  ## Operations

  * Group
      * Create
      * Delete
      * Get
      * Get many
      * Update
  * Organization
      * Create
      * Delete
      * Get
      * Get many
      * Update
  * Ticket
      * Create
      * Delete
      * Get
      * Get many
  * User
      * Create
      * Delete
      * Get
      * Get many
  	* Get self
      * Update

  ## Templates and examples

  <!-- see https://www.notion.so/n8n/Pull-in-templates-for-the-integrations-pages-37c716837b804d30a33b47475f6e3780 -->
  [[ templatesWidget(page.title, 'zammad') ]]

properties_schema:
  [
    {
      "displayName": "Authentication",
      "name": "authentication",
      "type": "options",
      "default": "tokenAuth",
      "options": [
        {
          "name": "Basic Auth",
          "value": "basicAuth"
        },
        {
          "name": "Token Auth",
          "value": "tokenAuth"
        }
      ]
    },
    {
      "displayName": "Resource",
      "name": "resource",
      "type": "options",
      "default": "user",
      "options": [
        {
          "name": "Group",
          "value": "group"
        },
        {
          "name": "Organization",
          "value": "organization"
        },
        {
          "name": "Ticket",
          "value": "ticket"
        },
        {
          "name": "User",
          "value": "user"
        }
      ],
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a group",
          "action": "Create a group"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a group",
          "action": "Delete a group"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Retrieve a group",
          "action": "Get a group"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many groups",
          "action": "Get many groups"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update a group",
          "action": "Update a group"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "group"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Group Name",
      "name": "name",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "group"
          ]
        }
      }
    },
    {
      "displayName": "Group ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "Group to update. Specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "group"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Group ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "Group to delete. Specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "group"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    },
    {
      "displayName": "Group ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "Group to retrieve. Specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "group"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Active",
          "name": "active",
          "type": "boolean",
          "default": true
        },
        {
          "displayName": "Custom Fields",
          "name": "customFieldsUi",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Custom Field",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "name": "customFieldPairs",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "name",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "loadGroupCustomFields"
                  },
                  "default": "",
                  "description": "Name of the custom field to set. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
                },
                {
                  "displayName": "Field Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on the custom field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Notes",
          "name": "note",
          "type": "string",
          "default": ""
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "group"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Active",
          "name": "active",
          "type": "boolean",
          "default": true
        },
        {
          "displayName": "Custom Fields",
          "name": "customFieldsUi",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Custom Field",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "name": "customFieldPairs",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "name",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "loadGroupCustomFields"
                  },
                  "default": "",
                  "description": "Name of the custom field to set. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
                },
                {
                  "displayName": "Field Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on the custom field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Group Name",
          "name": "name",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Notes",
          "name": "note",
          "type": "string",
          "default": ""
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "update"
          ],
          "resource": [
            "group"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "group"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 50,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "group"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create an organization",
          "action": "Create an organization"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete an organization",
          "action": "Delete an organization"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Retrieve an organization",
          "action": "Get an organization"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Retrieve many organizations",
          "action": "Get many organizations"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update an organization",
          "action": "Update an organization"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Organization Name",
      "name": "name",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "organization"
          ]
        }
      }
    },
    {
      "displayName": "Organization ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "Organization to update. Specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Organization ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "Organization to delete. Specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    },
    {
      "displayName": "Organization ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "Organization to retrieve. Specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Shared",
          "name": "shared",
          "type": "boolean",
          "default": false,
          "description": "Whether the organization is shared with other instances"
        },
        {
          "displayName": "Domain",
          "name": "domain",
          "type": "string",
          "default": "",
          "description": "The domain associated with the organization"
        },
        {
          "displayName": "Domain Assignment",
          "name": "domain_assignment",
          "type": "boolean",
          "default": true,
          "description": "Whether to assign users based on their email domain"
        },
        {
          "displayName": "Active",
          "name": "active",
          "type": "boolean",
          "default": true,
          "description": "Whether the organization is active"
        },
        {
          "displayName": "VIP",
          "name": "vip",
          "type": "boolean",
          "default": false,
          "description": "Whether the organization is marked as VIP"
        },
        {
          "displayName": "Notes",
          "name": "note",
          "type": "string",
          "default": "",
          "description": "A note about the organization"
        },
        {
          "displayName": "Custom Fields",
          "name": "customFieldsUi",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Custom Field",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "name": "customFieldPairs",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "name",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "loadOrganizationCustomFields"
                  },
                  "default": "",
                  "description": "Name of the custom field to set. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on the custom field"
                }
              ]
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "create"
          ],
          "resource": [
            "organization"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Shared",
          "name": "shared",
          "type": "boolean",
          "default": false,
          "description": "Whether the organization is shared with other instances"
        },
        {
          "displayName": "Domain",
          "name": "domain",
          "type": "string",
          "default": "",
          "description": "The domain associated with the organization"
        },
        {
          "displayName": "Domain Assignment",
          "name": "domain_assignment",
          "type": "boolean",
          "default": true,
          "description": "Whether to assign users based on their email domain"
        },
        {
          "displayName": "Active",
          "name": "active",
          "type": "boolean",
          "default": true,
          "description": "Whether the organization is active"
        },
        {
          "displayName": "VIP",
          "name": "vip",
          "type": "boolean",
          "default": false,
          "description": "Whether the organization is marked as VIP"
        },
        {
          "displayName": "Notes",
          "name": "note",
          "type": "string",
          "default": "",
          "description": "A note about the organization"
        },
        {
          "displayName": "Custom Fields",
          "name": "customFieldsUi",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Custom Field",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "name": "customFieldPairs",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "name",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "loadOrganizationCustomFields"
                  },
                  "default": "",
                  "description": "Name of the custom field to set. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on the custom field"
                }
              ]
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "update"
          ],
          "resource": [
            "organization"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 50,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a ticket",
          "action": "Create a ticket"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a ticket",
          "action": "Delete a ticket"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Retrieve a ticket",
          "action": "Get a ticket"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Retrieve many tickets",
          "action": "Get many tickets"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Title",
      "name": "title",
      "type": "string",
      "default": "",
      "description": "Title of the ticket to create",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Group Name or ID",
      "name": "group",
      "type": "options",
      "default": "",
      "description": "Group that will own the ticket to create. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "create"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "loadGroupNames"
      }
    },
    {
      "displayName": "Customer Email Name or ID",
      "name": "customer",
      "type": "options",
      "default": "",
      "description": "Email address of the customer concerned in the ticket to create. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "create"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "loadCustomerEmails"
      }
    },
    {
      "displayName": "Ticket ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "Ticket to retrieve. Specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Ticket ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "Ticket to delete. Specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    },
    {
      "displayName": "Article",
      "name": "article",
      "type": "fixedCollection",
      "default": {},
      "options": [
        {
          "displayName": "Article Details",
          "name": "articleDetails",
          "values": [
            {
              "displayName": "Subject",
              "name": "subject",
              "type": "string",
              "default": ""
            },
            {
              "displayName": "Body",
              "name": "body",
              "type": "string",
              "default": ""
            },
            {
              "displayName": "Visibility",
              "name": "visibility",
              "type": "options",
              "default": "internal",
              "options": [
                {
                  "name": "External",
                  "value": "external",
                  "description": "Visible to customers"
                },
                {
                  "name": "Internal",
                  "value": "internal",
                  "description": "Visible to help desk"
                }
              ]
            },
            {
              "displayName": "Sender",
              "name": "sender",
              "type": "options",
              "options": [
                {
                  "name": "Agent",
                  "value": "Agent"
                },
                {
                  "name": "Customer",
                  "value": "Customer"
                },
                {
                  "name": "System",
                  "value": "System",
                  "description": "Only subject will be displayed in Zammad"
                }
              ],
              "default": "Agent"
            },
            {
              "displayName": "Article Type",
              "name": "type",
              "type": "options",
              "options": [
                {
                  "name": "Chat",
                  "value": "chat"
                },
                {
                  "name": "Email",
                  "value": "email"
                },
                {
                  "name": "Fax",
                  "value": "fax"
                },
                {
                  "name": "Note",
                  "value": "note"
                },
                {
                  "name": "Phone",
                  "value": "phone"
                },
                {
                  "name": "SMS",
                  "value": "sms"
                }
              ],
              "default": "note"
            },
            {
              "displayName": "Reply To",
              "name": "reply_to",
              "type": "string",
              "default": ""
            }
          ]
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Custom Fields",
          "name": "customFieldsUi",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Custom Field",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "name": "customFieldPairs",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "name",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "loadTicketCustomFields"
                  },
                  "default": "",
                  "description": "Name of the custom field to set. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on the custom field"
                }
              ]
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 50,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a user",
          "action": "Create a user"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a user",
          "action": "Delete a user"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Retrieve a user",
          "action": "Get a user"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Retrieve many users",
          "action": "Get many users"
        },
        {
          "name": "Get Self",
          "value": "getSelf",
          "description": "Retrieve currently logged-in user",
          "action": "Get currently logged-in user"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update a user",
          "action": "Update a user"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "First Name",
      "name": "firstname",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Last Name",
      "name": "lastname",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "User ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "User to update. Specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "User ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "User to delete. Specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    },
    {
      "displayName": "User ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "User to retrieve. Specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Active",
          "name": "active",
          "type": "boolean",
          "default": true
        },
        {
          "displayName": "Address",
          "name": "addressUi",
          "type": "fixedCollection",
          "placeholder": "Add Address",
          "default": {},
          "options": [
            {
              "displayName": "Address Details",
              "name": "addressDetails",
              "values": [
                {
                  "displayName": "City",
                  "name": "city",
                  "type": "string",
                  "default": "",
                  "placeholder": "Berlin"
                },
                {
                  "displayName": "Country",
                  "name": "country",
                  "type": "string",
                  "default": "",
                  "placeholder": "Germany"
                },
                {
                  "displayName": "Street & Number",
                  "name": "address",
                  "type": "string",
                  "default": "",
                  "placeholder": "Borsigstr. 27"
                },
                {
                  "displayName": "Zip Code",
                  "name": "zip",
                  "type": "string",
                  "default": "",
                  "placeholder": "10115"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Custom Fields",
          "name": "customFieldsUi",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Custom Field",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "name": "customFieldPairs",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "name",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "loadUserCustomFields"
                  },
                  "default": "",
                  "description": "Name of the custom field to set. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
                },
                {
                  "displayName": "Field Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on the custom field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Department",
          "name": "department",
          "type": "string",
          "default": "",
          "placeholder": "Finance"
        },
        {
          "displayName": "Email Address",
          "name": "email",
          "type": "string",
          "placeholder": "name@email.com",
          "default": ""
        },
        {
          "displayName": "Fax",
          "name": "fax",
          "type": "string",
          "default": "",
          "placeholder": "+49 30 901820"
        },
        {
          "displayName": "Notes",
          "name": "note",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Organization Name or ID",
          "name": "organization",
          "type": "options",
          "description": "Name of the organization to assign to the user. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
          "default": "",
          "typeOptions": {
            "loadOptionsMethod": "loadOrganizations"
          }
        },
        {
          "displayName": "Phone (Landline)",
          "name": "phone",
          "type": "string",
          "default": "",
          "placeholder": "+49 30 901820"
        },
        {
          "displayName": "Phone (Mobile)",
          "name": "mobile",
          "type": "string",
          "default": "",
          "placeholder": "+49 1522 3433333"
        },
        {
          "displayName": "Verified",
          "name": "verified",
          "type": "boolean",
          "default": false,
          "description": "Whether the user has been verified"
        },
        {
          "displayName": "VIP",
          "name": "vip",
          "type": "boolean",
          "default": false,
          "description": "Whether the user is a Very Important Person"
        },
        {
          "displayName": "Website",
          "name": "web",
          "type": "string",
          "default": "",
          "placeholder": "https://n8n.io"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Active",
          "name": "active",
          "type": "boolean",
          "default": true
        },
        {
          "displayName": "Address",
          "name": "addressUi",
          "type": "fixedCollection",
          "placeholder": "Add Address",
          "default": {},
          "options": [
            {
              "displayName": "Address Details",
              "name": "addressDetails",
              "values": [
                {
                  "displayName": "City",
                  "name": "city",
                  "type": "string",
                  "default": "",
                  "placeholder": "Berlin"
                },
                {
                  "displayName": "Country",
                  "name": "country",
                  "type": "string",
                  "default": "",
                  "placeholder": "Germany"
                },
                {
                  "displayName": "Street & Number",
                  "name": "address",
                  "type": "string",
                  "default": "",
                  "placeholder": "Borsigstr. 27"
                },
                {
                  "displayName": "Zip Code",
                  "name": "zip",
                  "type": "string",
                  "default": "",
                  "placeholder": "10115"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Custom Fields",
          "name": "customFieldsUi",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Custom Field",
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "name": "customFieldPairs",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "name",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "loadUserCustomFields"
                  },
                  "default": "",
                  "description": "Name of the custom field to set. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
                },
                {
                  "displayName": "Field Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on the custom field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Department",
          "name": "department",
          "type": "string",
          "default": "",
          "placeholder": "Finance"
        },
        {
          "displayName": "Email Address",
          "name": "email",
          "type": "string",
          "default": "",
          "placeholder": "hello@n8n.io"
        },
        {
          "displayName": "Fax",
          "name": "fax",
          "type": "string",
          "default": "",
          "placeholder": "+49 30 901820"
        },
        {
          "displayName": "First Name",
          "name": "firstname",
          "type": "string",
          "default": "",
          "placeholder": "John"
        },
        {
          "displayName": "Last Name",
          "name": "lastname",
          "type": "string",
          "default": "",
          "placeholder": "Smith"
        },
        {
          "displayName": "Notes",
          "name": "note",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Organization Name or ID",
          "name": "organization",
          "type": "options",
          "description": "Name of the organization to assign to the user. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
          "default": "",
          "typeOptions": {
            "loadOptionsMethod": "loadOrganizationNames"
          }
        },
        {
          "displayName": "Phone (Landline)",
          "name": "phone",
          "type": "string",
          "default": "",
          "placeholder": "+49 30 901820"
        },
        {
          "displayName": "Phone (Mobile)",
          "name": "mobile",
          "type": "string",
          "default": "",
          "placeholder": "+49 1522 3433333"
        },
        {
          "displayName": "Verified",
          "name": "verified",
          "type": "boolean",
          "default": false,
          "description": "Whether the user has been verified"
        },
        {
          "displayName": "VIP",
          "name": "vip",
          "type": "boolean",
          "default": false,
          "description": "Whether the user is a Very Important Person"
        },
        {
          "displayName": "Website",
          "name": "web",
          "type": "string",
          "default": "",
          "placeholder": "https://n8n.io"
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "update"
          ],
          "resource": [
            "user"
          ]
        }
      }
    },
    {
      "displayName": "Query",
      "name": "query",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "search"
          ],
          "resource": [
            "user"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 50,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "operation": [
            "search"
          ],
          "resource": [
            "user"
          ]
        }
      },
      "typeOptions": {
        "minValue": 1
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 50,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1
      }
    },
    {
      "displayName": "Filters",
      "name": "filters",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Query",
          "name": "query",
          "type": "string",
          "default": "",
          "description": "Query to filter results by",
          "placeholder": "user.firstname:john"
        },
        {
          "displayName": "Sort",
          "name": "sortUi",
          "type": "fixedCollection",
          "placeholder": "Add Sort Options",
          "default": {},
          "options": [
            {
              "displayName": "Sort Options",
              "name": "sortDetails",
              "values": [
                {
                  "displayName": "Sort Key Name or ID",
                  "name": "sort_by",
                  "type": "options",
                  "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
                  "typeOptions": {
                    "loadOptionsMethod": "loadUserFields"
                  },
                  "default": ""
                },
                {
                  "displayName": "Sort Order",
                  "name": "order_by",
                  "type": "options",
                  "options": [
                    {
                      "name": "Ascending",
                      "value": "asc"
                    },
                    {
                      "name": "Descending",
                      "value": "desc"
                    }
                  ],
                  "default": "asc"
                }
              ]
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    }
  ]

operations:
  [
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a group",
      "resource": "group"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a group",
      "resource": "group"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Retrieve a group",
      "resource": "group"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many groups",
      "resource": "group"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update a group",
      "resource": "group"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create an organization",
      "resource": "organization"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete an organization",
      "resource": "organization"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Retrieve an organization",
      "resource": "organization"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Retrieve many organizations",
      "resource": "organization"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update an organization",
      "resource": "organization"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a ticket",
      "resource": "ticket"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a ticket",
      "resource": "ticket"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Retrieve a ticket",
      "resource": "ticket"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Retrieve many tickets",
      "resource": "ticket"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a user",
      "resource": "user"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a user",
      "resource": "user"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Retrieve a user",
      "resource": "user"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Retrieve many users",
      "resource": "user"
    },
    {
      "operation": "getSelf",
      "name": "Get Self",
      "description": "Retrieve currently logged-in user",
      "resource": "user"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update a user",
      "resource": "user"
    }
  ]

credentials_required:
  [
    {
      "name": "zammadBasicAuthApi",
      "required": true,
      "testedBy": "zammadBasicAuthApiTest",
      "displayOptions": {
        "show": {
          "authentication": [
            "basicAuth"
          ]
        }
      }
    },
    {
      "name": "zammadTokenAuthApi",
      "required": true,
      "testedBy": "zammadTokenAuthApiTest",
      "displayOptions": {
        "show": {
          "authentication": [
            "tokenAuth"
          ]
        }
      }
    }
  ]


node_type: nodes-base.zendeskTool
package_name: n8n-nodes-base
display_name: Zendesk Tool
description: Consume Zendesk API (AI Tool variant for use with AI Agents)
category: output
development_style: programmatic
version: 1
outputs:
  [
  {
  "type": "ai_tool",
  "displayName": "Tool"
  }
  ]

output_names:
  [
  "Tool"
  ]

updated_at: 2026-03-30 13:12:50
tool_variant_of: nodes-base.zendesk
documentation:
  ---
  #https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
  title: Zendesk node documentation
  description: Learn how to use the Zendesk node in n8n. Follow technical documentation to integrate Zendesk node into your workflows.
  contentType: [integration, reference]
  ---

  # Zendesk node

  Use the Zendesk node to automate work in Zendesk, and integrate Zendesk with other applications. n8n has built-in support for a wide range of Zendesk features, including creating, and deleting tickets, users, and organizations. 

  On this page, you'll find a list of operations the Zendesk node supports and links to more resources.

  /// note | Credentials
  Refer to [Zendesk credentials](/integrations/builtin/credentials/zendesk.md) for guidance on setting up authentication. 
  ///

  --8<-- "_snippets/integrations/builtin/app-nodes/ai-tools.md"

  ## Operations

  * Ticket
      * Create a ticket
      * Delete a ticket
      * Get a ticket
      * Get all tickets
      * Recover a suspended ticket
      * Update a ticket
  * Ticket Field
      * Get a ticket field
      * Get all system and custom ticket fields
  * User
      * Create a user
      * Delete a user
      * Get a user
      * Get all users
      * Get a user's organizations
      * Get data related to the user
      * Search users
      * Update a user
  * Organization
      * Create an organization
      * Delete an organization
      * Count organizations
      * Get an organization
      * Get all organizations
      * Get data related to the organization
      * Update a organization

  ## Templates and examples

  <!-- see https://www.notion.so/n8n/Pull-in-templates-for-the-integrations-pages-37c716837b804d30a33b47475f6e3780 -->
  [[ templatesWidget(page.title, 'zendesk') ]]

  --8<-- "_snippets/integrations/builtin/app-nodes/operation-not-supported.md"

properties_schema:
  [
    {
      "displayName": "Tool Description",
      "name": "toolDescription",
      "type": "string",
      "default": "",
      "required": false,
      "description": "Description for the AI to understand what this tool does and when to use it",
      "typeOptions": {
        "rows": 3
      },
      "placeholder": "e.g., Use this tool to interact with Zendesk"
    },
    {
      "displayName": "Authentication",
      "name": "authentication",
      "type": "options",
      "default": "apiToken",
      "options": [
        {
          "name": "API Token",
          "value": "apiToken"
        },
        {
          "name": "OAuth2",
          "value": "oAuth2"
        }
      ]
    },
    {
      "displayName": "Resource",
      "name": "resource",
      "type": "options",
      "default": "ticket",
      "options": [
        {
          "name": "Ticket",
          "value": "ticket",
          "description": "Tickets are the means through which your end users (customers) communicate with agents in Zendesk Support"
        },
        {
          "name": "Ticket Field",
          "value": "ticketField",
          "description": "Manage system and custom ticket fields"
        },
        {
          "name": "User",
          "value": "user",
          "description": "Manage users"
        },
        {
          "name": "Organization",
          "value": "organization",
          "description": "Manage organizations"
        }
      ],
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a ticket",
          "action": "Create a ticket"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a ticket",
          "action": "Delete a ticket"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get a ticket",
          "action": "Get a ticket"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many tickets",
          "action": "Get many tickets"
        },
        {
          "name": "Recover",
          "value": "recover",
          "description": "Recover a suspended ticket",
          "action": "Recover a ticket"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update a ticket",
          "action": "Update a ticket"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Description",
      "name": "description",
      "type": "string",
      "default": "",
      "description": "The first comment on the ticket",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "JSON Parameters",
      "name": "jsonParameters",
      "type": "boolean",
      "default": false,
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Custom Fields",
          "name": "customFieldsUi",
          "placeholder": "Add Custom Field",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "default": {},
          "options": [
            {
              "displayName": "Custom Field",
              "name": "customFieldsValues",
              "values": [
                {
                  "displayName": "Name or ID",
                  "name": "id",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getCustomFields"
                  },
                  "default": "",
                  "description": "Custom field ID. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Custom field Value"
                }
              ]
            }
          ]
        },
        {
          "displayName": "External ID",
          "name": "externalId",
          "type": "string",
          "default": "",
          "description": "An ID you can use to link Zendesk Support tickets to local records"
        },
        {
          "displayName": "Group Name or ID",
          "name": "group",
          "type": "options",
          "typeOptions": {
            "loadOptionsMethod": "getGroups"
          },
          "default": "",
          "description": "The group this ticket is assigned to. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        },
        {
          "displayName": "Recipient",
          "name": "recipient",
          "type": "string",
          "default": "",
          "description": "The original recipient e-mail address of the ticket"
        },
        {
          "displayName": "Status",
          "name": "status",
          "type": "options",
          "options": [
            {
              "name": "Closed",
              "value": "closed"
            },
            {
              "name": "New",
              "value": "new"
            },
            {
              "name": "On-Hold",
              "value": "hold"
            },
            {
              "name": "Open",
              "value": "open"
            },
            {
              "name": "Pending",
              "value": "pending"
            },
            {
              "name": "Solved",
              "value": "solved"
            }
          ],
          "default": "",
          "description": "The state of the ticket"
        },
        {
          "displayName": "Subject",
          "name": "subject",
          "type": "string",
          "default": "",
          "description": "The value of the subject field for this ticket"
        },
        {
          "displayName": "Tag Names or IDs",
          "name": "tags",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getTags"
          },
          "default": [],
          "description": "The array of tags applied to this ticket. Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        },
        {
          "displayName": "Type",
          "name": "type",
          "type": "options",
          "options": [
            {
              "name": "Question",
              "value": "question"
            },
            {
              "name": "Incident",
              "value": "incident"
            },
            {
              "name": "Problem",
              "value": "problem"
            },
            {
              "name": "Task",
              "value": "task"
            }
          ],
          "default": "",
          "description": "The type of this ticket"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "create"
          ],
          "jsonParameters": [
            false
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFieldsJson",
      "type": "json",
      "default": "",
      "description": "Object of values to set as described <a href=\"https://developer.zendesk.com/rest_api/docs/support/tickets\">here</a>",
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "create"
          ],
          "jsonParameters": [
            true
          ]
        }
      },
      "typeOptions": {
        "alwaysOpenEditWindow": true
      }
    },
    {
      "displayName": "Ticket ID",
      "name": "id",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "JSON Parameters",
      "name": "jsonParameters",
      "type": "boolean",
      "default": false,
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Assignee Email",
          "name": "assigneeEmail",
          "type": "string",
          "default": "",
          "description": "The e-mail address of the assignee"
        },
        {
          "displayName": "Custom Fields",
          "name": "customFieldsUi",
          "placeholder": "Add Custom Field",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "default": {},
          "options": [
            {
              "displayName": "Custom Field",
              "name": "customFieldsValues",
              "values": [
                {
                  "displayName": "Name or ID",
                  "name": "id",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getCustomFields"
                  },
                  "default": "",
                  "description": "Custom field ID. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Custom field Value"
                }
              ]
            }
          ]
        },
        {
          "displayName": "External ID",
          "name": "externalId",
          "type": "string",
          "default": "",
          "description": "An ID you can use to link Zendesk Support tickets to local records"
        },
        {
          "displayName": "Group Name or ID",
          "name": "group",
          "type": "options",
          "typeOptions": {
            "loadOptionsMethod": "getGroups"
          },
          "default": "",
          "description": "The group this ticket is assigned to. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        },
        {
          "displayName": "Internal Note",
          "name": "internalNote",
          "type": "string",
          "default": "",
          "description": "Internal Ticket Note (Accepts HTML)"
        },
        {
          "displayName": "Public Reply",
          "name": "publicReply",
          "type": "string",
          "default": "",
          "description": "Public ticket reply"
        },
        {
          "displayName": "Recipient",
          "name": "recipient",
          "type": "string",
          "default": "",
          "description": "The original recipient e-mail address of the ticket"
        },
        {
          "displayName": "Status",
          "name": "status",
          "type": "options",
          "options": [
            {
              "name": "Closed",
              "value": "closed"
            },
            {
              "name": "New",
              "value": "new"
            },
            {
              "name": "On-Hold",
              "value": "hold"
            },
            {
              "name": "Open",
              "value": "open"
            },
            {
              "name": "Pending",
              "value": "pending"
            },
            {
              "name": "Solved",
              "value": "solved"
            }
          ],
          "default": "",
          "description": "The state of the ticket"
        },
        {
          "displayName": "Subject",
          "name": "subject",
          "type": "string",
          "default": "",
          "description": "The value of the subject field for this ticket"
        },
        {
          "displayName": "Tag Names or IDs",
          "name": "tags",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getTags"
          },
          "default": [],
          "description": "The array of tags applied to this ticket. Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        },
        {
          "displayName": "Type",
          "name": "type",
          "type": "options",
          "options": [
            {
              "name": "Question",
              "value": "question"
            },
            {
              "name": "Incident",
              "value": "incident"
            },
            {
              "name": "Problem",
              "value": "problem"
            },
            {
              "name": "Task",
              "value": "task"
            }
          ],
          "default": "",
          "description": "The type of this ticket"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "update"
          ],
          "jsonParameters": [
            false
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFieldsJson",
      "type": "json",
      "default": "",
      "description": "Object of values to update as described <a href=\"https://developer.zendesk.com/rest_api/docs/support/tickets\">here</a>",
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "update"
          ],
          "jsonParameters": [
            true
          ]
        }
      },
      "typeOptions": {
        "alwaysOpenEditWindow": true
      }
    },
    {
      "displayName": "Ticket Type",
      "name": "ticketType",
      "type": "options",
      "default": "regular",
      "options": [
        {
          "name": "Regular",
          "value": "regular"
        },
        {
          "name": "Suspended",
          "value": "suspended"
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "get",
            "delete",
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Ticket ID",
      "name": "id",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "get"
          ],
          "ticketType": [
            "regular"
          ]
        }
      }
    },
    {
      "displayName": "Suspended Ticket ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "Ticket ID",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "get"
          ],
          "ticketType": [
            "suspended"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 100
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Group Name or ID",
          "name": "group",
          "type": "options",
          "typeOptions": {
            "loadOptionsMethod": "getGroups"
          },
          "displayOptions": {
            "show": {
              "/ticketType": [
                "regular"
              ]
            }
          },
          "default": "",
          "description": "The group to search. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        },
        {
          "displayName": "Query",
          "name": "query",
          "type": "string",
          "displayOptions": {
            "show": {
              "/ticketType": [
                "regular"
              ]
            }
          },
          "default": "",
          "description": "<a href=\"https://developer.zendesk.com/api-reference/ticketing/ticket-management/search/#syntax-examples\">Query syntax</a> to search tickets"
        },
        {
          "displayName": "Sort By",
          "name": "sortBy",
          "type": "options",
          "options": [
            {
              "name": "Created At",
              "value": "created_at"
            },
            {
              "name": "Priority",
              "value": "priority"
            },
            {
              "name": "Status",
              "value": "status"
            },
            {
              "name": "Ticket Type",
              "value": "ticket_type"
            },
            {
              "name": "Updated At",
              "value": "updated_at"
            }
          ],
          "default": "updated_at",
          "description": "Defaults to sorting by relevance"
        },
        {
          "displayName": "Sort Order",
          "name": "sortOrder",
          "type": "options",
          "options": [
            {
              "name": "Ascending",
              "value": "asc"
            },
            {
              "name": "Descending",
              "value": "desc"
            }
          ],
          "default": "asc"
        },
        {
          "displayName": "Status",
          "name": "status",
          "type": "options",
          "displayOptions": {
            "show": {
              "/ticketType": [
                "regular"
              ]
            }
          },
          "options": [
            {
              "name": "Closed",
              "value": "closed"
            },
            {
              "name": "New",
              "value": "new"
            },
            {
              "name": "On-Hold",
              "value": "hold"
            },
            {
              "name": "Open",
              "value": "open"
            },
            {
              "name": "Pending",
              "value": "pending"
            },
            {
              "name": "Solved",
              "value": "solved"
            }
          ],
          "default": "",
          "description": "The state of the ticket"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Ticket ID",
      "name": "id",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "delete"
          ],
          "ticketType": [
            "regular"
          ]
        }
      }
    },
    {
      "displayName": "Suspended Ticket ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "Ticket ID",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "delete"
          ],
          "ticketType": [
            "suspended"
          ]
        }
      }
    },
    {
      "displayName": "Suspended Ticket ID",
      "name": "id",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "recover"
          ]
        }
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "get",
      "options": [
        {
          "name": "Get",
          "value": "get",
          "description": "Get a ticket field",
          "action": "Get a ticket field"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many system and custom ticket fields",
          "action": "Get many ticket fields"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "ticketField"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Ticket Field ID",
      "name": "ticketFieldId",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "ticketField"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "ticketField"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "ticketField"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 100
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a user",
          "action": "Create a user"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a user",
          "action": "Delete a user"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get a user",
          "action": "Get a user"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many users",
          "action": "Get many users"
        },
        {
          "name": "Get Organizations",
          "value": "getOrganizations",
          "description": "Get a user's organizations",
          "action": "Get a user's organizations"
        },
        {
          "name": "Get Related Data",
          "value": "getRelatedData",
          "description": "Get data related to the user",
          "action": "Get data related to a user"
        },
        {
          "name": "Search",
          "value": "search",
          "description": "Search users",
          "action": "Search a user"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update a user",
          "action": "Update a user"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Name",
      "name": "name",
      "type": "string",
      "default": "",
      "description": "The user's name",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Alias",
          "name": "alias",
          "type": "string",
          "default": "",
          "description": "An alias displayed to end users"
        },
        {
          "displayName": "Custom Role ID",
          "name": "custom_role_id",
          "type": "number",
          "default": 0,
          "description": "A custom role if the user is an agent on the Enterprise plan"
        },
        {
          "displayName": "Details",
          "name": "details",
          "type": "string",
          "default": "",
          "description": "Any details you want to store about the user, such as an address"
        },
        {
          "displayName": "Email",
          "name": "email",
          "type": "string",
          "placeholder": "name@email.com",
          "default": "",
          "description": "The user's primary email address"
        },
        {
          "displayName": "External ID",
          "name": "external_id",
          "type": "string",
          "default": "",
          "description": "A unique identifier from another system"
        },
        {
          "displayName": "Locale",
          "name": "locale",
          "type": "options",
          "typeOptions": {
            "loadOptionsMethod": "getLocales"
          },
          "default": "",
          "description": "The user's locale. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        },
        {
          "displayName": "Moderator",
          "name": "moderator",
          "type": "boolean",
          "default": false,
          "description": "Whether the user has forum moderation capabilities"
        },
        {
          "displayName": "Notes",
          "name": "notes",
          "type": "string",
          "default": "",
          "description": "Any notes you want to store about the user"
        },
        {
          "displayName": "Only Private Comments",
          "name": "only_private_comments",
          "type": "boolean",
          "default": false,
          "description": "Whether the user can only create private comments"
        },
        {
          "displayName": "Organization Name or ID",
          "name": "organization_id",
          "typeOptions": {
            "loadOptionsMethod": "getOrganizations"
          },
          "type": "options",
          "default": "",
          "description": "The ID of the user's organization. If the user has more than one organization memberships, the ID of the user's default organization. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        },
        {
          "displayName": "Phone",
          "name": "phone",
          "type": "string",
          "default": "",
          "description": "The user's primary phone number"
        },
        {
          "displayName": "Report CSV",
          "name": "report_csv",
          "type": "boolean",
          "default": false,
          "description": "Whether or not the user can access the CSV report on the Search tab of the Reporting page in the Support admin interface"
        },
        {
          "displayName": "Restricted Agent",
          "name": "restricted_agent",
          "type": "boolean",
          "default": false,
          "description": "Whether the agent has any restrictions; false for admins and unrestricted agents, true for other agents"
        },
        {
          "displayName": "Role",
          "name": "role",
          "type": "options",
          "options": [
            {
              "name": "End User",
              "value": "end-user"
            },
            {
              "name": "Agent",
              "value": "agent"
            },
            {
              "name": "Admin",
              "value": "admin"
            }
          ],
          "default": "",
          "description": "The user's role"
        },
        {
          "displayName": "Signature",
          "name": "signature",
          "type": "string",
          "default": "",
          "description": "The user's signature. Only agents and admins can have signatures."
        },
        {
          "displayName": "Suspended",
          "name": "suspended",
          "type": "boolean",
          "default": false,
          "description": "Whether the agent is suspended. Tickets from suspended users are also suspended, and these users cannot sign in to the end user portal."
        },
        {
          "displayName": "Tag Names or IDs",
          "name": "tags",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getTags"
          },
          "default": [],
          "description": "The array of tags applied to this user. Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        },
        {
          "displayName": "Ticket Restriction",
          "name": "ticket_restriction",
          "type": "options",
          "options": [
            {
              "name": "Organization",
              "value": "organization"
            },
            {
              "name": "Groups",
              "value": "groups"
            },
            {
              "name": "Assigned",
              "value": "assigned"
            },
            {
              "name": "Requested",
              "value": "requested"
            }
          ],
          "default": "",
          "description": "Specifies which tickets the user has access to"
        },
        {
          "displayName": "Timezone",
          "name": "time_zone",
          "type": "string",
          "default": "",
          "description": "The user's time zone"
        },
        {
          "displayName": "User Fields",
          "name": "userFieldsUi",
          "placeholder": "Add User Field",
          "description": "Values of custom fields in the user's profile",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "default": {},
          "options": [
            {
              "name": "userFieldValues",
              "displayName": "Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "field",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getUserFields"
                  },
                  "default": "",
                  "description": "Name of the field to sort on. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value of the field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Verified",
          "name": "verified",
          "type": "boolean",
          "default": false,
          "description": "Whether the user's primary identity is verified or not"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "User ID",
      "name": "id",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Alias",
          "name": "alias",
          "type": "string",
          "default": "",
          "description": "An alias displayed to end users"
        },
        {
          "displayName": "Custom Role ID",
          "name": "custom_role_id",
          "type": "number",
          "default": 0,
          "description": "A custom role if the user is an agent on the Enterprise plan"
        },
        {
          "displayName": "Details",
          "name": "details",
          "type": "string",
          "default": "",
          "description": "Any details you want to store about the user, such as an address"
        },
        {
          "displayName": "Email",
          "name": "email",
          "type": "string",
          "placeholder": "name@email.com",
          "default": "",
          "description": "The user's primary email address"
        },
        {
          "displayName": "External ID",
          "name": "external_id",
          "type": "string",
          "default": "",
          "description": "A unique identifier from another system"
        },
        {
          "displayName": "Locale",
          "name": "locale",
          "type": "options",
          "typeOptions": {
            "loadOptionsMethod": "getLocales"
          },
          "default": "",
          "description": "The user's locale. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        },
        {
          "displayName": "Moderator",
          "name": "moderator",
          "type": "boolean",
          "default": false,
          "description": "Whether the user has forum moderation capabilities"
        },
        {
          "displayName": "Name",
          "name": "name",
          "type": "string",
          "default": "",
          "description": "The user's name"
        },
        {
          "displayName": "Notes",
          "name": "notes",
          "type": "string",
          "default": "",
          "description": "Any notes you want to store about the user"
        },
        {
          "displayName": "Only Private Comments",
          "name": "only_private_comments",
          "type": "boolean",
          "default": false,
          "description": "Whether the user can only create private comments"
        },
        {
          "displayName": "Organization Name or ID",
          "name": "organization_id",
          "typeOptions": {
            "loadOptionsMethod": "getOrganizations"
          },
          "type": "options",
          "default": "",
          "description": "The ID of the user's organization. If the user has more than one organization memberships, the ID of the user's default organization. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        },
        {
          "displayName": "Phone",
          "name": "phone",
          "type": "string",
          "default": "",
          "description": "The user's primary phone number"
        },
        {
          "displayName": "Report CSV",
          "name": "report_csv",
          "type": "boolean",
          "default": false,
          "description": "Whether or not the user can access the CSV report on the Search tab of the Reporting page in the Support admin interface"
        },
        {
          "displayName": "Restricted Agent",
          "name": "restricted_agent",
          "type": "boolean",
          "default": false,
          "description": "Whether the agent has any restrictions; false for admins and unrestricted agents, true for other agents"
        },
        {
          "displayName": "Role",
          "name": "role",
          "type": "options",
          "options": [
            {
              "name": "End User",
              "value": "end-user"
            },
            {
              "name": "Agent",
              "value": "agent"
            },
            {
              "name": "Admin",
              "value": "admin"
            }
          ],
          "default": "",
          "description": "The user's role"
        },
        {
          "displayName": "Signature",
          "name": "signature",
          "type": "string",
          "default": "",
          "description": "The user's signature. Only agents and admins can have signatures."
        },
        {
          "displayName": "Suspended",
          "name": "suspended",
          "type": "boolean",
          "default": false,
          "description": "Whether the agent is suspended. Tickets from suspended users are also suspended, and these users cannot sign in to the end user portal."
        },
        {
          "displayName": "Tag Names or IDs",
          "name": "tags",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getTags"
          },
          "default": [],
          "description": "The array of tags applied to this user. Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        },
        {
          "displayName": "Ticket Restriction",
          "name": "ticket_restriction",
          "type": "options",
          "options": [
            {
              "name": "Organization",
              "value": "organization"
            },
            {
              "name": "Groups",
              "value": "groups"
            },
            {
              "name": "Assigned",
              "value": "assigned"
            },
            {
              "name": "Requested",
              "value": "requested"
            }
          ],
          "default": "",
          "description": "Specifies which tickets the user has access to"
        },
        {
          "displayName": "Timezone",
          "name": "time_zone",
          "type": "string",
          "default": "",
          "description": "The user's time zone"
        },
        {
          "displayName": "User Fields",
          "name": "userFieldsUi",
          "placeholder": "Add User Field",
          "description": "Values of custom fields in the user's profile",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "default": {},
          "options": [
            {
              "name": "userFieldValues",
              "displayName": "Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "field",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getUserFields"
                  },
                  "default": "",
                  "description": "Name of the field to sort on. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value of the field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Verified",
          "name": "verified",
          "type": "boolean",
          "default": false,
          "description": "Whether the user's primary identity is verified or not"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "User ID",
      "name": "id",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 100
      }
    },
    {
      "displayName": "Filters",
      "name": "filters",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Roles",
          "name": "role",
          "type": "multiOptions",
          "options": [
            {
              "name": "End User",
              "value": "end-user"
            },
            {
              "name": "Agent",
              "value": "agent"
            },
            {
              "name": "Admin",
              "value": "admin"
            }
          ],
          "default": []
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "search"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "search"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 100
      }
    },
    {
      "displayName": "Filters",
      "name": "filters",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Query",
          "name": "query",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "External ID",
          "name": "external_id",
          "type": "string",
          "default": ""
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "search"
          ]
        }
      }
    },
    {
      "displayName": "User ID",
      "name": "id",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    },
    {
      "displayName": "User ID",
      "name": "id",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "getRelatedData"
          ]
        }
      }
    },
    {
      "displayName": "User ID",
      "name": "id",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "getOrganizations"
          ]
        }
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Count",
          "value": "count",
          "description": "Count organizations",
          "action": "Count organizations"
        },
        {
          "name": "Create",
          "value": "create",
          "description": "Create an organization",
          "action": "Create an organization"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete an organization",
          "action": "Delete an organization"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get an organization",
          "action": "Get an organization"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many organizations",
          "action": "Get many organizations"
        },
        {
          "name": "Get Related Data",
          "value": "getRelatedData",
          "description": "Get data related to the organization",
          "action": "Get data related to an organization"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update a organization",
          "action": "Update an organization"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Name",
      "name": "name",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Details",
          "name": "details",
          "type": "string",
          "default": "",
          "description": "Details about the organization, such as the address"
        },
        {
          "displayName": "Domain Names",
          "name": "domain_names",
          "type": "string",
          "default": "",
          "description": "Comma-separated domain names associated with this organization"
        },
        {
          "displayName": "Notes",
          "name": "notes",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Organization Fields",
          "name": "organizationFieldsUi",
          "placeholder": "Add Organization Field",
          "description": "Values of custom fields in the organization's profile",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "default": {},
          "options": [
            {
              "name": "organizationFieldValues",
              "displayName": "Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "field",
                  "type": "options",
                  "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
                  "typeOptions": {
                    "loadOptionsMethod": "getOrganizationFields"
                  },
                  "default": ""
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Tag Names or IDs",
          "name": "tags",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getTags"
          },
          "default": [],
          "description": "IDs of tags applied to this organization. Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Organization ID",
      "name": "id",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Details",
          "name": "details",
          "type": "string",
          "default": "",
          "description": "Details about the organization, such as the address"
        },
        {
          "displayName": "Domain Names",
          "name": "domain_names",
          "type": "string",
          "default": "",
          "description": "Comma-separated domain names associated with this organization"
        },
        {
          "displayName": "Name",
          "name": "name",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Notes",
          "name": "notes",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Organization Fields",
          "name": "organizationFieldsUi",
          "placeholder": "Add Organization Field",
          "description": "Values of custom fields in the organization's profile",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "default": {},
          "options": [
            {
              "name": "organizationFieldValues",
              "displayName": "Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "field",
                  "type": "options",
                  "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
                  "typeOptions": {
                    "loadOptionsMethod": "getOrganizationFields"
                  },
                  "default": ""
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Tag Names or IDs",
          "name": "tags",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getTags"
          },
          "default": [],
          "description": "IDs of tags applied to this organization. Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Organization ID",
      "name": "id",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 100
      }
    },
    {
      "displayName": "Organization ID",
      "name": "id",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    },
    {
      "displayName": "Organization ID",
      "name": "id",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "getRelatedData"
          ]
        }
      }
    }
  ]

operations:
  [
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a ticket",
      "resource": "ticket"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a ticket",
      "resource": "ticket"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get a ticket",
      "resource": "ticket"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many tickets",
      "resource": "ticket"
    },
    {
      "operation": "recover",
      "name": "Recover",
      "description": "Recover a suspended ticket",
      "resource": "ticket"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update a ticket",
      "resource": "ticket"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get a ticket field",
      "resource": "ticketField"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many system and custom ticket fields",
      "resource": "ticketField"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a user",
      "resource": "user"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a user",
      "resource": "user"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get a user",
      "resource": "user"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many users",
      "resource": "user"
    },
    {
      "operation": "getOrganizations",
      "name": "Get Organizations",
      "description": "Get a user's organizations",
      "resource": "user"
    },
    {
      "operation": "getRelatedData",
      "name": "Get Related Data",
      "description": "Get data related to the user",
      "resource": "user"
    },
    {
      "operation": "search",
      "name": "Search",
      "description": "Search users",
      "resource": "user"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update a user",
      "resource": "user"
    },
    {
      "operation": "count",
      "name": "Count",
      "description": "Count organizations",
      "resource": "organization"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create an organization",
      "resource": "organization"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete an organization",
      "resource": "organization"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get an organization",
      "resource": "organization"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many organizations",
      "resource": "organization"
    },
    {
      "operation": "getRelatedData",
      "name": "Get Related Data",
      "description": "Get data related to the organization",
      "resource": "organization"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update a organization",
      "resource": "organization"
    }
  ]

credentials_required:
  [
    {
      "name": "zendeskApi",
      "required": true,
      "displayOptions": {
        "show": {
          "authentication": [
            "apiToken"
          ]
        }
      }
    },
    {
      "name": "zendeskOAuth2Api",
      "required": true,
      "displayOptions": {
        "show": {
          "authentication": [
            "oAuth2"
          ]
        }
      }
    }
  ]


node_type: nodes-base.zendesk
package_name: n8n-nodes-base
display_name: Zendesk
description: Consume Zendesk API
category: output
development_style: programmatic
version: 1
outputs:
  [
  "main"
  ]

updated_at: 2026-03-30 13:12:50
documentation:
  ---
  #https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
  title: Zendesk node documentation
  description: Learn how to use the Zendesk node in n8n. Follow technical documentation to integrate Zendesk node into your workflows.
  contentType: [integration, reference]
  ---

  # Zendesk node

  Use the Zendesk node to automate work in Zendesk, and integrate Zendesk with other applications. n8n has built-in support for a wide range of Zendesk features, including creating, and deleting tickets, users, and organizations. 

  On this page, you'll find a list of operations the Zendesk node supports and links to more resources.

  /// note | Credentials
  Refer to [Zendesk credentials](/integrations/builtin/credentials/zendesk.md) for guidance on setting up authentication. 
  ///

  --8<-- "_snippets/integrations/builtin/app-nodes/ai-tools.md"

  ## Operations

  * Ticket
      * Create a ticket
      * Delete a ticket
      * Get a ticket
      * Get all tickets
      * Recover a suspended ticket
      * Update a ticket
  * Ticket Field
      * Get a ticket field
      * Get all system and custom ticket fields
  * User
      * Create a user
      * Delete a user
      * Get a user
      * Get all users
      * Get a user's organizations
      * Get data related to the user
      * Search users
      * Update a user
  * Organization
      * Create an organization
      * Delete an organization
      * Count organizations
      * Get an organization
      * Get all organizations
      * Get data related to the organization
      * Update a organization

  ## Templates and examples

  <!-- see https://www.notion.so/n8n/Pull-in-templates-for-the-integrations-pages-37c716837b804d30a33b47475f6e3780 -->
  [[ templatesWidget(page.title, 'zendesk') ]]

  --8<-- "_snippets/integrations/builtin/app-nodes/operation-not-supported.md"

properties_schema:
  [
    {
      "displayName": "Authentication",
      "name": "authentication",
      "type": "options",
      "default": "apiToken",
      "options": [
        {
          "name": "API Token",
          "value": "apiToken"
        },
        {
          "name": "OAuth2",
          "value": "oAuth2"
        }
      ]
    },
    {
      "displayName": "Resource",
      "name": "resource",
      "type": "options",
      "default": "ticket",
      "options": [
        {
          "name": "Ticket",
          "value": "ticket",
          "description": "Tickets are the means through which your end users (customers) communicate with agents in Zendesk Support"
        },
        {
          "name": "Ticket Field",
          "value": "ticketField",
          "description": "Manage system and custom ticket fields"
        },
        {
          "name": "User",
          "value": "user",
          "description": "Manage users"
        },
        {
          "name": "Organization",
          "value": "organization",
          "description": "Manage organizations"
        }
      ],
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a ticket",
          "action": "Create a ticket"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a ticket",
          "action": "Delete a ticket"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get a ticket",
          "action": "Get a ticket"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many tickets",
          "action": "Get many tickets"
        },
        {
          "name": "Recover",
          "value": "recover",
          "description": "Recover a suspended ticket",
          "action": "Recover a ticket"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update a ticket",
          "action": "Update a ticket"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Description",
      "name": "description",
      "type": "string",
      "default": "",
      "description": "The first comment on the ticket",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "JSON Parameters",
      "name": "jsonParameters",
      "type": "boolean",
      "default": false,
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Custom Fields",
          "name": "customFieldsUi",
          "placeholder": "Add Custom Field",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "default": {},
          "options": [
            {
              "displayName": "Custom Field",
              "name": "customFieldsValues",
              "values": [
                {
                  "displayName": "Name or ID",
                  "name": "id",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getCustomFields"
                  },
                  "default": "",
                  "description": "Custom field ID. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Custom field Value"
                }
              ]
            }
          ]
        },
        {
          "displayName": "External ID",
          "name": "externalId",
          "type": "string",
          "default": "",
          "description": "An ID you can use to link Zendesk Support tickets to local records"
        },
        {
          "displayName": "Group Name or ID",
          "name": "group",
          "type": "options",
          "typeOptions": {
            "loadOptionsMethod": "getGroups"
          },
          "default": "",
          "description": "The group this ticket is assigned to. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        },
        {
          "displayName": "Recipient",
          "name": "recipient",
          "type": "string",
          "default": "",
          "description": "The original recipient e-mail address of the ticket"
        },
        {
          "displayName": "Status",
          "name": "status",
          "type": "options",
          "options": [
            {
              "name": "Closed",
              "value": "closed"
            },
            {
              "name": "New",
              "value": "new"
            },
            {
              "name": "On-Hold",
              "value": "hold"
            },
            {
              "name": "Open",
              "value": "open"
            },
            {
              "name": "Pending",
              "value": "pending"
            },
            {
              "name": "Solved",
              "value": "solved"
            }
          ],
          "default": "",
          "description": "The state of the ticket"
        },
        {
          "displayName": "Subject",
          "name": "subject",
          "type": "string",
          "default": "",
          "description": "The value of the subject field for this ticket"
        },
        {
          "displayName": "Tag Names or IDs",
          "name": "tags",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getTags"
          },
          "default": [],
          "description": "The array of tags applied to this ticket. Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        },
        {
          "displayName": "Type",
          "name": "type",
          "type": "options",
          "options": [
            {
              "name": "Question",
              "value": "question"
            },
            {
              "name": "Incident",
              "value": "incident"
            },
            {
              "name": "Problem",
              "value": "problem"
            },
            {
              "name": "Task",
              "value": "task"
            }
          ],
          "default": "",
          "description": "The type of this ticket"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "create"
          ],
          "jsonParameters": [
            false
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFieldsJson",
      "type": "json",
      "default": "",
      "description": "Object of values to set as described <a href=\"https://developer.zendesk.com/rest_api/docs/support/tickets\">here</a>",
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "create"
          ],
          "jsonParameters": [
            true
          ]
        }
      },
      "typeOptions": {
        "alwaysOpenEditWindow": true
      }
    },
    {
      "displayName": "Ticket ID",
      "name": "id",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "JSON Parameters",
      "name": "jsonParameters",
      "type": "boolean",
      "default": false,
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Assignee Email",
          "name": "assigneeEmail",
          "type": "string",
          "default": "",
          "description": "The e-mail address of the assignee"
        },
        {
          "displayName": "Custom Fields",
          "name": "customFieldsUi",
          "placeholder": "Add Custom Field",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "default": {},
          "options": [
            {
              "displayName": "Custom Field",
              "name": "customFieldsValues",
              "values": [
                {
                  "displayName": "Name or ID",
                  "name": "id",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getCustomFields"
                  },
                  "default": "",
                  "description": "Custom field ID. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Custom field Value"
                }
              ]
            }
          ]
        },
        {
          "displayName": "External ID",
          "name": "externalId",
          "type": "string",
          "default": "",
          "description": "An ID you can use to link Zendesk Support tickets to local records"
        },
        {
          "displayName": "Group Name or ID",
          "name": "group",
          "type": "options",
          "typeOptions": {
            "loadOptionsMethod": "getGroups"
          },
          "default": "",
          "description": "The group this ticket is assigned to. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        },
        {
          "displayName": "Internal Note",
          "name": "internalNote",
          "type": "string",
          "default": "",
          "description": "Internal Ticket Note (Accepts HTML)"
        },
        {
          "displayName": "Public Reply",
          "name": "publicReply",
          "type": "string",
          "default": "",
          "description": "Public ticket reply"
        },
        {
          "displayName": "Recipient",
          "name": "recipient",
          "type": "string",
          "default": "",
          "description": "The original recipient e-mail address of the ticket"
        },
        {
          "displayName": "Status",
          "name": "status",
          "type": "options",
          "options": [
            {
              "name": "Closed",
              "value": "closed"
            },
            {
              "name": "New",
              "value": "new"
            },
            {
              "name": "On-Hold",
              "value": "hold"
            },
            {
              "name": "Open",
              "value": "open"
            },
            {
              "name": "Pending",
              "value": "pending"
            },
            {
              "name": "Solved",
              "value": "solved"
            }
          ],
          "default": "",
          "description": "The state of the ticket"
        },
        {
          "displayName": "Subject",
          "name": "subject",
          "type": "string",
          "default": "",
          "description": "The value of the subject field for this ticket"
        },
        {
          "displayName": "Tag Names or IDs",
          "name": "tags",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getTags"
          },
          "default": [],
          "description": "The array of tags applied to this ticket. Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        },
        {
          "displayName": "Type",
          "name": "type",
          "type": "options",
          "options": [
            {
              "name": "Question",
              "value": "question"
            },
            {
              "name": "Incident",
              "value": "incident"
            },
            {
              "name": "Problem",
              "value": "problem"
            },
            {
              "name": "Task",
              "value": "task"
            }
          ],
          "default": "",
          "description": "The type of this ticket"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "update"
          ],
          "jsonParameters": [
            false
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFieldsJson",
      "type": "json",
      "default": "",
      "description": "Object of values to update as described <a href=\"https://developer.zendesk.com/rest_api/docs/support/tickets\">here</a>",
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "update"
          ],
          "jsonParameters": [
            true
          ]
        }
      },
      "typeOptions": {
        "alwaysOpenEditWindow": true
      }
    },
    {
      "displayName": "Ticket Type",
      "name": "ticketType",
      "type": "options",
      "default": "regular",
      "options": [
        {
          "name": "Regular",
          "value": "regular"
        },
        {
          "name": "Suspended",
          "value": "suspended"
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "get",
            "delete",
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Ticket ID",
      "name": "id",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "get"
          ],
          "ticketType": [
            "regular"
          ]
        }
      }
    },
    {
      "displayName": "Suspended Ticket ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "Ticket ID",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "get"
          ],
          "ticketType": [
            "suspended"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 100
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Group Name or ID",
          "name": "group",
          "type": "options",
          "typeOptions": {
            "loadOptionsMethod": "getGroups"
          },
          "displayOptions": {
            "show": {
              "/ticketType": [
                "regular"
              ]
            }
          },
          "default": "",
          "description": "The group to search. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        },
        {
          "displayName": "Query",
          "name": "query",
          "type": "string",
          "displayOptions": {
            "show": {
              "/ticketType": [
                "regular"
              ]
            }
          },
          "default": "",
          "description": "<a href=\"https://developer.zendesk.com/api-reference/ticketing/ticket-management/search/#syntax-examples\">Query syntax</a> to search tickets"
        },
        {
          "displayName": "Sort By",
          "name": "sortBy",
          "type": "options",
          "options": [
            {
              "name": "Created At",
              "value": "created_at"
            },
            {
              "name": "Priority",
              "value": "priority"
            },
            {
              "name": "Status",
              "value": "status"
            },
            {
              "name": "Ticket Type",
              "value": "ticket_type"
            },
            {
              "name": "Updated At",
              "value": "updated_at"
            }
          ],
          "default": "updated_at",
          "description": "Defaults to sorting by relevance"
        },
        {
          "displayName": "Sort Order",
          "name": "sortOrder",
          "type": "options",
          "options": [
            {
              "name": "Ascending",
              "value": "asc"
            },
            {
              "name": "Descending",
              "value": "desc"
            }
          ],
          "default": "asc"
        },
        {
          "displayName": "Status",
          "name": "status",
          "type": "options",
          "displayOptions": {
            "show": {
              "/ticketType": [
                "regular"
              ]
            }
          },
          "options": [
            {
              "name": "Closed",
              "value": "closed"
            },
            {
              "name": "New",
              "value": "new"
            },
            {
              "name": "On-Hold",
              "value": "hold"
            },
            {
              "name": "Open",
              "value": "open"
            },
            {
              "name": "Pending",
              "value": "pending"
            },
            {
              "name": "Solved",
              "value": "solved"
            }
          ],
          "default": "",
          "description": "The state of the ticket"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Ticket ID",
      "name": "id",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "delete"
          ],
          "ticketType": [
            "regular"
          ]
        }
      }
    },
    {
      "displayName": "Suspended Ticket ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "Ticket ID",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "delete"
          ],
          "ticketType": [
            "suspended"
          ]
        }
      }
    },
    {
      "displayName": "Suspended Ticket ID",
      "name": "id",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "ticket"
          ],
          "operation": [
            "recover"
          ]
        }
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "get",
      "options": [
        {
          "name": "Get",
          "value": "get",
          "description": "Get a ticket field",
          "action": "Get a ticket field"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many system and custom ticket fields",
          "action": "Get many ticket fields"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "ticketField"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Ticket Field ID",
      "name": "ticketFieldId",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "ticketField"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "ticketField"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "ticketField"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 100
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a user",
          "action": "Create a user"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a user",
          "action": "Delete a user"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get a user",
          "action": "Get a user"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many users",
          "action": "Get many users"
        },
        {
          "name": "Get Organizations",
          "value": "getOrganizations",
          "description": "Get a user's organizations",
          "action": "Get a user's organizations"
        },
        {
          "name": "Get Related Data",
          "value": "getRelatedData",
          "description": "Get data related to the user",
          "action": "Get data related to a user"
        },
        {
          "name": "Search",
          "value": "search",
          "description": "Search users",
          "action": "Search a user"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update a user",
          "action": "Update a user"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Name",
      "name": "name",
      "type": "string",
      "default": "",
      "description": "The user's name",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Alias",
          "name": "alias",
          "type": "string",
          "default": "",
          "description": "An alias displayed to end users"
        },
        {
          "displayName": "Custom Role ID",
          "name": "custom_role_id",
          "type": "number",
          "default": 0,
          "description": "A custom role if the user is an agent on the Enterprise plan"
        },
        {
          "displayName": "Details",
          "name": "details",
          "type": "string",
          "default": "",
          "description": "Any details you want to store about the user, such as an address"
        },
        {
          "displayName": "Email",
          "name": "email",
          "type": "string",
          "placeholder": "name@email.com",
          "default": "",
          "description": "The user's primary email address"
        },
        {
          "displayName": "External ID",
          "name": "external_id",
          "type": "string",
          "default": "",
          "description": "A unique identifier from another system"
        },
        {
          "displayName": "Locale",
          "name": "locale",
          "type": "options",
          "typeOptions": {
            "loadOptionsMethod": "getLocales"
          },
          "default": "",
          "description": "The user's locale. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        },
        {
          "displayName": "Moderator",
          "name": "moderator",
          "type": "boolean",
          "default": false,
          "description": "Whether the user has forum moderation capabilities"
        },
        {
          "displayName": "Notes",
          "name": "notes",
          "type": "string",
          "default": "",
          "description": "Any notes you want to store about the user"
        },
        {
          "displayName": "Only Private Comments",
          "name": "only_private_comments",
          "type": "boolean",
          "default": false,
          "description": "Whether the user can only create private comments"
        },
        {
          "displayName": "Organization Name or ID",
          "name": "organization_id",
          "typeOptions": {
            "loadOptionsMethod": "getOrganizations"
          },
          "type": "options",
          "default": "",
          "description": "The ID of the user's organization. If the user has more than one organization memberships, the ID of the user's default organization. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        },
        {
          "displayName": "Phone",
          "name": "phone",
          "type": "string",
          "default": "",
          "description": "The user's primary phone number"
        },
        {
          "displayName": "Report CSV",
          "name": "report_csv",
          "type": "boolean",
          "default": false,
          "description": "Whether or not the user can access the CSV report on the Search tab of the Reporting page in the Support admin interface"
        },
        {
          "displayName": "Restricted Agent",
          "name": "restricted_agent",
          "type": "boolean",
          "default": false,
          "description": "Whether the agent has any restrictions; false for admins and unrestricted agents, true for other agents"
        },
        {
          "displayName": "Role",
          "name": "role",
          "type": "options",
          "options": [
            {
              "name": "End User",
              "value": "end-user"
            },
            {
              "name": "Agent",
              "value": "agent"
            },
            {
              "name": "Admin",
              "value": "admin"
            }
          ],
          "default": "",
          "description": "The user's role"
        },
        {
          "displayName": "Signature",
          "name": "signature",
          "type": "string",
          "default": "",
          "description": "The user's signature. Only agents and admins can have signatures."
        },
        {
          "displayName": "Suspended",
          "name": "suspended",
          "type": "boolean",
          "default": false,
          "description": "Whether the agent is suspended. Tickets from suspended users are also suspended, and these users cannot sign in to the end user portal."
        },
        {
          "displayName": "Tag Names or IDs",
          "name": "tags",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getTags"
          },
          "default": [],
          "description": "The array of tags applied to this user. Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        },
        {
          "displayName": "Ticket Restriction",
          "name": "ticket_restriction",
          "type": "options",
          "options": [
            {
              "name": "Organization",
              "value": "organization"
            },
            {
              "name": "Groups",
              "value": "groups"
            },
            {
              "name": "Assigned",
              "value": "assigned"
            },
            {
              "name": "Requested",
              "value": "requested"
            }
          ],
          "default": "",
          "description": "Specifies which tickets the user has access to"
        },
        {
          "displayName": "Timezone",
          "name": "time_zone",
          "type": "string",
          "default": "",
          "description": "The user's time zone"
        },
        {
          "displayName": "User Fields",
          "name": "userFieldsUi",
          "placeholder": "Add User Field",
          "description": "Values of custom fields in the user's profile",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "default": {},
          "options": [
            {
              "name": "userFieldValues",
              "displayName": "Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "field",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getUserFields"
                  },
                  "default": "",
                  "description": "Name of the field to sort on. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value of the field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Verified",
          "name": "verified",
          "type": "boolean",
          "default": false,
          "description": "Whether the user's primary identity is verified or not"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "User ID",
      "name": "id",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Alias",
          "name": "alias",
          "type": "string",
          "default": "",
          "description": "An alias displayed to end users"
        },
        {
          "displayName": "Custom Role ID",
          "name": "custom_role_id",
          "type": "number",
          "default": 0,
          "description": "A custom role if the user is an agent on the Enterprise plan"
        },
        {
          "displayName": "Details",
          "name": "details",
          "type": "string",
          "default": "",
          "description": "Any details you want to store about the user, such as an address"
        },
        {
          "displayName": "Email",
          "name": "email",
          "type": "string",
          "placeholder": "name@email.com",
          "default": "",
          "description": "The user's primary email address"
        },
        {
          "displayName": "External ID",
          "name": "external_id",
          "type": "string",
          "default": "",
          "description": "A unique identifier from another system"
        },
        {
          "displayName": "Locale",
          "name": "locale",
          "type": "options",
          "typeOptions": {
            "loadOptionsMethod": "getLocales"
          },
          "default": "",
          "description": "The user's locale. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        },
        {
          "displayName": "Moderator",
          "name": "moderator",
          "type": "boolean",
          "default": false,
          "description": "Whether the user has forum moderation capabilities"
        },
        {
          "displayName": "Name",
          "name": "name",
          "type": "string",
          "default": "",
          "description": "The user's name"
        },
        {
          "displayName": "Notes",
          "name": "notes",
          "type": "string",
          "default": "",
          "description": "Any notes you want to store about the user"
        },
        {
          "displayName": "Only Private Comments",
          "name": "only_private_comments",
          "type": "boolean",
          "default": false,
          "description": "Whether the user can only create private comments"
        },
        {
          "displayName": "Organization Name or ID",
          "name": "organization_id",
          "typeOptions": {
            "loadOptionsMethod": "getOrganizations"
          },
          "type": "options",
          "default": "",
          "description": "The ID of the user's organization. If the user has more than one organization memberships, the ID of the user's default organization. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        },
        {
          "displayName": "Phone",
          "name": "phone",
          "type": "string",
          "default": "",
          "description": "The user's primary phone number"
        },
        {
          "displayName": "Report CSV",
          "name": "report_csv",
          "type": "boolean",
          "default": false,
          "description": "Whether or not the user can access the CSV report on the Search tab of the Reporting page in the Support admin interface"
        },
        {
          "displayName": "Restricted Agent",
          "name": "restricted_agent",
          "type": "boolean",
          "default": false,
          "description": "Whether the agent has any restrictions; false for admins and unrestricted agents, true for other agents"
        },
        {
          "displayName": "Role",
          "name": "role",
          "type": "options",
          "options": [
            {
              "name": "End User",
              "value": "end-user"
            },
            {
              "name": "Agent",
              "value": "agent"
            },
            {
              "name": "Admin",
              "value": "admin"
            }
          ],
          "default": "",
          "description": "The user's role"
        },
        {
          "displayName": "Signature",
          "name": "signature",
          "type": "string",
          "default": "",
          "description": "The user's signature. Only agents and admins can have signatures."
        },
        {
          "displayName": "Suspended",
          "name": "suspended",
          "type": "boolean",
          "default": false,
          "description": "Whether the agent is suspended. Tickets from suspended users are also suspended, and these users cannot sign in to the end user portal."
        },
        {
          "displayName": "Tag Names or IDs",
          "name": "tags",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getTags"
          },
          "default": [],
          "description": "The array of tags applied to this user. Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        },
        {
          "displayName": "Ticket Restriction",
          "name": "ticket_restriction",
          "type": "options",
          "options": [
            {
              "name": "Organization",
              "value": "organization"
            },
            {
              "name": "Groups",
              "value": "groups"
            },
            {
              "name": "Assigned",
              "value": "assigned"
            },
            {
              "name": "Requested",
              "value": "requested"
            }
          ],
          "default": "",
          "description": "Specifies which tickets the user has access to"
        },
        {
          "displayName": "Timezone",
          "name": "time_zone",
          "type": "string",
          "default": "",
          "description": "The user's time zone"
        },
        {
          "displayName": "User Fields",
          "name": "userFieldsUi",
          "placeholder": "Add User Field",
          "description": "Values of custom fields in the user's profile",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "default": {},
          "options": [
            {
              "name": "userFieldValues",
              "displayName": "Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "field",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getUserFields"
                  },
                  "default": "",
                  "description": "Name of the field to sort on. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value of the field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Verified",
          "name": "verified",
          "type": "boolean",
          "default": false,
          "description": "Whether the user's primary identity is verified or not"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "User ID",
      "name": "id",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 100
      }
    },
    {
      "displayName": "Filters",
      "name": "filters",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Roles",
          "name": "role",
          "type": "multiOptions",
          "options": [
            {
              "name": "End User",
              "value": "end-user"
            },
            {
              "name": "Agent",
              "value": "agent"
            },
            {
              "name": "Admin",
              "value": "admin"
            }
          ],
          "default": []
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "search"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "search"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 100
      }
    },
    {
      "displayName": "Filters",
      "name": "filters",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Query",
          "name": "query",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "External ID",
          "name": "external_id",
          "type": "string",
          "default": ""
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "search"
          ]
        }
      }
    },
    {
      "displayName": "User ID",
      "name": "id",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    },
    {
      "displayName": "User ID",
      "name": "id",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "getRelatedData"
          ]
        }
      }
    },
    {
      "displayName": "User ID",
      "name": "id",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "user"
          ],
          "operation": [
            "getOrganizations"
          ]
        }
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Count",
          "value": "count",
          "description": "Count organizations",
          "action": "Count organizations"
        },
        {
          "name": "Create",
          "value": "create",
          "description": "Create an organization",
          "action": "Create an organization"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete an organization",
          "action": "Delete an organization"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get an organization",
          "action": "Get an organization"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many organizations",
          "action": "Get many organizations"
        },
        {
          "name": "Get Related Data",
          "value": "getRelatedData",
          "description": "Get data related to the organization",
          "action": "Get data related to an organization"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update a organization",
          "action": "Update an organization"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Name",
      "name": "name",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Details",
          "name": "details",
          "type": "string",
          "default": "",
          "description": "Details about the organization, such as the address"
        },
        {
          "displayName": "Domain Names",
          "name": "domain_names",
          "type": "string",
          "default": "",
          "description": "Comma-separated domain names associated with this organization"
        },
        {
          "displayName": "Notes",
          "name": "notes",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Organization Fields",
          "name": "organizationFieldsUi",
          "placeholder": "Add Organization Field",
          "description": "Values of custom fields in the organization's profile",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "default": {},
          "options": [
            {
              "name": "organizationFieldValues",
              "displayName": "Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "field",
                  "type": "options",
                  "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
                  "typeOptions": {
                    "loadOptionsMethod": "getOrganizationFields"
                  },
                  "default": ""
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Tag Names or IDs",
          "name": "tags",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getTags"
          },
          "default": [],
          "description": "IDs of tags applied to this organization. Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Organization ID",
      "name": "id",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Details",
          "name": "details",
          "type": "string",
          "default": "",
          "description": "Details about the organization, such as the address"
        },
        {
          "displayName": "Domain Names",
          "name": "domain_names",
          "type": "string",
          "default": "",
          "description": "Comma-separated domain names associated with this organization"
        },
        {
          "displayName": "Name",
          "name": "name",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Notes",
          "name": "notes",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Organization Fields",
          "name": "organizationFieldsUi",
          "placeholder": "Add Organization Field",
          "description": "Values of custom fields in the organization's profile",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "default": {},
          "options": [
            {
              "name": "organizationFieldValues",
              "displayName": "Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "field",
                  "type": "options",
                  "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
                  "typeOptions": {
                    "loadOptionsMethod": "getOrganizationFields"
                  },
                  "default": ""
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Tag Names or IDs",
          "name": "tags",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getTags"
          },
          "default": [],
          "description": "IDs of tags applied to this organization. Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Organization ID",
      "name": "id",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 100
      }
    },
    {
      "displayName": "Organization ID",
      "name": "id",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    },
    {
      "displayName": "Organization ID",
      "name": "id",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "organization"
          ],
          "operation": [
            "getRelatedData"
          ]
        }
      }
    }
  ]

operations:
  [
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a ticket",
      "resource": "ticket"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a ticket",
      "resource": "ticket"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get a ticket",
      "resource": "ticket"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many tickets",
      "resource": "ticket"
    },
    {
      "operation": "recover",
      "name": "Recover",
      "description": "Recover a suspended ticket",
      "resource": "ticket"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update a ticket",
      "resource": "ticket"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get a ticket field",
      "resource": "ticketField"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many system and custom ticket fields",
      "resource": "ticketField"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a user",
      "resource": "user"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a user",
      "resource": "user"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get a user",
      "resource": "user"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many users",
      "resource": "user"
    },
    {
      "operation": "getOrganizations",
      "name": "Get Organizations",
      "description": "Get a user's organizations",
      "resource": "user"
    },
    {
      "operation": "getRelatedData",
      "name": "Get Related Data",
      "description": "Get data related to the user",
      "resource": "user"
    },
    {
      "operation": "search",
      "name": "Search",
      "description": "Search users",
      "resource": "user"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update a user",
      "resource": "user"
    },
    {
      "operation": "count",
      "name": "Count",
      "description": "Count organizations",
      "resource": "organization"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create an organization",
      "resource": "organization"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete an organization",
      "resource": "organization"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get an organization",
      "resource": "organization"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many organizations",
      "resource": "organization"
    },
    {
      "operation": "getRelatedData",
      "name": "Get Related Data",
      "description": "Get data related to the organization",
      "resource": "organization"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update a organization",
      "resource": "organization"
    }
  ]

credentials_required:
  [
    {
      "name": "zendeskApi",
      "required": true,
      "displayOptions": {
        "show": {
          "authentication": [
            "apiToken"
          ]
        }
      }
    },
    {
      "name": "zendeskOAuth2Api",
      "required": true,
      "displayOptions": {
        "show": {
          "authentication": [
            "oAuth2"
          ]
        }
      }
    }
  ]


node_type: nodes-base.zendeskTrigger
package_name: n8n-nodes-base
display_name: Zendesk Trigger
description: Handle Zendesk events via webhooks
category: trigger
development_style: programmatic
version: 1
operations: []
outputs:
  [
  "main"
  ]

updated_at: 2026-03-30 13:12:50
documentation:
  ---
  #https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
  title: Zendesk Trigger node documentation
  description: Learn how to use the Zendesk Trigger node in n8n. Follow technical documentation to integrate Zendesk Trigger node into your workflows.
  contentType: [integration, reference]
  ---

  # Zendesk Trigger node

  [Zendesk](https://www.zendesk.com/){:target=_blank .external-link} is a support ticketing system, designed to help track, prioritize, and solve customer support interactions. More than just a help desk, Zendesk Support helps nurture customer relationships with personalized, responsive support across any channel.

  /// note | Credentials
  You can find authentication information for this node [here](/integrations/builtin/credentials/zendesk.md).
  ///

  ///  note  | Examples and templates
  For usage examples and templates to help you get started, refer to n8n's [Zendesk Trigger integrations](https://n8n.io/integrations/zendesk-trigger/){:target=_blank .external-link} page.
  ///

properties_schema:
  [
    {
      "displayName": "Authentication",
      "name": "authentication",
      "type": "options",
      "default": "apiToken",
      "options": [
        {
          "name": "API Token",
          "value": "apiToken"
        },
        {
          "name": "OAuth2",
          "value": "oAuth2"
        }
      ]
    },
    {
      "displayName": "Service",
      "name": "service",
      "type": "options",
      "default": "support",
      "options": [
        {
          "name": "Support",
          "value": "support"
        }
      ],
      "required": true
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Field Names or IDs",
          "name": "fields",
          "description": "The fields to return the values of. Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
          "type": "multiOptions",
          "default": [],
          "typeOptions": {
            "loadOptionsMethod": "getFields"
          }
        }
      ],
      "displayOptions": {
        "show": {
          "service": [
            "support"
          ]
        }
      }
    },
    {
      "displayName": "Conditions",
      "name": "conditions",
      "type": "fixedCollection",
      "default": {},
      "description": "The condition to set",
      "options": [
        {
          "name": "all",
          "displayName": "All",
          "values": [
            {
              "displayName": "Resource",
              "name": "resource",
              "type": "options",
              "noDataExpression": true,
              "options": [
                {
                  "name": "Ticket",
                  "value": "ticket"
                }
              ],
              "default": "ticket"
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "displayOptions": {
                "show": {
                  "resource": [
                    "ticket"
                  ]
                }
              },
              "options": [
                {
                  "name": "Assignee",
                  "value": "assignee"
                },
                {
                  "name": "Group",
                  "value": "group"
                },
                {
                  "name": "Priority",
                  "value": "priority"
                },
                {
                  "name": "Status",
                  "value": "status"
                },
                {
                  "name": "Type",
                  "value": "type"
                }
              ],
              "default": "status"
            },
            {
              "displayName": "Operation",
              "name": "operation",
              "type": "options",
              "options": [
                {
                  "name": "Changed",
                  "value": "changed"
                },
                {
                  "name": "Changed From",
                  "value": "value_previous"
                },
                {
                  "name": "Changed To",
                  "value": "value"
                },
                {
                  "name": "Greater Than",
                  "value": "greater_than"
                },
                {
                  "name": "Is",
                  "value": "is"
                },
                {
                  "name": "Is Not",
                  "value": "is_not"
                },
                {
                  "name": "Less Than",
                  "value": "less_than"
                },
                {
                  "name": "Not Changed",
                  "value": "not_changed"
                },
                {
                  "name": "Not Changed From",
                  "value": "not_value_previous"
                },
                {
                  "name": "Not Changed To",
                  "value": "not_value"
                }
              ],
              "displayOptions": {
                "hide": {
                  "field": [
                    "assignee"
                  ]
                }
              },
              "default": "is"
            },
            {
              "displayName": "Operation",
              "name": "operation",
              "type": "options",
              "options": [
                {
                  "name": "Changed",
                  "value": "changed"
                },
                {
                  "name": "Changed From",
                  "value": "value_previous"
                },
                {
                  "name": "Changed To",
                  "value": "value"
                },
                {
                  "name": "Is",
                  "value": "is"
                },
                {
                  "name": "Is Not",
                  "value": "is_not"
                },
                {
                  "name": "Not Changed",
                  "value": "not_changed"
                },
                {
                  "name": "Not Changed From",
                  "value": "not_value_previous"
                },
                {
                  "name": "Not Changed To",
                  "value": "not_value"
                }
              ],
              "displayOptions": {
                "show": {
                  "field": [
                    "assignee"
                  ]
                }
              },
              "default": "is"
            },
            {
              "displayName": "Value",
              "name": "value",
              "type": "options",
              "displayOptions": {
                "show": {
                  "field": [
                    "status"
                  ]
                },
                "hide": {
                  "operation": [
                    "changed",
                    "not_changed"
                  ],
                  "field": [
                    "assignee",
                    "group",
                    "priority",
                    "type"
                  ]
                }
              },
              "options": [
                {
                  "name": "Closed",
                  "value": "closed"
                },
                {
                  "name": "New",
                  "value": "new"
                },
                {
                  "name": "Open",
                  "value": "open"
                },
                {
                  "name": "Pending",
                  "value": "pending"
                },
                {
                  "name": "Solved",
                  "value": "solved"
                }
              ],
              "default": "open"
            },
            {
              "displayName": "Value",
              "name": "value",
              "type": "options",
              "displayOptions": {
                "show": {
                  "field": [
                    "type"
                  ]
                },
                "hide": {
                  "operation": [
                    "changed",
                    "not_changed"
                  ],
                  "field": [
                    "assignee",
                    "group",
                    "priority",
                    "status"
                  ]
                }
              },
              "options": [
                {
                  "name": "Question",
                  "value": "question"
                },
                {
                  "name": "Incident",
                  "value": "incident"
                },
                {
                  "name": "Problem",
                  "value": "problem"
                },
                {
                  "name": "Task",
                  "value": "task"
                }
              ],
              "default": "question"
            },
            {
              "displayName": "Value",
              "name": "value",
              "type": "options",
              "displayOptions": {
                "show": {
                  "field": [
                    "priority"
                  ]
                },
                "hide": {
                  "operation": [
                    "changed",
                    "not_changed"
                  ],
                  "field": [
                    "assignee",
                    "group",
                    "type",
                    "status"
                  ]
                }
              },
              "options": [
                {
                  "name": "Low",
                  "value": "low"
                },
                {
                  "name": "Normal",
                  "value": "normal"
                },
                {
                  "name": "High",
                  "value": "high"
                },
                {
                  "name": "Urgent",
                  "value": "urgent"
                }
              ],
              "default": "low"
            },
            {
              "displayName": "Value",
              "name": "value",
              "type": "options",
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "typeOptions": {
                "loadOptionsMethod": "getGroups"
              },
              "displayOptions": {
                "show": {
                  "field": [
                    "group"
                  ]
                },
                "hide": {
                  "field": [
                    "assignee",
                    "priority",
                    "type",
                    "status"
                  ]
                }
              },
              "default": ""
            },
            {
              "displayName": "Value",
              "name": "value",
              "type": "options",
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "typeOptions": {
                "loadOptionsMethod": "getUsers"
              },
              "displayOptions": {
                "show": {
                  "field": [
                    "assignee"
                  ]
                },
                "hide": {
                  "field": [
                    "group",
                    "priority",
                    "type",
                    "status"
                  ]
                }
              },
              "default": ""
            }
          ]
        },
        {
          "name": "any",
          "displayName": "Any",
          "values": [
            {
              "displayName": "Resource",
              "name": "resource",
              "type": "options",
              "noDataExpression": true,
              "options": [
                {
                  "name": "Ticket",
                  "value": "ticket"
                }
              ],
              "default": "ticket"
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "displayOptions": {
                "show": {
                  "resource": [
                    "ticket"
                  ]
                }
              },
              "options": [
                {
                  "name": "Assignee",
                  "value": "assignee"
                },
                {
                  "name": "Group",
                  "value": "group"
                },
                {
                  "name": "Priority",
                  "value": "priority"
                },
                {
                  "name": "Status",
                  "value": "status"
                },
                {
                  "name": "Type",
                  "value": "type"
                }
              ],
              "default": "status"
            },
            {
              "displayName": "Operation",
              "name": "operation",
              "type": "options",
              "options": [
                {
                  "name": "Changed",
                  "value": "changed"
                },
                {
                  "name": "Changed From",
                  "value": "value_previous"
                },
                {
                  "name": "Changed To",
                  "value": "value"
                },
                {
                  "name": "Greater Than",
                  "value": "greater_than"
                },
                {
                  "name": "Is",
                  "value": "is"
                },
                {
                  "name": "Is Not",
                  "value": "is_not"
                },
                {
                  "name": "Less Than",
                  "value": "less_than"
                },
                {
                  "name": "Not Changed",
                  "value": "not_changed"
                },
                {
                  "name": "Not Changed From",
                  "value": "not_value_previous"
                },
                {
                  "name": "Not Changed To",
                  "value": "not_value"
                }
              ],
              "displayOptions": {
                "hide": {
                  "field": [
                    "assignee"
                  ]
                }
              },
              "default": "is"
            },
            {
              "displayName": "Operation",
              "name": "operation",
              "type": "options",
              "options": [
                {
                  "name": "Changed",
                  "value": "changed"
                },
                {
                  "name": "Changed From",
                  "value": "value_previous"
                },
                {
                  "name": "Changed To",
                  "value": "value"
                },
                {
                  "name": "Is",
                  "value": "is"
                },
                {
                  "name": "Is Not",
                  "value": "is_not"
                },
                {
                  "name": "Not Changed",
                  "value": "not_changed"
                },
                {
                  "name": "Not Changed From",
                  "value": "not_value_previous"
                },
                {
                  "name": "Not Changed To",
                  "value": "not_value"
                }
              ],
              "displayOptions": {
                "show": {
                  "field": [
                    "assignee"
                  ]
                }
              },
              "default": "is"
            },
            {
              "displayName": "Value",
              "name": "value",
              "type": "options",
              "displayOptions": {
                "show": {
                  "field": [
                    "status"
                  ]
                },
                "hide": {
                  "operation": [
                    "changed",
                    "not_changed"
                  ],
                  "field": [
                    "assignee",
                    "group",
                    "priority",
                    "type"
                  ]
                }
              },
              "options": [
                {
                  "name": "Closed",
                  "value": "closed"
                },
                {
                  "name": "New",
                  "value": "new"
                },
                {
                  "name": "Open",
                  "value": "open"
                },
                {
                  "name": "Pending",
                  "value": "pending"
                },
                {
                  "name": "Solved",
                  "value": "solved"
                }
              ],
              "default": "open"
            },
            {
              "displayName": "Value",
              "name": "value",
              "type": "options",
              "displayOptions": {
                "show": {
                  "field": [
                    "type"
                  ]
                },
                "hide": {
                  "operation": [
                    "changed",
                    "not_changed"
                  ],
                  "field": [
                    "assignee",
                    "group",
                    "priority",
                    "status"
                  ]
                }
              },
              "options": [
                {
                  "name": "Question",
                  "value": "question"
                },
                {
                  "name": "Incident",
                  "value": "incident"
                },
                {
                  "name": "Problem",
                  "value": "problem"
                },
                {
                  "name": "Task",
                  "value": "task"
                }
              ],
              "default": "question"
            },
            {
              "displayName": "Value",
              "name": "value",
              "type": "options",
              "displayOptions": {
                "show": {
                  "field": [
                    "priority"
                  ]
                },
                "hide": {
                  "operation": [
                    "changed",
                    "not_changed"
                  ],
                  "field": [
                    "assignee",
                    "group",
                    "type",
                    "status"
                  ]
                }
              },
              "options": [
                {
                  "name": "Low",
                  "value": "low"
                },
                {
                  "name": "Normal",
                  "value": "normal"
                },
                {
                  "name": "High",
                  "value": "high"
                },
                {
                  "name": "Urgent",
                  "value": "urgent"
                }
              ],
              "default": "low"
            },
            {
              "displayName": "Value",
              "name": "value",
              "type": "options",
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "typeOptions": {
                "loadOptionsMethod": "getGroups"
              },
              "displayOptions": {
                "show": {
                  "field": [
                    "group"
                  ]
                },
                "hide": {
                  "field": [
                    "assignee",
                    "priority",
                    "type",
                    "status"
                  ]
                }
              },
              "default": ""
            },
            {
              "displayName": "Value",
              "name": "value",
              "type": "options",
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "typeOptions": {
                "loadOptionsMethod": "getUsers"
              },
              "displayOptions": {
                "show": {
                  "field": [
                    "assignee"
                  ]
                },
                "hide": {
                  "field": [
                    "group",
                    "priority",
                    "type",
                    "status"
                  ]
                }
              },
              "default": ""
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "service": [
            "support"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true
      }
    }
  ]

credentials_required:
  [
    {
      "name": "zendeskApi",
      "required": true,
      "displayOptions": {
        "show": {
          "authentication": [
            "apiToken"
          ]
        }
      }
    },
    {
      "name": "zendeskOAuth2Api",
      "required": true,
      "displayOptions": {
        "show": {
          "authentication": [
            "oAuth2"
          ]
        }
      }
    }
  ]


node_type: nodes-base.zohoCrmTool
package_name: n8n-nodes-base
display_name: Zoho CRM Tool
description: Consume Zoho CRM API (AI Tool variant for use with AI Agents)
category: transform
development_style: programmatic
version: 1
credentials_required:
  [
  {
  "name": "zohoOAuth2Api",
  "required": true
  }
  ]

outputs:
  [
  {
  "type": "ai_tool",
  "displayName": "Tool"
  }
  ]

output_names:
  [
  "Tool"
  ]

updated_at: 2026-03-30 13:12:50
tool_variant_of: nodes-base.zohoCrm
documentation:
  ---
  #https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
  title: Zoho CRM node documentation
  description: Learn how to use the Zoho CRM node in n8n. Follow technical documentation to integrate Zoho CRM node into your workflows.
  contentType: [integration, reference]
  ---

  # Zoho CRM node

  Use the Zoho CRM node to automate work in Zoho CRM, and integrate Zoho CRM with other applications. n8n has built-in support for a wide range of Zoho CRM features, including creating and deleting accounts, contacts, and deals. 

  On this page, you'll find a list of operations the Zoho CRM node supports and links to more resources.

  /// note | Credentials
  Refer to [Zoho CRM credentials](/integrations/builtin/credentials/zoho.md) for guidance on setting up authentication. 
  ///

  --8<-- "_snippets/integrations/builtin/app-nodes/ai-tools.md"

  ## Operations

  * Account
      * Create an account
      * Create a new record, or update the current one if it already exists (upsert)
      * Delete an account
      * Get an account
      * Get all accounts
      * Update an account
  * Contact
      * Create a contact
      * Create a new record, or update the current one if it already exists (upsert)
      * Delete a contact
      * Get a contact
      * Get all contacts
      * Update a contact
  * Deal
      * Create a deal
      * Create a new record, or update the current one if it already exists (upsert)
      * Delete a contact
      * Get a contact
      * Get all contacts
      * Update a contact
  * Invoice
      * Create an invoice
      * Create a new record, or update the current one if it already exists (upsert)
      * Delete an invoice
      * Get an invoice
      * Get all invoices
      * Update an invoice
  * Lead
      * Create a lead
      * Create a new record, or update the current one if it already exists (upsert)
      * Delete a lead
      * Get a lead
      * Get all leads
      * Get lead fields
      * Update a lead
  * Product
      * Create a product
      * Create a new record, or update the current one if it already exists (upsert)
      * Delete a product
      * Get a product
      * Get all products
      * Update a product
  * Purchase Order
      * Create a purchase order
      * Create a new record, or update the current one if it already exists (upsert)
      * Delete a purchase order
      * Get a purchase order
      * Get all purchase orders
      * Update a purchase order
  * Quote
      * Create a quote
      * Create a new record, or update the current one if it already exists (upsert)
      * Delete a quote
      * Get a quote
      * Get all quotes
      * Update a quote
  * Sales Order
      * Create a sales order
      * Create a new record, or update the current one if it already exists (upsert)
      * Delete a sales order
      * Get a sales order
      * Get all sales orders
      * Update a sales order
  * Vendor
      * Create a vendor
      * Create a new record, or update the current one if it already exists (upsert)
      * Delete a vendor
      * Get a vendor
      * Get all vendors
      * Update a vendor

  ## Templates and examples

  <!-- see https://www.notion.so/n8n/Pull-in-templates-for-the-integrations-pages-37c716837b804d30a33b47475f6e3780 -->
  [[ templatesWidget(page.title, 'zoho-crm') ]]

  --8<-- "_snippets/integrations/builtin/app-nodes/operation-not-supported.md"

properties_schema:
  [
    {
      "displayName": "Tool Description",
      "name": "toolDescription",
      "type": "string",
      "default": "",
      "required": false,
      "description": "Description for the AI to understand what this tool does and when to use it",
      "typeOptions": {
        "rows": 3
      },
      "placeholder": "e.g., Use this tool to interact with Zoho CRM"
    },
    {
      "displayName": "Resource",
      "name": "resource",
      "type": "options",
      "default": "account",
      "options": [
        {
          "name": "Account",
          "value": "account"
        },
        {
          "name": "Contact",
          "value": "contact"
        },
        {
          "name": "Deal",
          "value": "deal"
        },
        {
          "name": "Invoice",
          "value": "invoice"
        },
        {
          "name": "Lead",
          "value": "lead"
        },
        {
          "name": "Product",
          "value": "product"
        },
        {
          "name": "Purchase Order",
          "value": "purchaseOrder"
        },
        {
          "name": "Quote",
          "value": "quote"
        },
        {
          "name": "Sales Order",
          "value": "salesOrder"
        },
        {
          "name": "Vendor",
          "value": "vendor"
        }
      ],
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create an account",
          "action": "Create an account"
        },
        {
          "name": "Create or Update",
          "value": "upsert",
          "description": "Create a new record, or update the current one if it already exists (upsert)",
          "action": "Create or Update an account"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete an account",
          "action": "Delete an account"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get an account",
          "action": "Get an account"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many accounts",
          "action": "Get many accounts"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update an account",
          "action": "Update an account"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "account"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Account Name",
      "name": "accountName",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "account"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Account Name",
      "name": "accountName",
      "type": "string",
      "default": "",
      "description": "Name of the account. If a record with this account name exists it will be updated, otherwise a new one will be created.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "account"
          ],
          "operation": [
            "upsert"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Account Number",
          "name": "Account_Number",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Account Site",
          "name": "Account_Site",
          "type": "string",
          "default": "",
          "description": "Name of the account’s location, e.g. Headquarters or London"
        },
        {
          "displayName": "Account Type Name or ID",
          "name": "Account_Type",
          "type": "options",
          "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
          "typeOptions": {
            "loadOptionsMethod": "getAccountType"
          },
          "default": []
        },
        {
          "displayName": "Annual Revenue",
          "name": "Annual_Revenue",
          "type": "number",
          "default": ""
        },
        {
          "displayName": "Billing Address",
          "name": "Billing_Address",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Billing Address Field",
          "options": [
            {
              "displayName": "Billing Address Fields",
              "name": "address_fields",
              "values": [
                {
                  "displayName": "Street",
                  "name": "Billing_Street",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "City",
                  "name": "Billing_City",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "State",
                  "name": "Billing_State",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Country",
                  "name": "Billing_Country",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Zip Code",
                  "name": "Billing_Code",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Contact Details",
          "name": "Contact_Details",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Currency",
          "name": "Currency",
          "type": "options",
          "default": "USD",
          "description": "Symbol of the currency in which revenue is generated",
          "options": [
            {
              "name": "US Dollar",
              "value": "USD"
            },
            {
              "name": "Euro",
              "value": "EUR"
            },
            {
              "name": "UAE Dirham",
              "value": "AED"
            },
            {
              "name": "Afghani",
              "value": "AFN"
            },
            {
              "name": "Lek",
              "value": "ALL"
            },
            {
              "name": "Argentine Peso",
              "value": "ARS"
            },
            {
              "name": "Australian Dollar",
              "value": "AUD"
            },
            {
              "name": "Azerbaijan Manat",
              "value": "AZN"
            },
            {
              "name": "Barbados Dollar",
              "value": "BBD"
            },
            {
              "name": "Taka",
              "value": "BDT"
            },
            {
              "name": "Bulgarian Lev",
              "value": "BGN"
            },
            {
              "name": "Bermudian Dollar",
              "value": "BMD"
            },
            {
              "name": "Brunei Dollar",
              "value": "BND"
            },
            {
              "name": "Boliviano",
              "value": "BOB"
            },
            {
              "name": "Brazilian Real",
              "value": "BRL"
            },
            {
              "name": "Bahamian Dollar",
              "value": "BSD"
            },
            {
              "name": "Pula",
              "value": "BWP"
            },
            {
              "name": "Belize Dollar",
              "value": "BZD"
            },
            {
              "name": "Canadian Dollar",
              "value": "CAD"
            },
            {
              "name": "Swiss Franc",
              "value": "CHF"
            },
            {
              "name": "Chilean Peso",
              "value": "CLP"
            },
            {
              "name": "Yuan Renminbi",
              "value": "CNY"
            },
            {
              "name": "Colombian Peso",
              "value": "COP"
            },
            {
              "name": "Costa Rican Colon",
              "value": "CRC"
            },
            {
              "name": "Czech Koruna",
              "value": "CZK"
            },
            {
              "name": "Danish Krone",
              "value": "DKK"
            },
            {
              "name": "Dominican Peso",
              "value": "DOP"
            },
            {
              "name": "Algerian Dinar",
              "value": "DZD"
            },
            {
              "name": "Egyptian Pound",
              "value": "EGP"
            },
            {
              "name": "Fiji Dollar",
              "value": "FJD"
            },
            {
              "name": "Pound Sterling",
              "value": "GBP"
            },
            {
              "name": "Quetzal",
              "value": "GTQ"
            },
            {
              "name": "Hong Kong Dollar",
              "value": "HKD"
            },
            {
              "name": "Lempira",
              "value": "HNL"
            },
            {
              "name": "Kuna",
              "value": "HRK"
            },
            {
              "name": "Forint",
              "value": "HUF"
            },
            {
              "name": "Rupiah",
              "value": "IDR"
            },
            {
              "name": "New Israeli Sheqel",
              "value": "ILS"
            },
            {
              "name": "Indian Rupee",
              "value": "INR"
            },
            {
              "name": "Jamaican Dollar",
              "value": "JMD"
            },
            {
              "name": "Yen",
              "value": "JPY"
            },
            {
              "name": "Kenyan Shilling",
              "value": "KES"
            },
            {
              "name": "Won",
              "value": "KRW"
            },
            {
              "name": "Tenge",
              "value": "KZT"
            },
            {
              "name": "Lao Kip",
              "value": "LAK"
            },
            {
              "name": "Lebanese Pound",
              "value": "LBP"
            },
            {
              "name": "Sri Lanka Rupee",
              "value": "LKR"
            },
            {
              "name": "Liberian Dollar",
              "value": "LRD"
            },
            {
              "name": "Moroccan Dirham",
              "value": "MAD"
            },
            {
              "name": "Kyat",
              "value": "MMK"
            },
            {
              "name": "Pataca",
              "value": "MOP"
            },
            {
              "name": "Ouguiya",
              "value": "MRO"
            },
            {
              "name": "Mauritius Rupee",
              "value": "MUR"
            },
            {
              "name": "Rufiyaa",
              "value": "MVR"
            },
            {
              "name": "Mexican Peso",
              "value": "MXN"
            },
            {
              "name": "Malaysian Ringgit",
              "value": "MYR"
            },
            {
              "name": "Cordoba Oro",
              "value": "NIO"
            },
            {
              "name": "Norwegian Krone",
              "value": "NOK"
            },
            {
              "name": "Nepalese Rupee",
              "value": "NPR"
            },
            {
              "name": "New Zealand Dollar",
              "value": "NZD"
            },
            {
              "name": "Sol",
              "value": "PEN"
            },
            {
              "name": "Kina",
              "value": "PGK"
            },
            {
              "name": "Philippine Peso",
              "value": "PHP"
            },
            {
              "name": "Pakistan Rupee",
              "value": "PKR"
            },
            {
              "name": "Zloty",
              "value": "PLN"
            },
            {
              "name": "Qatari Rial",
              "value": "QAR"
            },
            {
              "name": "Romanian Leu",
              "value": "RON"
            },
            {
              "name": "Russian Ruble",
              "value": "RUB"
            },
            {
              "name": "Saudi Riyal",
              "value": "SAR"
            },
            {
              "name": "Solomon Islands Dollar",
              "value": "SBD"
            },
            {
              "name": "Seychelles Rupee",
              "value": "SCR"
            },
            {
              "name": "Swedish Krona",
              "value": "SEK"
            },
            {
              "name": "Singapore Dollar",
              "value": "SGD"
            },
            {
              "name": "Syrian Pound",
              "value": "SYP"
            },
            {
              "name": "Baht",
              "value": "THB"
            },
            {
              "name": "Pa’anga",
              "value": "TOP"
            },
            {
              "name": "Turkish Lira",
              "value": "TRY"
            },
            {
              "name": "Trinidad and Tobago Dollar",
              "value": "TTD"
            },
            {
              "name": "New Taiwan Dollar",
              "value": "TWD"
            },
            {
              "name": "Hryvnia",
              "value": "UAH"
            },
            {
              "name": "Dong",
              "value": "VND"
            },
            {
              "name": "Vatu",
              "value": "VUV"
            },
            {
              "name": "Tala",
              "value": "WST"
            },
            {
              "name": "East Caribbean Dollar",
              "value": "XCD"
            },
            {
              "name": "West African CFA Franc",
              "value": "XOF"
            },
            {
              "name": "Yemeni Rial",
              "value": "YER"
            },
            {
              "name": "Rand",
              "value": "ZAR"
            }
          ]
        },
        {
          "displayName": "Custom Fields",
          "name": "customFields",
          "placeholder": "Add Custom Field",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "description": "Filter by custom fields",
          "default": {},
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field ID",
                  "name": "fieldId",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getCustomAccountFields"
                  },
                  "default": "",
                  "description": "Custom field to set a value to"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on custom field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Description",
          "name": "Description",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Employees",
          "name": "Employees",
          "type": "number",
          "default": "",
          "description": "Number of employees in the account’s company"
        },
        {
          "displayName": "Exchange Rate",
          "name": "Exchange_Rate",
          "type": "number",
          "default": "",
          "description": "Exchange rate of the default currency to the home currency"
        },
        {
          "displayName": "Fax",
          "name": "Fax",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Industry",
          "name": "Industry",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Phone",
          "name": "Phone",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Shipping Address",
          "name": "Shipping_Address",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Shipping Address Field",
          "options": [
            {
              "displayName": "Shipping Address Fields",
              "name": "address_fields",
              "values": [
                {
                  "displayName": "Street",
                  "name": "Shipping_Street",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "City",
                  "name": "Shipping_City",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "State",
                  "name": "Shipping_State",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Country",
                  "name": "Shipping_Country",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Zip Code",
                  "name": "Shipping_Code",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Ticker Symbol",
          "name": "Ticker_Symbol",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Website",
          "name": "Website",
          "type": "string",
          "default": ""
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "account"
          ],
          "operation": [
            "create",
            "upsert"
          ]
        }
      }
    },
    {
      "displayName": "Account ID",
      "name": "accountId",
      "type": "string",
      "default": "",
      "description": "ID of the account to delete. Can be found at the end of the URL.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "account"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    },
    {
      "displayName": "Account ID",
      "name": "accountId",
      "type": "string",
      "default": "",
      "description": "ID of the account to retrieve. Can be found at the end of the URL.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "account"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "account"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 5,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "account"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 1000
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Approved",
          "name": "approved",
          "type": "boolean",
          "default": true,
          "description": "Whether to retrieve only approved records. Defaults to true."
        },
        {
          "displayName": "Converted",
          "name": "converted",
          "type": "boolean",
          "default": false,
          "description": "Whether to retrieve only converted records. Defaults to false."
        },
        {
          "displayName": "Fields",
          "name": "fields",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getAccountFields"
          },
          "default": [],
          "description": "Return only these fields"
        },
        {
          "displayName": "Include Child",
          "name": "include_child",
          "type": "boolean",
          "default": false,
          "description": "Whether to retrieve only records from child territories"
        },
        {
          "displayName": "Sort By",
          "name": "sort_by",
          "type": "options",
          "typeOptions": {
            "loadOptionsMethod": "getAccountFields"
          },
          "default": [],
          "description": "Field to sort records by"
        },
        {
          "displayName": "Sort Order",
          "name": "sort_order",
          "type": "options",
          "options": [
            {
              "name": "Ascending",
              "value": "asc"
            },
            {
              "name": "Descending",
              "value": "desc"
            }
          ],
          "default": "desc",
          "description": "Ascending or descending order sort order"
        },
        {
          "displayName": "Territory ID",
          "name": "territory_id",
          "type": "string",
          "default": "",
          "description": "Retrieve only records from this territory"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "account"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Account ID",
      "name": "accountId",
      "type": "string",
      "default": "",
      "description": "ID of the account to update. Can be found at the end of the URL.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "account"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Account Name",
          "name": "Account_Name",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Account Number",
          "name": "Account_Number",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Account Site",
          "name": "Account_Site",
          "type": "string",
          "default": "",
          "description": "Name of the account’s location, e.g. Headquarters or London"
        },
        {
          "displayName": "Account Type Name or ID",
          "name": "Account_Type",
          "type": "options",
          "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
          "typeOptions": {
            "loadOptionsMethod": "getAccountType"
          },
          "default": []
        },
        {
          "displayName": "Annual Revenue",
          "name": "Annual_Revenue",
          "type": "number",
          "default": ""
        },
        {
          "displayName": "Billing Address",
          "name": "Billing_Address",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Billing Address Field",
          "options": [
            {
              "displayName": "Billing Address Fields",
              "name": "address_fields",
              "values": [
                {
                  "displayName": "Street",
                  "name": "Billing_Street",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "City",
                  "name": "Billing_City",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "State",
                  "name": "Billing_State",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Country",
                  "name": "Billing_Country",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Zip Code",
                  "name": "Billing_Code",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Contact Details",
          "name": "Contact_Details",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Currency",
          "name": "Currency",
          "type": "options",
          "default": "USD",
          "description": "Symbol of the currency in which revenue is generated",
          "options": [
            {
              "name": "US Dollar",
              "value": "USD"
            },
            {
              "name": "Euro",
              "value": "EUR"
            },
            {
              "name": "UAE Dirham",
              "value": "AED"
            },
            {
              "name": "Afghani",
              "value": "AFN"
            },
            {
              "name": "Lek",
              "value": "ALL"
            },
            {
              "name": "Argentine Peso",
              "value": "ARS"
            },
            {
              "name": "Australian Dollar",
              "value": "AUD"
            },
            {
              "name": "Azerbaijan Manat",
              "value": "AZN"
            },
            {
              "name": "Barbados Dollar",
              "value": "BBD"
            },
            {
              "name": "Taka",
              "value": "BDT"
            },
            {
              "name": "Bulgarian Lev",
              "value": "BGN"
            },
            {
              "name": "Bermudian Dollar",
              "value": "BMD"
            },
            {
              "name": "Brunei Dollar",
              "value": "BND"
            },
            {
              "name": "Boliviano",
              "value": "BOB"
            },
            {
              "name": "Brazilian Real",
              "value": "BRL"
            },
            {
              "name": "Bahamian Dollar",
              "value": "BSD"
            },
            {
              "name": "Pula",
              "value": "BWP"
            },
            {
              "name": "Belize Dollar",
              "value": "BZD"
            },
            {
              "name": "Canadian Dollar",
              "value": "CAD"
            },
            {
              "name": "Swiss Franc",
              "value": "CHF"
            },
            {
              "name": "Chilean Peso",
              "value": "CLP"
            },
            {
              "name": "Yuan Renminbi",
              "value": "CNY"
            },
            {
              "name": "Colombian Peso",
              "value": "COP"
            },
            {
              "name": "Costa Rican Colon",
              "value": "CRC"
            },
            {
              "name": "Czech Koruna",
              "value": "CZK"
            },
            {
              "name": "Danish Krone",
              "value": "DKK"
            },
            {
              "name": "Dominican Peso",
              "value": "DOP"
            },
            {
              "name": "Algerian Dinar",
              "value": "DZD"
            },
            {
              "name": "Egyptian Pound",
              "value": "EGP"
            },
            {
              "name": "Fiji Dollar",
              "value": "FJD"
            },
            {
              "name": "Pound Sterling",
              "value": "GBP"
            },
            {
              "name": "Quetzal",
              "value": "GTQ"
            },
            {
              "name": "Hong Kong Dollar",
              "value": "HKD"
            },
            {
              "name": "Lempira",
              "value": "HNL"
            },
            {
              "name": "Kuna",
              "value": "HRK"
            },
            {
              "name": "Forint",
              "value": "HUF"
            },
            {
              "name": "Rupiah",
              "value": "IDR"
            },
            {
              "name": "New Israeli Sheqel",
              "value": "ILS"
            },
            {
              "name": "Indian Rupee",
              "value": "INR"
            },
            {
              "name": "Jamaican Dollar",
              "value": "JMD"
            },
            {
              "name": "Yen",
              "value": "JPY"
            },
            {
              "name": "Kenyan Shilling",
              "value": "KES"
            },
            {
              "name": "Won",
              "value": "KRW"
            },
            {
              "name": "Tenge",
              "value": "KZT"
            },
            {
              "name": "Lao Kip",
              "value": "LAK"
            },
            {
              "name": "Lebanese Pound",
              "value": "LBP"
            },
            {
              "name": "Sri Lanka Rupee",
              "value": "LKR"
            },
            {
              "name": "Liberian Dollar",
              "value": "LRD"
            },
            {
              "name": "Moroccan Dirham",
              "value": "MAD"
            },
            {
              "name": "Kyat",
              "value": "MMK"
            },
            {
              "name": "Pataca",
              "value": "MOP"
            },
            {
              "name": "Ouguiya",
              "value": "MRO"
            },
            {
              "name": "Mauritius Rupee",
              "value": "MUR"
            },
            {
              "name": "Rufiyaa",
              "value": "MVR"
            },
            {
              "name": "Mexican Peso",
              "value": "MXN"
            },
            {
              "name": "Malaysian Ringgit",
              "value": "MYR"
            },
            {
              "name": "Cordoba Oro",
              "value": "NIO"
            },
            {
              "name": "Norwegian Krone",
              "value": "NOK"
            },
            {
              "name": "Nepalese Rupee",
              "value": "NPR"
            },
            {
              "name": "New Zealand Dollar",
              "value": "NZD"
            },
            {
              "name": "Sol",
              "value": "PEN"
            },
            {
              "name": "Kina",
              "value": "PGK"
            },
            {
              "name": "Philippine Peso",
              "value": "PHP"
            },
            {
              "name": "Pakistan Rupee",
              "value": "PKR"
            },
            {
              "name": "Zloty",
              "value": "PLN"
            },
            {
              "name": "Qatari Rial",
              "value": "QAR"
            },
            {
              "name": "Romanian Leu",
              "value": "RON"
            },
            {
              "name": "Russian Ruble",
              "value": "RUB"
            },
            {
              "name": "Saudi Riyal",
              "value": "SAR"
            },
            {
              "name": "Solomon Islands Dollar",
              "value": "SBD"
            },
            {
              "name": "Seychelles Rupee",
              "value": "SCR"
            },
            {
              "name": "Swedish Krona",
              "value": "SEK"
            },
            {
              "name": "Singapore Dollar",
              "value": "SGD"
            },
            {
              "name": "Syrian Pound",
              "value": "SYP"
            },
            {
              "name": "Baht",
              "value": "THB"
            },
            {
              "name": "Pa’anga",
              "value": "TOP"
            },
            {
              "name": "Turkish Lira",
              "value": "TRY"
            },
            {
              "name": "Trinidad and Tobago Dollar",
              "value": "TTD"
            },
            {
              "name": "New Taiwan Dollar",
              "value": "TWD"
            },
            {
              "name": "Hryvnia",
              "value": "UAH"
            },
            {
              "name": "Dong",
              "value": "VND"
            },
            {
              "name": "Vatu",
              "value": "VUV"
            },
            {
              "name": "Tala",
              "value": "WST"
            },
            {
              "name": "East Caribbean Dollar",
              "value": "XCD"
            },
            {
              "name": "West African CFA Franc",
              "value": "XOF"
            },
            {
              "name": "Yemeni Rial",
              "value": "YER"
            },
            {
              "name": "Rand",
              "value": "ZAR"
            }
          ]
        },
        {
          "displayName": "Custom Fields",
          "name": "customFields",
          "placeholder": "Add Custom Field",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "description": "Filter by custom fields",
          "default": {},
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field ID",
                  "name": "fieldId",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getCustomAccountFields"
                  },
                  "default": "",
                  "description": "Custom field to set a value to"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on custom field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Description",
          "name": "Description",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Employees",
          "name": "Employees",
          "type": "number",
          "default": "",
          "description": "Number of employees in the account’s company"
        },
        {
          "displayName": "Exchange Rate",
          "name": "Exchange_Rate",
          "type": "number",
          "default": "",
          "description": "Exchange rate of the default currency to the home currency"
        },
        {
          "displayName": "Fax",
          "name": "Fax",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Industry",
          "name": "Industry",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Phone",
          "name": "Phone",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Shipping Address",
          "name": "Shipping_Address",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Shipping Address Field",
          "options": [
            {
              "displayName": "Shipping Address Fields",
              "name": "address_fields",
              "values": [
                {
                  "displayName": "Street",
                  "name": "Shipping_Street",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "City",
                  "name": "Shipping_City",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "State",
                  "name": "Shipping_State",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Country",
                  "name": "Shipping_Country",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Zip Code",
                  "name": "Shipping_Code",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Ticker Symbol",
          "name": "Ticker_Symbol",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Website",
          "name": "Website",
          "type": "string",
          "default": ""
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "account"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a contact",
          "action": "Create a contact"
        },
        {
          "name": "Create or Update",
          "value": "upsert",
          "description": "Create a new record, or update the current one if it already exists (upsert)",
          "action": "Create or Update a contact"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a contact",
          "action": "Delete a contact"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get a contact",
          "action": "Get a contact"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many contacts",
          "action": "Get many contacts"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update a contact",
          "action": "Update a contact"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Last Name",
      "name": "lastName",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Assistant",
          "name": "Assistant",
          "type": "string",
          "default": "",
          "description": "Name of the contact’s assistant"
        },
        {
          "displayName": "Custom Fields",
          "name": "customFields",
          "placeholder": "Add Custom Field",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "description": "Filter by custom fields",
          "default": {},
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field ID",
                  "name": "fieldId",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getCustomContactFields"
                  },
                  "default": "",
                  "description": "Custom field to set a value to"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on custom field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Date of Birth",
          "name": "Date_of_Birth",
          "type": "dateTime",
          "default": ""
        },
        {
          "displayName": "Department",
          "name": "Department",
          "type": "string",
          "default": "",
          "description": "Company department to which the contact belongs"
        },
        {
          "displayName": "Description",
          "name": "Description",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Email (Primary)",
          "name": "Email",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Email (Secondary)",
          "name": "Secondary_Email",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Fax",
          "name": "Fax",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "First Name",
          "name": "First_Name",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Full Name",
          "name": "Full_Name",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Mailing Address",
          "name": "Mailing_Address",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Mailing Address Field",
          "options": [
            {
              "displayName": "Mailing Address Fields",
              "name": "address_fields",
              "values": [
                {
                  "displayName": "Street",
                  "name": "Mailing_Street",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "City",
                  "name": "Mailing_City",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "State",
                  "name": "Mailing_State",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Country",
                  "name": "Mailing_Country",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Zip Code",
                  "name": "Mailing_Zip",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Mobile",
          "name": "Mobile",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Other Address",
          "name": "Other_Address",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Other Address Field",
          "options": [
            {
              "displayName": "Other Address Fields",
              "name": "address_fields",
              "values": [
                {
                  "displayName": "Street",
                  "name": "Other_Street",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "City",
                  "name": "Other_City",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "State",
                  "name": "Other_State",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Zip Code",
                  "name": "Other_Zip",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Phone",
          "name": "Phone",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Phone (Assistant)",
          "name": "Asst_Phone",
          "type": "string",
          "default": "",
          "description": "Phone number of the contact’s assistant"
        },
        {
          "displayName": "Phone (Home)",
          "name": "Home_Phone",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Phone (Other)",
          "name": "Other_Phone",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Salutation",
          "name": "Salutation",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Skype ID",
          "name": "Skype_ID",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Title",
          "name": "Title",
          "type": "string",
          "default": "",
          "description": "Position of the contact at their company"
        },
        {
          "displayName": "Twitter",
          "name": "Twitter",
          "type": "string",
          "default": ""
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Last Name",
      "name": "lastName",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "upsert"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Assistant",
          "name": "Assistant",
          "type": "string",
          "default": "",
          "description": "Name of the contact’s assistant"
        },
        {
          "displayName": "Custom Fields",
          "name": "customFields",
          "placeholder": "Add Custom Field",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "description": "Filter by custom fields",
          "default": {},
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field ID",
                  "name": "fieldId",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getCustomContactFields"
                  },
                  "default": "",
                  "description": "Custom field to set a value to"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on custom field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Date of Birth",
          "name": "Date_of_Birth",
          "type": "dateTime",
          "default": ""
        },
        {
          "displayName": "Department",
          "name": "Department",
          "type": "string",
          "default": "",
          "description": "Company department to which the contact belongs"
        },
        {
          "displayName": "Description",
          "name": "Description",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Email (Primary)",
          "name": "Email",
          "type": "string",
          "default": "",
          "description": "Email of the contact. If a record with this email exists it will be updated, otherwise a new one will be created."
        },
        {
          "displayName": "Email (Secondary)",
          "name": "Secondary_Email",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Fax",
          "name": "Fax",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "First Name",
          "name": "First_Name",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Full Name",
          "name": "Full_Name",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Mailing Address",
          "name": "Mailing_Address",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Mailing Address Field",
          "options": [
            {
              "displayName": "Mailing Address Fields",
              "name": "address_fields",
              "values": [
                {
                  "displayName": "Street",
                  "name": "Mailing_Street",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "City",
                  "name": "Mailing_City",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "State",
                  "name": "Mailing_State",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Country",
                  "name": "Mailing_Country",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Zip Code",
                  "name": "Mailing_Zip",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Mobile",
          "name": "Mobile",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Other Address",
          "name": "Other_Address",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Other Address Field",
          "options": [
            {
              "displayName": "Other Address Fields",
              "name": "address_fields",
              "values": [
                {
                  "displayName": "Street",
                  "name": "Other_Street",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "City",
                  "name": "Other_City",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "State",
                  "name": "Other_State",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Zip Code",
                  "name": "Other_Zip",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Phone",
          "name": "Phone",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Phone (Assistant)",
          "name": "Asst_Phone",
          "type": "string",
          "default": "",
          "description": "Phone number of the contact’s assistant"
        },
        {
          "displayName": "Phone (Home)",
          "name": "Home_Phone",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Phone (Other)",
          "name": "Other_Phone",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Salutation",
          "name": "Salutation",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Skype ID",
          "name": "Skype_ID",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Title",
          "name": "Title",
          "type": "string",
          "default": "",
          "description": "Position of the contact at their company"
        },
        {
          "displayName": "Twitter",
          "name": "Twitter",
          "type": "string",
          "default": ""
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "upsert"
          ]
        }
      }
    },
    {
      "displayName": "Contact ID",
      "name": "contactId",
      "type": "string",
      "default": "",
      "description": "ID of the contact to delete",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    },
    {
      "displayName": "Contact ID",
      "name": "contactId",
      "type": "string",
      "default": "",
      "description": "ID of the contact to retrieve",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 5,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 1000
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Approved",
          "name": "approved",
          "type": "boolean",
          "default": true,
          "description": "Whether to retrieve only approved records. Defaults to true."
        },
        {
          "displayName": "Converted",
          "name": "converted",
          "type": "boolean",
          "default": false,
          "description": "Whether to retrieve only converted records. Defaults to false."
        },
        {
          "displayName": "Fields",
          "name": "fields",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getContactFields"
          },
          "default": [],
          "description": "Return only these fields"
        },
        {
          "displayName": "Include Child",
          "name": "include_child",
          "type": "boolean",
          "default": false,
          "description": "Whether to retrieve only records from child territories"
        },
        {
          "displayName": "Sort By",
          "name": "sort_by",
          "type": "options",
          "typeOptions": {
            "loadOptionsMethod": "getContactFields"
          },
          "default": [],
          "description": "Field to sort records by"
        },
        {
          "displayName": "Sort Order",
          "name": "sort_order",
          "type": "options",
          "options": [
            {
              "name": "Ascending",
              "value": "asc"
            },
            {
              "name": "Descending",
              "value": "desc"
            }
          ],
          "default": "desc",
          "description": "Ascending or descending order sort order"
        },
        {
          "displayName": "Territory ID",
          "name": "territory_id",
          "type": "string",
          "default": "",
          "description": "Retrieve only records from this territory"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Contact ID",
      "name": "contactId",
      "type": "string",
      "default": "",
      "description": "ID of the contact to update",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Assistant",
          "name": "Assistant",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Assistant’s Phone",
          "name": "Asst_Phone",
          "type": "string",
          "default": "",
          "description": "Phone number of the contact’s assistant"
        },
        {
          "displayName": "Currency",
          "name": "Currency",
          "type": "options",
          "default": "USD",
          "description": "Symbol of the currency in which revenue is generated",
          "options": [
            {
              "name": "US Dollar",
              "value": "USD"
            },
            {
              "name": "Euro",
              "value": "EUR"
            },
            {
              "name": "UAE Dirham",
              "value": "AED"
            },
            {
              "name": "Afghani",
              "value": "AFN"
            },
            {
              "name": "Lek",
              "value": "ALL"
            },
            {
              "name": "Argentine Peso",
              "value": "ARS"
            },
            {
              "name": "Australian Dollar",
              "value": "AUD"
            },
            {
              "name": "Azerbaijan Manat",
              "value": "AZN"
            },
            {
              "name": "Barbados Dollar",
              "value": "BBD"
            },
            {
              "name": "Taka",
              "value": "BDT"
            },
            {
              "name": "Bulgarian Lev",
              "value": "BGN"
            },
            {
              "name": "Bermudian Dollar",
              "value": "BMD"
            },
            {
              "name": "Brunei Dollar",
              "value": "BND"
            },
            {
              "name": "Boliviano",
              "value": "BOB"
            },
            {
              "name": "Brazilian Real",
              "value": "BRL"
            },
            {
              "name": "Bahamian Dollar",
              "value": "BSD"
            },
            {
              "name": "Pula",
              "value": "BWP"
            },
            {
              "name": "Belize Dollar",
              "value": "BZD"
            },
            {
              "name": "Canadian Dollar",
              "value": "CAD"
            },
            {
              "name": "Swiss Franc",
              "value": "CHF"
            },
            {
              "name": "Chilean Peso",
              "value": "CLP"
            },
            {
              "name": "Yuan Renminbi",
              "value": "CNY"
            },
            {
              "name": "Colombian Peso",
              "value": "COP"
            },
            {
              "name": "Costa Rican Colon",
              "value": "CRC"
            },
            {
              "name": "Czech Koruna",
              "value": "CZK"
            },
            {
              "name": "Danish Krone",
              "value": "DKK"
            },
            {
              "name": "Dominican Peso",
              "value": "DOP"
            },
            {
              "name": "Algerian Dinar",
              "value": "DZD"
            },
            {
              "name": "Egyptian Pound",
              "value": "EGP"
            },
            {
              "name": "Fiji Dollar",
              "value": "FJD"
            },
            {
              "name": "Pound Sterling",
              "value": "GBP"
            },
            {
              "name": "Quetzal",
              "value": "GTQ"
            },
            {
              "name": "Hong Kong Dollar",
              "value": "HKD"
            },
            {
              "name": "Lempira",
              "value": "HNL"
            },
            {
              "name": "Kuna",
              "value": "HRK"
            },
            {
              "name": "Forint",
              "value": "HUF"
            },
            {
              "name": "Rupiah",
              "value": "IDR"
            },
            {
              "name": "New Israeli Sheqel",
              "value": "ILS"
            },
            {
              "name": "Indian Rupee",
              "value": "INR"
            },
            {
              "name": "Jamaican Dollar",
              "value": "JMD"
            },
            {
              "name": "Yen",
              "value": "JPY"
            },
            {
              "name": "Kenyan Shilling",
              "value": "KES"
            },
            {
              "name": "Won",
              "value": "KRW"
            },
            {
              "name": "Tenge",
              "value": "KZT"
            },
            {
              "name": "Lao Kip",
              "value": "LAK"
            },
            {
              "name": "Lebanese Pound",
              "value": "LBP"
            },
            {
              "name": "Sri Lanka Rupee",
              "value": "LKR"
            },
            {
              "name": "Liberian Dollar",
              "value": "LRD"
            },
            {
              "name": "Moroccan Dirham",
              "value": "MAD"
            },
            {
              "name": "Kyat",
              "value": "MMK"
            },
            {
              "name": "Pataca",
              "value": "MOP"
            },
            {
              "name": "Ouguiya",
              "value": "MRO"
            },
            {
              "name": "Mauritius Rupee",
              "value": "MUR"
            },
            {
              "name": "Rufiyaa",
              "value": "MVR"
            },
            {
              "name": "Mexican Peso",
              "value": "MXN"
            },
            {
              "name": "Malaysian Ringgit",
              "value": "MYR"
            },
            {
              "name": "Cordoba Oro",
              "value": "NIO"
            },
            {
              "name": "Norwegian Krone",
              "value": "NOK"
            },
            {
              "name": "Nepalese Rupee",
              "value": "NPR"
            },
            {
              "name": "New Zealand Dollar",
              "value": "NZD"
            },
            {
              "name": "Sol",
              "value": "PEN"
            },
            {
              "name": "Kina",
              "value": "PGK"
            },
            {
              "name": "Philippine Peso",
              "value": "PHP"
            },
            {
              "name": "Pakistan Rupee",
              "value": "PKR"
            },
            {
              "name": "Zloty",
              "value": "PLN"
            },
            {
              "name": "Qatari Rial",
              "value": "QAR"
            },
            {
              "name": "Romanian Leu",
              "value": "RON"
            },
            {
              "name": "Russian Ruble",
              "value": "RUB"
            },
            {
              "name": "Saudi Riyal",
              "value": "SAR"
            },
            {
              "name": "Solomon Islands Dollar",
              "value": "SBD"
            },
            {
              "name": "Seychelles Rupee",
              "value": "SCR"
            },
            {
              "name": "Swedish Krona",
              "value": "SEK"
            },
            {
              "name": "Singapore Dollar",
              "value": "SGD"
            },
            {
              "name": "Syrian Pound",
              "value": "SYP"
            },
            {
              "name": "Baht",
              "value": "THB"
            },
            {
              "name": "Pa’anga",
              "value": "TOP"
            },
            {
              "name": "Turkish Lira",
              "value": "TRY"
            },
            {
              "name": "Trinidad and Tobago Dollar",
              "value": "TTD"
            },
            {
              "name": "New Taiwan Dollar",
              "value": "TWD"
            },
            {
              "name": "Hryvnia",
              "value": "UAH"
            },
            {
              "name": "Dong",
              "value": "VND"
            },
            {
              "name": "Vatu",
              "value": "VUV"
            },
            {
              "name": "Tala",
              "value": "WST"
            },
            {
              "name": "East Caribbean Dollar",
              "value": "XCD"
            },
            {
              "name": "West African CFA Franc",
              "value": "XOF"
            },
            {
              "name": "Yemeni Rial",
              "value": "YER"
            },
            {
              "name": "Rand",
              "value": "ZAR"
            }
          ]
        },
        {
          "displayName": "Custom Fields",
          "name": "customFields",
          "placeholder": "Add Custom Field",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "description": "Filter by custom fields",
          "default": {},
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field ID",
                  "name": "fieldId",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getCustomContactFields"
                  },
                  "default": "",
                  "description": "Custom field to set a value to"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on custom field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Date of Birth",
          "name": "Date_of_Birth",
          "type": "dateTime",
          "default": ""
        },
        {
          "displayName": "Department",
          "name": "Department",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Description",
          "name": "Description",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Email (Primary)",
          "name": "Email",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Email (Secondary)",
          "name": "Secondary_Email",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Fax",
          "name": "Fax",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "First Name",
          "name": "First_Name",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Full Name",
          "name": "Full_Name",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Home Phone",
          "name": "Home_Phone",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Last Name",
          "name": "Last_Name",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Mailing Address",
          "name": "Mailing_Address",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Mailing Address Field",
          "options": [
            {
              "displayName": "Mailing Address Fields",
              "name": "address_fields",
              "values": [
                {
                  "displayName": "Street",
                  "name": "Mailing_Street",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "City",
                  "name": "Mailing_City",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "State",
                  "name": "Mailing_State",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Country",
                  "name": "Mailing_Country",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Zip Code",
                  "name": "Mailing_Zip",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Mobile",
          "name": "Mobile",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Other Address",
          "name": "Other_Address",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Other Address Field",
          "options": [
            {
              "displayName": "Other Address Fields",
              "name": "address_fields",
              "values": [
                {
                  "displayName": "Street",
                  "name": "Other_Street",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "City",
                  "name": "Other_City",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "State",
                  "name": "Other_State",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Zip Code",
                  "name": "Other_Zip",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Other Phone",
          "name": "Other_Phone",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Phone",
          "name": "Phone",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Salutation",
          "name": "Salutation",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Skype ID",
          "name": "Skype_ID",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Title",
          "name": "Title",
          "type": "string",
          "default": "",
          "description": "Position of the contact at their company"
        },
        {
          "displayName": "Twitter",
          "name": "Twitter",
          "type": "string",
          "default": ""
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "contact"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a deal",
          "action": "Create a deal"
        },
        {
          "name": "Create or Update",
          "value": "upsert",
          "description": "Create a new record, or update the current one if it already exists (upsert)",
          "action": "Create or Update a deal"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a contact",
          "action": "Delete a deal"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get a contact",
          "action": "Get a deal"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many contacts",
          "action": "Get many deals"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update a contact",
          "action": "Update a deal"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Deal Name",
      "name": "dealName",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Deal Name",
      "name": "dealName",
      "type": "string",
      "default": "",
      "description": "Name of the deal. If a record with this deal name exists it will be updated, otherwise a new one will be created.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "upsert"
          ]
        }
      }
    },
    {
      "displayName": "Stage Name or ID",
      "name": "stage",
      "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": {
          "resource": [
            "deal"
          ],
          "operation": [
            "create",
            "upsert"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "getDealStage"
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Amount",
          "name": "Amount",
          "type": "number",
          "default": "",
          "description": "Monetary amount of the deal"
        },
        {
          "displayName": "Closing Date",
          "name": "Closing_Date",
          "type": "dateTime",
          "default": ""
        },
        {
          "displayName": "Currency",
          "name": "Currency",
          "type": "options",
          "default": "USD",
          "description": "Symbol of the currency in which revenue is generated",
          "options": [
            {
              "name": "US Dollar",
              "value": "USD"
            },
            {
              "name": "Euro",
              "value": "EUR"
            },
            {
              "name": "UAE Dirham",
              "value": "AED"
            },
            {
              "name": "Afghani",
              "value": "AFN"
            },
            {
              "name": "Lek",
              "value": "ALL"
            },
            {
              "name": "Argentine Peso",
              "value": "ARS"
            },
            {
              "name": "Australian Dollar",
              "value": "AUD"
            },
            {
              "name": "Azerbaijan Manat",
              "value": "AZN"
            },
            {
              "name": "Barbados Dollar",
              "value": "BBD"
            },
            {
              "name": "Taka",
              "value": "BDT"
            },
            {
              "name": "Bulgarian Lev",
              "value": "BGN"
            },
            {
              "name": "Bermudian Dollar",
              "value": "BMD"
            },
            {
              "name": "Brunei Dollar",
              "value": "BND"
            },
            {
              "name": "Boliviano",
              "value": "BOB"
            },
            {
              "name": "Brazilian Real",
              "value": "BRL"
            },
            {
              "name": "Bahamian Dollar",
              "value": "BSD"
            },
            {
              "name": "Pula",
              "value": "BWP"
            },
            {
              "name": "Belize Dollar",
              "value": "BZD"
            },
            {
              "name": "Canadian Dollar",
              "value": "CAD"
            },
            {
              "name": "Swiss Franc",
              "value": "CHF"
            },
            {
              "name": "Chilean Peso",
              "value": "CLP"
            },
            {
              "name": "Yuan Renminbi",
              "value": "CNY"
            },
            {
              "name": "Colombian Peso",
              "value": "COP"
            },
            {
              "name": "Costa Rican Colon",
              "value": "CRC"
            },
            {
              "name": "Czech Koruna",
              "value": "CZK"
            },
            {
              "name": "Danish Krone",
              "value": "DKK"
            },
            {
              "name": "Dominican Peso",
              "value": "DOP"
            },
            {
              "name": "Algerian Dinar",
              "value": "DZD"
            },
            {
              "name": "Egyptian Pound",
              "value": "EGP"
            },
            {
              "name": "Fiji Dollar",
              "value": "FJD"
            },
            {
              "name": "Pound Sterling",
              "value": "GBP"
            },
            {
              "name": "Quetzal",
              "value": "GTQ"
            },
            {
              "name": "Hong Kong Dollar",
              "value": "HKD"
            },
            {
              "name": "Lempira",
              "value": "HNL"
            },
            {
              "name": "Kuna",
              "value": "HRK"
            },
            {
              "name": "Forint",
              "value": "HUF"
            },
            {
              "name": "Rupiah",
              "value": "IDR"
            },
            {
              "name": "New Israeli Sheqel",
              "value": "ILS"
            },
            {
              "name": "Indian Rupee",
              "value": "INR"
            },
            {
              "name": "Jamaican Dollar",
              "value": "JMD"
            },
            {
              "name": "Yen",
              "value": "JPY"
            },
            {
              "name": "Kenyan Shilling",
              "value": "KES"
            },
            {
              "name": "Won",
              "value": "KRW"
            },
            {
              "name": "Tenge",
              "value": "KZT"
            },
            {
              "name": "Lao Kip",
              "value": "LAK"
            },
            {
              "name": "Lebanese Pound",
              "value": "LBP"
            },
            {
              "name": "Sri Lanka Rupee",
              "value": "LKR"
            },
            {
              "name": "Liberian Dollar",
              "value": "LRD"
            },
            {
              "name": "Moroccan Dirham",
              "value": "MAD"
            },
            {
              "name": "Kyat",
              "value": "MMK"
            },
            {
              "name": "Pataca",
              "value": "MOP"
            },
            {
              "name": "Ouguiya",
              "value": "MRO"
            },
            {
              "name": "Mauritius Rupee",
              "value": "MUR"
            },
            {
              "name": "Rufiyaa",
              "value": "MVR"
            },
            {
              "name": "Mexican Peso",
              "value": "MXN"
            },
            {
              "name": "Malaysian Ringgit",
              "value": "MYR"
            },
            {
              "name": "Cordoba Oro",
              "value": "NIO"
            },
            {
              "name": "Norwegian Krone",
              "value": "NOK"
            },
            {
              "name": "Nepalese Rupee",
              "value": "NPR"
            },
            {
              "name": "New Zealand Dollar",
              "value": "NZD"
            },
            {
              "name": "Sol",
              "value": "PEN"
            },
            {
              "name": "Kina",
              "value": "PGK"
            },
            {
              "name": "Philippine Peso",
              "value": "PHP"
            },
            {
              "name": "Pakistan Rupee",
              "value": "PKR"
            },
            {
              "name": "Zloty",
              "value": "PLN"
            },
            {
              "name": "Qatari Rial",
              "value": "QAR"
            },
            {
              "name": "Romanian Leu",
              "value": "RON"
            },
            {
              "name": "Russian Ruble",
              "value": "RUB"
            },
            {
              "name": "Saudi Riyal",
              "value": "SAR"
            },
            {
              "name": "Solomon Islands Dollar",
              "value": "SBD"
            },
            {
              "name": "Seychelles Rupee",
              "value": "SCR"
            },
            {
              "name": "Swedish Krona",
              "value": "SEK"
            },
            {
              "name": "Singapore Dollar",
              "value": "SGD"
            },
            {
              "name": "Syrian Pound",
              "value": "SYP"
            },
            {
              "name": "Baht",
              "value": "THB"
            },
            {
              "name": "Pa’anga",
              "value": "TOP"
            },
            {
              "name": "Turkish Lira",
              "value": "TRY"
            },
            {
              "name": "Trinidad and Tobago Dollar",
              "value": "TTD"
            },
            {
              "name": "New Taiwan Dollar",
              "value": "TWD"
            },
            {
              "name": "Hryvnia",
              "value": "UAH"
            },
            {
              "name": "Dong",
              "value": "VND"
            },
            {
              "name": "Vatu",
              "value": "VUV"
            },
            {
              "name": "Tala",
              "value": "WST"
            },
            {
              "name": "East Caribbean Dollar",
              "value": "XCD"
            },
            {
              "name": "West African CFA Franc",
              "value": "XOF"
            },
            {
              "name": "Yemeni Rial",
              "value": "YER"
            },
            {
              "name": "Rand",
              "value": "ZAR"
            }
          ]
        },
        {
          "displayName": "Custom Fields",
          "name": "customFields",
          "placeholder": "Add Custom Field",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "description": "Filter by custom fields",
          "default": {},
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field ID",
                  "name": "fieldId",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getCustomDealFields"
                  },
                  "default": "",
                  "description": "Custom field to set a value to"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on custom field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Description",
          "name": "Description",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Lead Conversion Time",
          "name": "Lead_Conversion_Time",
          "type": "number",
          "default": "",
          "description": "Average number of days to convert the lead into a deal"
        },
        {
          "displayName": "Next Step",
          "name": "Next_Step",
          "type": "string",
          "default": "",
          "description": "Description of the next step in the sales process"
        },
        {
          "displayName": "Overall Sales Duration",
          "name": "Overall_Sales_Duration",
          "type": "number",
          "default": "",
          "description": "Average number of days to convert the lead into a deal and to win the deal"
        },
        {
          "displayName": "Probability",
          "name": "Probability",
          "type": "number",
          "typeOptions": {
            "minValue": 0,
            "maxValue": 100
          },
          "default": "",
          "description": "Probability of deal closure as a percentage. For example, enter 12 for 12%."
        },
        {
          "displayName": "Sales Cycle Duration",
          "name": "Sales_Cycle_Duration",
          "type": "number",
          "default": 0,
          "description": "Average number of days for the deal to be won"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "create",
            "upsert"
          ]
        }
      }
    },
    {
      "displayName": "Deal ID",
      "name": "dealId",
      "type": "string",
      "default": "",
      "description": "ID of the deal to delete",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    },
    {
      "displayName": "Deal ID",
      "name": "dealId",
      "type": "string",
      "default": "",
      "description": "ID of the deal to retrieve",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 5,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 1000
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Approved",
          "name": "approved",
          "type": "boolean",
          "default": true,
          "description": "Whether to retrieve only approved records. Defaults to true."
        },
        {
          "displayName": "Converted",
          "name": "converted",
          "type": "boolean",
          "default": false,
          "description": "Whether to retrieve only converted records. Defaults to false."
        },
        {
          "displayName": "Fields",
          "name": "fields",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getDealFields"
          },
          "default": [],
          "description": "Return only these fields"
        },
        {
          "displayName": "Include Child",
          "name": "include_child",
          "type": "boolean",
          "default": false,
          "description": "Whether to retrieve only records from child territories"
        },
        {
          "displayName": "Sort By",
          "name": "sort_by",
          "type": "options",
          "typeOptions": {
            "loadOptionsMethod": "getDealFields"
          },
          "default": [],
          "description": "Field to sort records by"
        },
        {
          "displayName": "Sort Order",
          "name": "sort_order",
          "type": "options",
          "options": [
            {
              "name": "Ascending",
              "value": "asc"
            },
            {
              "name": "Descending",
              "value": "desc"
            }
          ],
          "default": "desc",
          "description": "Ascending or descending order sort order"
        },
        {
          "displayName": "Territory ID",
          "name": "territory_id",
          "type": "string",
          "default": "",
          "description": "Retrieve only records from this territory"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Deal ID",
      "name": "dealId",
      "type": "string",
      "default": "",
      "description": "ID of the deal to update",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Amount",
          "name": "Amount",
          "type": "number",
          "default": "",
          "description": "Monetary amount of the deal"
        },
        {
          "displayName": "Closing Date",
          "name": "Closing_Date",
          "type": "dateTime",
          "default": ""
        },
        {
          "displayName": "Currency",
          "name": "Currency",
          "type": "string",
          "default": "",
          "description": "Symbol of the currency in which revenue is generated"
        },
        {
          "displayName": "Custom Fields",
          "name": "customFields",
          "placeholder": "Add Custom Field",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "description": "Filter by custom fields",
          "default": {},
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field ID",
                  "name": "fieldId",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getCustomDealFields"
                  },
                  "default": "",
                  "description": "Custom field to set a value to"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on custom field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Deal Name",
          "name": "Deal_Name",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Description",
          "name": "Description",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Lead Conversion Time",
          "name": "Lead_Conversion_Time",
          "type": "number",
          "default": "",
          "description": "Average number of days to convert the lead into a deal"
        },
        {
          "displayName": "Next Step",
          "name": "Next_Step",
          "type": "string",
          "default": "",
          "description": "Description of the next step in the sales process"
        },
        {
          "displayName": "Overall Sales Duration",
          "name": "Overall_Sales_Duration",
          "type": "number",
          "default": "",
          "description": "Average number of days to convert the lead into a deal and to win the deal"
        },
        {
          "displayName": "Probability",
          "name": "Probability",
          "type": "number",
          "typeOptions": {
            "minValue": 0,
            "maxValue": 100
          },
          "default": "",
          "description": "Probability of deal closure as a percentage. For example, enter 12 for 12%."
        },
        {
          "displayName": "Sales Cycle Duration",
          "name": "Sales_Cycle_Duration",
          "type": "number",
          "default": 0,
          "description": "Average number of days to win the deal"
        },
        {
          "displayName": "Stage Name or ID",
          "name": "Stage",
          "type": "options",
          "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
          "typeOptions": {
            "loadOptionsMethod": "getDealStage"
          },
          "default": []
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "deal"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create an invoice",
          "action": "Create an invoice"
        },
        {
          "name": "Create or Update",
          "value": "upsert",
          "description": "Create a new record, or update the current one if it already exists (upsert)",
          "action": "Create or Update an invoice"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete an invoice",
          "action": "Delete an invoice"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get an invoice",
          "action": "Get an invoice"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many invoices",
          "action": "Get many invoices"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update an invoice",
          "action": "Update an invoice"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "invoice"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Subject",
      "name": "subject",
      "type": "string",
      "default": "",
      "description": "Subject or title of the invoice",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "invoice"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Subject",
      "name": "subject",
      "type": "string",
      "default": "",
      "description": "Subject or title of the invoice. If a record with this subject exists it will be updated, otherwise a new one will be created.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "invoice"
          ],
          "operation": [
            "upsert"
          ]
        }
      }
    },
    {
      "displayName": "Products",
      "name": "Product_Details",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "List Price",
          "name": "list_price",
          "type": "number",
          "default": ""
        },
        {
          "displayName": "Product Name or ID",
          "name": "id",
          "type": "options",
          "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
          "default": [],
          "typeOptions": {
            "loadOptionsMethod": "getProducts"
          }
        },
        {
          "displayName": "Product Description",
          "name": "product_description",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Quantity",
          "name": "quantity",
          "type": "number",
          "default": 1
        },
        {
          "displayName": "Quantity in Stock",
          "name": "quantity_in_stock",
          "type": "number",
          "default": 0
        },
        {
          "displayName": "Tax",
          "name": "Tax",
          "type": "number",
          "default": 0
        },
        {
          "displayName": "Total",
          "name": "total",
          "type": "number",
          "default": 0
        },
        {
          "displayName": "Total After Discount",
          "name": "total_after_discount",
          "type": "number",
          "default": 0
        },
        {
          "displayName": "Total (Net)",
          "name": "net_total",
          "type": "number",
          "default": 0
        },
        {
          "displayName": "Unit Price",
          "name": "unit_price",
          "type": "number",
          "default": 0
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "invoice"
          ],
          "operation": [
            "create",
            "upsert"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true,
        "multipleValueButtonText": "Add Product"
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Account Name or ID",
          "name": "accountId",
          "type": "options",
          "default": [],
          "typeOptions": {
            "loadOptionsMethod": "getAccounts"
          },
          "description": "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>."
        },
        {
          "displayName": "Adjustment",
          "name": "Adjustment",
          "type": "number",
          "default": "",
          "description": "Adjustment in the grand total, if any"
        },
        {
          "displayName": "Billing Address",
          "name": "Billing_Address",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Billing Address Field",
          "options": [
            {
              "displayName": "Billing Address Fields",
              "name": "address_fields",
              "values": [
                {
                  "displayName": "Street",
                  "name": "Billing_Street",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "City",
                  "name": "Billing_City",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "State",
                  "name": "Billing_State",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Country",
                  "name": "Billing_Country",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Zip Code",
                  "name": "Billing_Code",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Currency",
          "name": "Currency",
          "type": "options",
          "default": "USD",
          "description": "Symbol of the currency in which revenue is generated",
          "options": [
            {
              "name": "US Dollar",
              "value": "USD"
            },
            {
              "name": "Euro",
              "value": "EUR"
            },
            {
              "name": "UAE Dirham",
              "value": "AED"
            },
            {
              "name": "Afghani",
              "value": "AFN"
            },
            {
              "name": "Lek",
              "value": "ALL"
            },
            {
              "name": "Argentine Peso",
              "value": "ARS"
            },
            {
              "name": "Australian Dollar",
              "value": "AUD"
            },
            {
              "name": "Azerbaijan Manat",
              "value": "AZN"
            },
            {
              "name": "Barbados Dollar",
              "value": "BBD"
            },
            {
              "name": "Taka",
              "value": "BDT"
            },
            {
              "name": "Bulgarian Lev",
              "value": "BGN"
            },
            {
              "name": "Bermudian Dollar",
              "value": "BMD"
            },
            {
              "name": "Brunei Dollar",
              "value": "BND"
            },
            {
              "name": "Boliviano",
              "value": "BOB"
            },
            {
              "name": "Brazilian Real",
              "value": "BRL"
            },
            {
              "name": "Bahamian Dollar",
              "value": "BSD"
            },
            {
              "name": "Pula",
              "value": "BWP"
            },
            {
              "name": "Belize Dollar",
              "value": "BZD"
            },
            {
              "name": "Canadian Dollar",
              "value": "CAD"
            },
            {
              "name": "Swiss Franc",
              "value": "CHF"
            },
            {
              "name": "Chilean Peso",
              "value": "CLP"
            },
            {
              "name": "Yuan Renminbi",
              "value": "CNY"
            },
            {
              "name": "Colombian Peso",
              "value": "COP"
            },
            {
              "name": "Costa Rican Colon",
              "value": "CRC"
            },
            {
              "name": "Czech Koruna",
              "value": "CZK"
            },
            {
              "name": "Danish Krone",
              "value": "DKK"
            },
            {
              "name": "Dominican Peso",
              "value": "DOP"
            },
            {
              "name": "Algerian Dinar",
              "value": "DZD"
            },
            {
              "name": "Egyptian Pound",
              "value": "EGP"
            },
            {
              "name": "Fiji Dollar",
              "value": "FJD"
            },
            {
              "name": "Pound Sterling",
              "value": "GBP"
            },
            {
              "name": "Quetzal",
              "value": "GTQ"
            },
            {
              "name": "Hong Kong Dollar",
              "value": "HKD"
            },
            {
              "name": "Lempira",
              "value": "HNL"
            },
            {
              "name": "Kuna",
              "value": "HRK"
            },
            {
              "name": "Forint",
              "value": "HUF"
            },
            {
              "name": "Rupiah",
              "value": "IDR"
            },
            {
              "name": "New Israeli Sheqel",
              "value": "ILS"
            },
            {
              "name": "Indian Rupee",
              "value": "INR"
            },
            {
              "name": "Jamaican Dollar",
              "value": "JMD"
            },
            {
              "name": "Yen",
              "value": "JPY"
            },
            {
              "name": "Kenyan Shilling",
              "value": "KES"
            },
            {
              "name": "Won",
              "value": "KRW"
            },
            {
              "name": "Tenge",
              "value": "KZT"
            },
            {
              "name": "Lao Kip",
              "value": "LAK"
            },
            {
              "name": "Lebanese Pound",
              "value": "LBP"
            },
            {
              "name": "Sri Lanka Rupee",
              "value": "LKR"
            },
            {
              "name": "Liberian Dollar",
              "value": "LRD"
            },
            {
              "name": "Moroccan Dirham",
              "value": "MAD"
            },
            {
              "name": "Kyat",
              "value": "MMK"
            },
            {
              "name": "Pataca",
              "value": "MOP"
            },
            {
              "name": "Ouguiya",
              "value": "MRO"
            },
            {
              "name": "Mauritius Rupee",
              "value": "MUR"
            },
            {
              "name": "Rufiyaa",
              "value": "MVR"
            },
            {
              "name": "Mexican Peso",
              "value": "MXN"
            },
            {
              "name": "Malaysian Ringgit",
              "value": "MYR"
            },
            {
              "name": "Cordoba Oro",
              "value": "NIO"
            },
            {
              "name": "Norwegian Krone",
              "value": "NOK"
            },
            {
              "name": "Nepalese Rupee",
              "value": "NPR"
            },
            {
              "name": "New Zealand Dollar",
              "value": "NZD"
            },
            {
              "name": "Sol",
              "value": "PEN"
            },
            {
              "name": "Kina",
              "value": "PGK"
            },
            {
              "name": "Philippine Peso",
              "value": "PHP"
            },
            {
              "name": "Pakistan Rupee",
              "value": "PKR"
            },
            {
              "name": "Zloty",
              "value": "PLN"
            },
            {
              "name": "Qatari Rial",
              "value": "QAR"
            },
            {
              "name": "Romanian Leu",
              "value": "RON"
            },
            {
              "name": "Russian Ruble",
              "value": "RUB"
            },
            {
              "name": "Saudi Riyal",
              "value": "SAR"
            },
            {
              "name": "Solomon Islands Dollar",
              "value": "SBD"
            },
            {
              "name": "Seychelles Rupee",
              "value": "SCR"
            },
            {
              "name": "Swedish Krona",
              "value": "SEK"
            },
            {
              "name": "Singapore Dollar",
              "value": "SGD"
            },
            {
              "name": "Syrian Pound",
              "value": "SYP"
            },
            {
              "name": "Baht",
              "value": "THB"
            },
            {
              "name": "Pa’anga",
              "value": "TOP"
            },
            {
              "name": "Turkish Lira",
              "value": "TRY"
            },
            {
              "name": "Trinidad and Tobago Dollar",
              "value": "TTD"
            },
            {
              "name": "New Taiwan Dollar",
              "value": "TWD"
            },
            {
              "name": "Hryvnia",
              "value": "UAH"
            },
            {
              "name": "Dong",
              "value": "VND"
            },
            {
              "name": "Vatu",
              "value": "VUV"
            },
            {
              "name": "Tala",
              "value": "WST"
            },
            {
              "name": "East Caribbean Dollar",
              "value": "XCD"
            },
            {
              "name": "West African CFA Franc",
              "value": "XOF"
            },
            {
              "name": "Yemeni Rial",
              "value": "YER"
            },
            {
              "name": "Rand",
              "value": "ZAR"
            }
          ]
        },
        {
          "displayName": "Custom Fields",
          "name": "customFields",
          "placeholder": "Add Custom Field",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "description": "Filter by custom fields",
          "default": {},
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field ID",
                  "name": "fieldId",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getCustomInvoiceFields"
                  },
                  "default": "",
                  "description": "Custom field to set a value to"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on custom field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Description",
          "name": "Description",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Due Date",
          "name": "Due_Date",
          "type": "dateTime",
          "default": ""
        },
        {
          "displayName": "Exchange Rate",
          "name": "Exchange_Rate",
          "type": "number",
          "default": "",
          "description": "Exchange rate of the default currency to the home currency"
        },
        {
          "displayName": "Grand Total",
          "name": "Grand_Total",
          "type": "number",
          "default": "",
          "description": "Total amount for the product after deducting tax and discounts"
        },
        {
          "displayName": "Invoice Date",
          "name": "Invoice_Date",
          "type": "dateTime",
          "default": ""
        },
        {
          "displayName": "Invoice Number",
          "name": "Invoice_Number",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Sales Commission",
          "name": "Sales_Commission",
          "type": "number",
          "default": "",
          "description": "Commission of sales person on deal closure as a percentage. For example, enter 12 for 12%."
        },
        {
          "displayName": "Shipping Address",
          "name": "Shipping_Address",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Shipping Address Field",
          "options": [
            {
              "displayName": "Shipping Address Fields",
              "name": "address_fields",
              "values": [
                {
                  "displayName": "Street",
                  "name": "Shipping_Street",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "City",
                  "name": "Shipping_City",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "State",
                  "name": "Shipping_State",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Country",
                  "name": "Shipping_Country",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Zip Code",
                  "name": "Shipping_Code",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Status",
          "name": "Status",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Sub Total",
          "name": "Sub_Total",
          "type": "number",
          "default": "",
          "description": "Total amount for the product excluding tax"
        },
        {
          "displayName": "Tax",
          "name": "Tax",
          "type": "number",
          "default": "",
          "description": "Tax amount as the sum of sales tax and value-added tax"
        },
        {
          "displayName": "Terms and Conditions",
          "name": "Terms_and_Conditions",
          "type": "string",
          "default": "",
          "description": "Terms and conditions associated with the invoice"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "invoice"
          ],
          "operation": [
            "create",
            "upsert"
          ]
        }
      }
    },
    {
      "displayName": "Invoice ID",
      "name": "invoiceId",
      "type": "string",
      "default": "",
      "description": "ID of the invoice to delete",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "invoice"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    },
    {
      "displayName": "Invoice ID",
      "name": "invoiceId",
      "type": "string",
      "default": "",
      "description": "ID of the invoice to retrieve",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "invoice"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "invoice"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 5,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "invoice"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 1000
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Approved",
          "name": "approved",
          "type": "boolean",
          "default": true,
          "description": "Whether to retrieve only approved records. Defaults to true."
        },
        {
          "displayName": "Converted",
          "name": "converted",
          "type": "boolean",
          "default": false,
          "description": "Whether to retrieve only converted records. Defaults to false."
        },
        {
          "displayName": "Fields",
          "name": "fields",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getInvoiceFields"
          },
          "default": [],
          "description": "Return only these fields"
        },
        {
          "displayName": "Include Child",
          "name": "include_child",
          "type": "boolean",
          "default": false,
          "description": "Whether to retrieve only records from child territories"
        },
        {
          "displayName": "Sort By",
          "name": "sort_by",
          "type": "options",
          "typeOptions": {
            "loadOptionsMethod": "getInvoiceFields"
          },
          "default": [],
          "description": "Field to sort records by"
        },
        {
          "displayName": "Sort Order",
          "name": "sort_order",
          "type": "options",
          "options": [
            {
              "name": "Ascending",
              "value": "asc"
            },
            {
              "name": "Descending",
              "value": "desc"
            }
          ],
          "default": "desc",
          "description": "Ascending or descending order sort order"
        },
        {
          "displayName": "Territory ID",
          "name": "territory_id",
          "type": "string",
          "default": "",
          "description": "Retrieve only records from this territory"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "invoice"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Invoice ID",
      "name": "invoiceId",
      "type": "string",
      "default": "",
      "description": "ID of the invoice to update",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "invoice"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Account Name or ID",
          "name": "accountId",
          "type": "options",
          "default": [],
          "typeOptions": {
            "loadOptionsMethod": "getAccounts"
          },
          "description": "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>."
        },
        {
          "displayName": "Adjustment",
          "name": "Adjustment",
          "type": "number",
          "default": "",
          "description": "Adjustment in the grand total, if any"
        },
        {
          "displayName": "Billing Address",
          "name": "Billing_Address",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Billing Address Field",
          "options": [
            {
              "displayName": "Billing Address Fields",
              "name": "address_fields",
              "values": [
                {
                  "displayName": "Street",
                  "name": "Billing_Street",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "City",
                  "name": "Billing_City",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "State",
                  "name": "Billing_State",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Country",
                  "name": "Billing_Country",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Zip Code",
                  "name": "Billing_Code",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Currency",
          "name": "Currency",
          "type": "options",
          "default": "USD",
          "description": "Symbol of the currency in which revenue is generated",
          "options": [
            {
              "name": "US Dollar",
              "value": "USD"
            },
            {
              "name": "Euro",
              "value": "EUR"
            },
            {
              "name": "UAE Dirham",
              "value": "AED"
            },
            {
              "name": "Afghani",
              "value": "AFN"
            },
            {
              "name": "Lek",
              "value": "ALL"
            },
            {
              "name": "Argentine Peso",
              "value": "ARS"
            },
            {
              "name": "Australian Dollar",
              "value": "AUD"
            },
            {
              "name": "Azerbaijan Manat",
              "value": "AZN"
            },
            {
              "name": "Barbados Dollar",
              "value": "BBD"
            },
            {
              "name": "Taka",
              "value": "BDT"
            },
            {
              "name": "Bulgarian Lev",
              "value": "BGN"
            },
            {
              "name": "Bermudian Dollar",
              "value": "BMD"
            },
            {
              "name": "Brunei Dollar",
              "value": "BND"
            },
            {
              "name": "Boliviano",
              "value": "BOB"
            },
            {
              "name": "Brazilian Real",
              "value": "BRL"
            },
            {
              "name": "Bahamian Dollar",
              "value": "BSD"
            },
            {
              "name": "Pula",
              "value": "BWP"
            },
            {
              "name": "Belize Dollar",
              "value": "BZD"
            },
            {
              "name": "Canadian Dollar",
              "value": "CAD"
            },
            {
              "name": "Swiss Franc",
              "value": "CHF"
            },
            {
              "name": "Chilean Peso",
              "value": "CLP"
            },
            {
              "name": "Yuan Renminbi",
              "value": "CNY"
            },
            {
              "name": "Colombian Peso",
              "value": "COP"
            },
            {
              "name": "Costa Rican Colon",
              "value": "CRC"
            },
            {
              "name": "Czech Koruna",
              "value": "CZK"
            },
            {
              "name": "Danish Krone",
              "value": "DKK"
            },
            {
              "name": "Dominican Peso",
              "value": "DOP"
            },
            {
              "name": "Algerian Dinar",
              "value": "DZD"
            },
            {
              "name": "Egyptian Pound",
              "value": "EGP"
            },
            {
              "name": "Fiji Dollar",
              "value": "FJD"
            },
            {
              "name": "Pound Sterling",
              "value": "GBP"
            },
            {
              "name": "Quetzal",
              "value": "GTQ"
            },
            {
              "name": "Hong Kong Dollar",
              "value": "HKD"
            },
            {
              "name": "Lempira",
              "value": "HNL"
            },
            {
              "name": "Kuna",
              "value": "HRK"
            },
            {
              "name": "Forint",
              "value": "HUF"
            },
            {
              "name": "Rupiah",
              "value": "IDR"
            },
            {
              "name": "New Israeli Sheqel",
              "value": "ILS"
            },
            {
              "name": "Indian Rupee",
              "value": "INR"
            },
            {
              "name": "Jamaican Dollar",
              "value": "JMD"
            },
            {
              "name": "Yen",
              "value": "JPY"
            },
            {
              "name": "Kenyan Shilling",
              "value": "KES"
            },
            {
              "name": "Won",
              "value": "KRW"
            },
            {
              "name": "Tenge",
              "value": "KZT"
            },
            {
              "name": "Lao Kip",
              "value": "LAK"
            },
            {
              "name": "Lebanese Pound",
              "value": "LBP"
            },
            {
              "name": "Sri Lanka Rupee",
              "value": "LKR"
            },
            {
              "name": "Liberian Dollar",
              "value": "LRD"
            },
            {
              "name": "Moroccan Dirham",
              "value": "MAD"
            },
            {
              "name": "Kyat",
              "value": "MMK"
            },
            {
              "name": "Pataca",
              "value": "MOP"
            },
            {
              "name": "Ouguiya",
              "value": "MRO"
            },
            {
              "name": "Mauritius Rupee",
              "value": "MUR"
            },
            {
              "name": "Rufiyaa",
              "value": "MVR"
            },
            {
              "name": "Mexican Peso",
              "value": "MXN"
            },
            {
              "name": "Malaysian Ringgit",
              "value": "MYR"
            },
            {
              "name": "Cordoba Oro",
              "value": "NIO"
            },
            {
              "name": "Norwegian Krone",
              "value": "NOK"
            },
            {
              "name": "Nepalese Rupee",
              "value": "NPR"
            },
            {
              "name": "New Zealand Dollar",
              "value": "NZD"
            },
            {
              "name": "Sol",
              "value": "PEN"
            },
            {
              "name": "Kina",
              "value": "PGK"
            },
            {
              "name": "Philippine Peso",
              "value": "PHP"
            },
            {
              "name": "Pakistan Rupee",
              "value": "PKR"
            },
            {
              "name": "Zloty",
              "value": "PLN"
            },
            {
              "name": "Qatari Rial",
              "value": "QAR"
            },
            {
              "name": "Romanian Leu",
              "value": "RON"
            },
            {
              "name": "Russian Ruble",
              "value": "RUB"
            },
            {
              "name": "Saudi Riyal",
              "value": "SAR"
            },
            {
              "name": "Solomon Islands Dollar",
              "value": "SBD"
            },
            {
              "name": "Seychelles Rupee",
              "value": "SCR"
            },
            {
              "name": "Swedish Krona",
              "value": "SEK"
            },
            {
              "name": "Singapore Dollar",
              "value": "SGD"
            },
            {
              "name": "Syrian Pound",
              "value": "SYP"
            },
            {
              "name": "Baht",
              "value": "THB"
            },
            {
              "name": "Pa’anga",
              "value": "TOP"
            },
            {
              "name": "Turkish Lira",
              "value": "TRY"
            },
            {
              "name": "Trinidad and Tobago Dollar",
              "value": "TTD"
            },
            {
              "name": "New Taiwan Dollar",
              "value": "TWD"
            },
            {
              "name": "Hryvnia",
              "value": "UAH"
            },
            {
              "name": "Dong",
              "value": "VND"
            },
            {
              "name": "Vatu",
              "value": "VUV"
            },
            {
              "name": "Tala",
              "value": "WST"
            },
            {
              "name": "East Caribbean Dollar",
              "value": "XCD"
            },
            {
              "name": "West African CFA Franc",
              "value": "XOF"
            },
            {
              "name": "Yemeni Rial",
              "value": "YER"
            },
            {
              "name": "Rand",
              "value": "ZAR"
            }
          ]
        },
        {
          "displayName": "Custom Fields",
          "name": "customFields",
          "placeholder": "Add Custom Field",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "description": "Filter by custom fields",
          "default": {},
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field ID",
                  "name": "fieldId",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getCustomInvoiceFields"
                  },
                  "default": "",
                  "description": "Custom field to set a value to"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on custom field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Description",
          "name": "Description",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Due Date",
          "name": "Due_Date",
          "type": "dateTime",
          "default": ""
        },
        {
          "displayName": "Exchange Rate",
          "name": "Exchange_Rate",
          "type": "number",
          "default": "",
          "description": "Exchange rate of the default currency to the home currency"
        },
        {
          "displayName": "Grand Total",
          "name": "Grand_Total",
          "type": "number",
          "default": "",
          "description": "Total amount for the product after deducting tax and discounts"
        },
        {
          "displayName": "Invoice Date",
          "name": "Invoice_Date",
          "type": "dateTime",
          "default": ""
        },
        {
          "displayName": "Invoice Number",
          "name": "Invoice_Number",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Products",
          "name": "Product_Details",
          "type": "collection",
          "typeOptions": {
            "multipleValues": true,
            "multipleValueButtonText": "Add Product"
          },
          "default": {},
          "placeholder": "Add Field",
          "options": [
            {
              "displayName": "List Price",
              "name": "list_price",
              "type": "number",
              "default": ""
            },
            {
              "displayName": "Product Name or ID",
              "name": "id",
              "type": "options",
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "default": [],
              "typeOptions": {
                "loadOptionsMethod": "getProducts"
              }
            },
            {
              "displayName": "Product Description",
              "name": "product_description",
              "type": "string",
              "default": ""
            },
            {
              "displayName": "Quantity",
              "name": "quantity",
              "type": "number",
              "default": 1
            },
            {
              "displayName": "Quantity in Stock",
              "name": "quantity_in_stock",
              "type": "number",
              "default": 0
            },
            {
              "displayName": "Tax",
              "name": "Tax",
              "type": "number",
              "default": 0
            },
            {
              "displayName": "Total",
              "name": "total",
              "type": "number",
              "default": 0
            },
            {
              "displayName": "Total After Discount",
              "name": "total_after_discount",
              "type": "number",
              "default": 0
            },
            {
              "displayName": "Total (Net)",
              "name": "net_total",
              "type": "number",
              "default": 0
            },
            {
              "displayName": "Unit Price",
              "name": "unit_price",
              "type": "number",
              "default": 0
            }
          ]
        },
        {
          "displayName": "Sales Commission",
          "name": "Sales_Commission",
          "type": "number",
          "default": "",
          "description": "Commission of sales person on deal closure as a percentage. For example, enter 12 for 12%."
        },
        {
          "displayName": "Shipping Address",
          "name": "Shipping_Address",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Shipping Address Field",
          "options": [
            {
              "displayName": "Shipping Address Fields",
              "name": "address_fields",
              "values": [
                {
                  "displayName": "Street",
                  "name": "Shipping_Street",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "City",
                  "name": "Shipping_City",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "State",
                  "name": "Shipping_State",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Country",
                  "name": "Shipping_Country",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Zip Code",
                  "name": "Shipping_Code",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Status",
          "name": "Status",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Sub Total",
          "name": "Sub_Total",
          "type": "number",
          "default": "",
          "description": "Total amount for the product excluding tax"
        },
        {
          "displayName": "Subject",
          "name": "Subject",
          "type": "string",
          "default": "",
          "description": "Subject or title of the invoice"
        },
        {
          "displayName": "Tax",
          "name": "Tax",
          "type": "number",
          "default": "",
          "description": "Tax amount as the sum of sales tax and value-added tax"
        },
        {
          "displayName": "Terms and Conditions",
          "name": "Terms_and_Conditions",
          "type": "string",
          "default": "",
          "description": "Terms and conditions associated with the invoice"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "invoice"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a lead",
          "action": "Create a lead"
        },
        {
          "name": "Create or Update",
          "value": "upsert",
          "description": "Create a new record, or update the current one if it already exists (upsert)",
          "action": "Create or update a lead"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a lead",
          "action": "Delete a lead"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get a lead",
          "action": "Get a lead"
        },
        {
          "name": "Get Fields",
          "value": "getFields",
          "description": "Get lead fields",
          "action": "Get lead fields"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many leads",
          "action": "Get many leads"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update a lead",
          "action": "Update a lead"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "lead"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Company",
      "name": "Company",
      "type": "string",
      "default": "",
      "description": "Company at which the lead works",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "lead"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Last Name",
      "name": "lastName",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "lead"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Address",
          "name": "Address",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Address Field",
          "options": [
            {
              "displayName": "Address Fields",
              "name": "address_fields",
              "values": [
                {
                  "displayName": "Street",
                  "name": "Street",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "City",
                  "name": "City",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "State",
                  "name": "State",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Country",
                  "name": "Country",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Zip Code",
                  "name": "Zip_Code",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Annual Revenue",
          "name": "Annual_Revenue",
          "type": "number",
          "default": "",
          "description": "Annual revenue of the lead’s company"
        },
        {
          "displayName": "Currency",
          "name": "Currency",
          "type": "options",
          "default": "USD",
          "description": "Symbol of the currency in which revenue is generated",
          "options": [
            {
              "name": "US Dollar",
              "value": "USD"
            },
            {
              "name": "Euro",
              "value": "EUR"
            },
            {
              "name": "UAE Dirham",
              "value": "AED"
            },
            {
              "name": "Afghani",
              "value": "AFN"
            },
            {
              "name": "Lek",
              "value": "ALL"
            },
            {
              "name": "Argentine Peso",
              "value": "ARS"
            },
            {
              "name": "Australian Dollar",
              "value": "AUD"
            },
            {
              "name": "Azerbaijan Manat",
              "value": "AZN"
            },
            {
              "name": "Barbados Dollar",
              "value": "BBD"
            },
            {
              "name": "Taka",
              "value": "BDT"
            },
            {
              "name": "Bulgarian Lev",
              "value": "BGN"
            },
            {
              "name": "Bermudian Dollar",
              "value": "BMD"
            },
            {
              "name": "Brunei Dollar",
              "value": "BND"
            },
            {
              "name": "Boliviano",
              "value": "BOB"
            },
            {
              "name": "Brazilian Real",
              "value": "BRL"
            },
            {
              "name": "Bahamian Dollar",
              "value": "BSD"
            },
            {
              "name": "Pula",
              "value": "BWP"
            },
            {
              "name": "Belize Dollar",
              "value": "BZD"
            },
            {
              "name": "Canadian Dollar",
              "value": "CAD"
            },
            {
              "name": "Swiss Franc",
              "value": "CHF"
            },
            {
              "name": "Chilean Peso",
              "value": "CLP"
            },
            {
              "name": "Yuan Renminbi",
              "value": "CNY"
            },
            {
              "name": "Colombian Peso",
              "value": "COP"
            },
            {
              "name": "Costa Rican Colon",
              "value": "CRC"
            },
            {
              "name": "Czech Koruna",
              "value": "CZK"
            },
            {
              "name": "Danish Krone",
              "value": "DKK"
            },
            {
              "name": "Dominican Peso",
              "value": "DOP"
            },
            {
              "name": "Algerian Dinar",
              "value": "DZD"
            },
            {
              "name": "Egyptian Pound",
              "value": "EGP"
            },
            {
              "name": "Fiji Dollar",
              "value": "FJD"
            },
            {
              "name": "Pound Sterling",
              "value": "GBP"
            },
            {
              "name": "Quetzal",
              "value": "GTQ"
            },
            {
              "name": "Hong Kong Dollar",
              "value": "HKD"
            },
            {
              "name": "Lempira",
              "value": "HNL"
            },
            {
              "name": "Kuna",
              "value": "HRK"
            },
            {
              "name": "Forint",
              "value": "HUF"
            },
            {
              "name": "Rupiah",
              "value": "IDR"
            },
            {
              "name": "New Israeli Sheqel",
              "value": "ILS"
            },
            {
              "name": "Indian Rupee",
              "value": "INR"
            },
            {
              "name": "Jamaican Dollar",
              "value": "JMD"
            },
            {
              "name": "Yen",
              "value": "JPY"
            },
            {
              "name": "Kenyan Shilling",
              "value": "KES"
            },
            {
              "name": "Won",
              "value": "KRW"
            },
            {
              "name": "Tenge",
              "value": "KZT"
            },
            {
              "name": "Lao Kip",
              "value": "LAK"
            },
            {
              "name": "Lebanese Pound",
              "value": "LBP"
            },
            {
              "name": "Sri Lanka Rupee",
              "value": "LKR"
            },
            {
              "name": "Liberian Dollar",
              "value": "LRD"
            },
            {
              "name": "Moroccan Dirham",
              "value": "MAD"
            },
            {
              "name": "Kyat",
              "value": "MMK"
            },
            {
              "name": "Pataca",
              "value": "MOP"
            },
            {
              "name": "Ouguiya",
              "value": "MRO"
            },
            {
              "name": "Mauritius Rupee",
              "value": "MUR"
            },
            {
              "name": "Rufiyaa",
              "value": "MVR"
            },
            {
              "name": "Mexican Peso",
              "value": "MXN"
            },
            {
              "name": "Malaysian Ringgit",
              "value": "MYR"
            },
            {
              "name": "Cordoba Oro",
              "value": "NIO"
            },
            {
              "name": "Norwegian Krone",
              "value": "NOK"
            },
            {
              "name": "Nepalese Rupee",
              "value": "NPR"
            },
            {
              "name": "New Zealand Dollar",
              "value": "NZD"
            },
            {
              "name": "Sol",
              "value": "PEN"
            },
            {
              "name": "Kina",
              "value": "PGK"
            },
            {
              "name": "Philippine Peso",
              "value": "PHP"
            },
            {
              "name": "Pakistan Rupee",
              "value": "PKR"
            },
            {
              "name": "Zloty",
              "value": "PLN"
            },
            {
              "name": "Qatari Rial",
              "value": "QAR"
            },
            {
              "name": "Romanian Leu",
              "value": "RON"
            },
            {
              "name": "Russian Ruble",
              "value": "RUB"
            },
            {
              "name": "Saudi Riyal",
              "value": "SAR"
            },
            {
              "name": "Solomon Islands Dollar",
              "value": "SBD"
            },
            {
              "name": "Seychelles Rupee",
              "value": "SCR"
            },
            {
              "name": "Swedish Krona",
              "value": "SEK"
            },
            {
              "name": "Singapore Dollar",
              "value": "SGD"
            },
            {
              "name": "Syrian Pound",
              "value": "SYP"
            },
            {
              "name": "Baht",
              "value": "THB"
            },
            {
              "name": "Pa’anga",
              "value": "TOP"
            },
            {
              "name": "Turkish Lira",
              "value": "TRY"
            },
            {
              "name": "Trinidad and Tobago Dollar",
              "value": "TTD"
            },
            {
              "name": "New Taiwan Dollar",
              "value": "TWD"
            },
            {
              "name": "Hryvnia",
              "value": "UAH"
            },
            {
              "name": "Dong",
              "value": "VND"
            },
            {
              "name": "Vatu",
              "value": "VUV"
            },
            {
              "name": "Tala",
              "value": "WST"
            },
            {
              "name": "East Caribbean Dollar",
              "value": "XCD"
            },
            {
              "name": "West African CFA Franc",
              "value": "XOF"
            },
            {
              "name": "Yemeni Rial",
              "value": "YER"
            },
            {
              "name": "Rand",
              "value": "ZAR"
            }
          ]
        },
        {
          "displayName": "Custom Fields",
          "name": "customFields",
          "placeholder": "Add Custom Field",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "description": "Filter by custom fields",
          "default": {},
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field ID",
                  "name": "fieldId",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getCustomLeadFields"
                  },
                  "default": "",
                  "description": "Custom field to set a value to"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on custom field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Description",
          "name": "Description",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Designation",
          "name": "Designation",
          "type": "string",
          "default": "",
          "description": "Position of the lead at their company"
        },
        {
          "displayName": "Email",
          "name": "Email",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Email Opt Out",
          "name": "Email_Opt_Out",
          "type": "boolean",
          "default": false
        },
        {
          "displayName": "Fax",
          "name": "Fax",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "First Name",
          "name": "First_Name",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Full Name",
          "name": "Full_Name",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Industry",
          "name": "Industry",
          "type": "string",
          "default": "",
          "description": "Industry to which the lead belongs"
        },
        {
          "displayName": "Industry Type",
          "name": "Industry_Type",
          "type": "string",
          "default": "",
          "description": "Type of industry to which the lead belongs"
        },
        {
          "displayName": "Lead Source",
          "name": "Lead_Source",
          "type": "string",
          "default": "",
          "description": "Source from which the lead was created"
        },
        {
          "displayName": "Lead Status",
          "name": "Lead_Status",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Mobile",
          "name": "Mobile",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Number of Employees",
          "name": "No_of_Employees",
          "type": "number",
          "default": "",
          "description": "Number of employees in the lead’s company"
        },
        {
          "displayName": "Phone",
          "name": "Phone",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Salutation",
          "name": "Salutation",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Secondary Email",
          "name": "Secondary_Email",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Skype ID",
          "name": "Skype_ID",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Twitter",
          "name": "Twitter",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Website",
          "name": "Website",
          "type": "string",
          "default": ""
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "lead"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Company",
      "name": "Company",
      "type": "string",
      "default": "",
      "description": "Company at which the lead works",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "lead"
          ],
          "operation": [
            "upsert"
          ]
        }
      }
    },
    {
      "displayName": "Last Name",
      "name": "lastName",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "lead"
          ],
          "operation": [
            "upsert"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Address",
          "name": "Address",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Address Field",
          "options": [
            {
              "displayName": "Address Fields",
              "name": "address_fields",
              "values": [
                {
                  "displayName": "Street",
                  "name": "Street",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "City",
                  "name": "City",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "State",
                  "name": "State",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Country",
                  "name": "Country",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Zip Code",
                  "name": "Zip_Code",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Annual Revenue",
          "name": "Annual_Revenue",
          "type": "number",
          "default": "",
          "description": "Annual revenue of the lead’s company"
        },
        {
          "displayName": "Currency",
          "name": "Currency",
          "type": "options",
          "default": "USD",
          "description": "Symbol of the currency in which revenue is generated",
          "options": [
            {
              "name": "US Dollar",
              "value": "USD"
            },
            {
              "name": "Euro",
              "value": "EUR"
            },
            {
              "name": "UAE Dirham",
              "value": "AED"
            },
            {
              "name": "Afghani",
              "value": "AFN"
            },
            {
              "name": "Lek",
              "value": "ALL"
            },
            {
              "name": "Argentine Peso",
              "value": "ARS"
            },
            {
              "name": "Australian Dollar",
              "value": "AUD"
            },
            {
              "name": "Azerbaijan Manat",
              "value": "AZN"
            },
            {
              "name": "Barbados Dollar",
              "value": "BBD"
            },
            {
              "name": "Taka",
              "value": "BDT"
            },
            {
              "name": "Bulgarian Lev",
              "value": "BGN"
            },
            {
              "name": "Bermudian Dollar",
              "value": "BMD"
            },
            {
              "name": "Brunei Dollar",
              "value": "BND"
            },
            {
              "name": "Boliviano",
              "value": "BOB"
            },
            {
              "name": "Brazilian Real",
              "value": "BRL"
            },
            {
              "name": "Bahamian Dollar",
              "value": "BSD"
            },
            {
              "name": "Pula",
              "value": "BWP"
            },
            {
              "name": "Belize Dollar",
              "value": "BZD"
            },
            {
              "name": "Canadian Dollar",
              "value": "CAD"
            },
            {
              "name": "Swiss Franc",
              "value": "CHF"
            },
            {
              "name": "Chilean Peso",
              "value": "CLP"
            },
            {
              "name": "Yuan Renminbi",
              "value": "CNY"
            },
            {
              "name": "Colombian Peso",
              "value": "COP"
            },
            {
              "name": "Costa Rican Colon",
              "value": "CRC"
            },
            {
              "name": "Czech Koruna",
              "value": "CZK"
            },
            {
              "name": "Danish Krone",
              "value": "DKK"
            },
            {
              "name": "Dominican Peso",
              "value": "DOP"
            },
            {
              "name": "Algerian Dinar",
              "value": "DZD"
            },
            {
              "name": "Egyptian Pound",
              "value": "EGP"
            },
            {
              "name": "Fiji Dollar",
              "value": "FJD"
            },
            {
              "name": "Pound Sterling",
              "value": "GBP"
            },
            {
              "name": "Quetzal",
              "value": "GTQ"
            },
            {
              "name": "Hong Kong Dollar",
              "value": "HKD"
            },
            {
              "name": "Lempira",
              "value": "HNL"
            },
            {
              "name": "Kuna",
              "value": "HRK"
            },
            {
              "name": "Forint",
              "value": "HUF"
            },
            {
              "name": "Rupiah",
              "value": "IDR"
            },
            {
              "name": "New Israeli Sheqel",
              "value": "ILS"
            },
            {
              "name": "Indian Rupee",
              "value": "INR"
            },
            {
              "name": "Jamaican Dollar",
              "value": "JMD"
            },
            {
              "name": "Yen",
              "value": "JPY"
            },
            {
              "name": "Kenyan Shilling",
              "value": "KES"
            },
            {
              "name": "Won",
              "value": "KRW"
            },
            {
              "name": "Tenge",
              "value": "KZT"
            },
            {
              "name": "Lao Kip",
              "value": "LAK"
            },
            {
              "name": "Lebanese Pound",
              "value": "LBP"
            },
            {
              "name": "Sri Lanka Rupee",
              "value": "LKR"
            },
            {
              "name": "Liberian Dollar",
              "value": "LRD"
            },
            {
              "name": "Moroccan Dirham",
              "value": "MAD"
            },
            {
              "name": "Kyat",
              "value": "MMK"
            },
            {
              "name": "Pataca",
              "value": "MOP"
            },
            {
              "name": "Ouguiya",
              "value": "MRO"
            },
            {
              "name": "Mauritius Rupee",
              "value": "MUR"
            },
            {
              "name": "Rufiyaa",
              "value": "MVR"
            },
            {
              "name": "Mexican Peso",
              "value": "MXN"
            },
            {
              "name": "Malaysian Ringgit",
              "value": "MYR"
            },
            {
              "name": "Cordoba Oro",
              "value": "NIO"
            },
            {
              "name": "Norwegian Krone",
              "value": "NOK"
            },
            {
              "name": "Nepalese Rupee",
              "value": "NPR"
            },
            {
              "name": "New Zealand Dollar",
              "value": "NZD"
            },
            {
              "name": "Sol",
              "value": "PEN"
            },
            {
              "name": "Kina",
              "value": "PGK"
            },
            {
              "name": "Philippine Peso",
              "value": "PHP"
            },
            {
              "name": "Pakistan Rupee",
              "value": "PKR"
            },
            {
              "name": "Zloty",
              "value": "PLN"
            },
            {
              "name": "Qatari Rial",
              "value": "QAR"
            },
            {
              "name": "Romanian Leu",
              "value": "RON"
            },
            {
              "name": "Russian Ruble",
              "value": "RUB"
            },
            {
              "name": "Saudi Riyal",
              "value": "SAR"
            },
            {
              "name": "Solomon Islands Dollar",
              "value": "SBD"
            },
            {
              "name": "Seychelles Rupee",
              "value": "SCR"
            },
            {
              "name": "Swedish Krona",
              "value": "SEK"
            },
            {
              "name": "Singapore Dollar",
              "value": "SGD"
            },
            {
              "name": "Syrian Pound",
              "value": "SYP"
            },
            {
              "name": "Baht",
              "value": "THB"
            },
            {
              "name": "Pa’anga",
              "value": "TOP"
            },
            {
              "name": "Turkish Lira",
              "value": "TRY"
            },
            {
              "name": "Trinidad and Tobago Dollar",
              "value": "TTD"
            },
            {
              "name": "New Taiwan Dollar",
              "value": "TWD"
            },
            {
              "name": "Hryvnia",
              "value": "UAH"
            },
            {
              "name": "Dong",
              "value": "VND"
            },
            {
              "name": "Vatu",
              "value": "VUV"
            },
            {
              "name": "Tala",
              "value": "WST"
            },
            {
              "name": "East Caribbean Dollar",
              "value": "XCD"
            },
            {
              "name": "West African CFA Franc",
              "value": "XOF"
            },
            {
              "name": "Yemeni Rial",
              "value": "YER"
            },
            {
              "name": "Rand",
              "value": "ZAR"
            }
          ]
        },
        {
          "displayName": "Custom Fields",
          "name": "customFields",
          "placeholder": "Add Custom Field",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "description": "Filter by custom fields",
          "default": {},
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field ID",
                  "name": "fieldId",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getCustomLeadFields"
                  },
                  "default": "",
                  "description": "Custom field to set a value to"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on custom field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Description",
          "name": "Description",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Designation",
          "name": "Designation",
          "type": "string",
          "default": "",
          "description": "Position of the lead at their company"
        },
        {
          "displayName": "Email",
          "name": "Email",
          "type": "string",
          "default": "",
          "description": "Email of the lead. If a record with this email exists it will be updated, otherwise a new one will be created."
        },
        {
          "displayName": "Email Opt Out",
          "name": "Email_Opt_Out",
          "type": "boolean",
          "default": false
        },
        {
          "displayName": "Fax",
          "name": "Fax",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "First Name",
          "name": "First_Name",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Full Name",
          "name": "Full_Name",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Industry",
          "name": "Industry",
          "type": "string",
          "default": "",
          "description": "Industry to which the lead belongs"
        },
        {
          "displayName": "Industry Type",
          "name": "Industry_Type",
          "type": "string",
          "default": "",
          "description": "Type of industry to which the lead belongs"
        },
        {
          "displayName": "Lead Source",
          "name": "Lead_Source",
          "type": "string",
          "default": "",
          "description": "Source from which the lead was created"
        },
        {
          "displayName": "Lead Status",
          "name": "Lead_Status",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Mobile",
          "name": "Mobile",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Number of Employees",
          "name": "No_of_Employees",
          "type": "number",
          "default": "",
          "description": "Number of employees in the lead’s company"
        },
        {
          "displayName": "Phone",
          "name": "Phone",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Salutation",
          "name": "Salutation",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Secondary Email",
          "name": "Secondary_Email",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Skype ID",
          "name": "Skype_ID",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Twitter",
          "name": "Twitter",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Website",
          "name": "Website",
          "type": "string",
          "default": ""
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "lead"
          ],
          "operation": [
            "upsert"
          ]
        }
      }
    },
    {
      "displayName": "Lead ID",
      "name": "leadId",
      "type": "string",
      "default": "",
      "description": "ID of the lead to delete",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "lead"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    },
    {
      "displayName": "Lead ID",
      "name": "leadId",
      "type": "string",
      "default": "",
      "description": "ID of the lead to retrieve",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "lead"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "lead"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 5,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "lead"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 1000
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Approved",
          "name": "approved",
          "type": "boolean",
          "default": true,
          "description": "Whether to retrieve only approved records. Defaults to true."
        },
        {
          "displayName": "Converted",
          "name": "converted",
          "type": "boolean",
          "default": false,
          "description": "Whether to retrieve only converted records. Defaults to false."
        },
        {
          "displayName": "Fields",
          "name": "fields",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getLeadFields"
          },
          "default": [],
          "description": "Return only these fields"
        },
        {
          "displayName": "Include Child",
          "name": "include_child",
          "type": "boolean",
          "default": false,
          "description": "Whether to retrieve only records from child territories"
        },
        {
          "displayName": "Sort By",
          "name": "sort_by",
          "type": "options",
          "typeOptions": {
            "loadOptionsMethod": "getLeadFields"
          },
          "default": [],
          "description": "Field to sort records by"
        },
        {
          "displayName": "Sort Order",
          "name": "sort_order",
          "type": "options",
          "options": [
            {
              "name": "Ascending",
              "value": "asc"
            },
            {
              "name": "Descending",
              "value": "desc"
            }
          ],
          "default": "desc",
          "description": "Ascending or descending order sort order"
        },
        {
          "displayName": "Territory ID",
          "name": "territory_id",
          "type": "string",
          "default": "",
          "description": "Retrieve only records from this territory"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "lead"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Lead ID",
      "name": "leadId",
      "type": "string",
      "default": "",
      "description": "ID of the lead to update",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "lead"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Address",
          "name": "Address",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Address Field",
          "options": [
            {
              "displayName": "Address Fields",
              "name": "address_fields",
              "values": [
                {
                  "displayName": "Street",
                  "name": "Street",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "City",
                  "name": "City",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "State",
                  "name": "State",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Country",
                  "name": "Country",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Zip Code",
                  "name": "Zip_Code",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Annual Revenue",
          "name": "Annual_Revenue",
          "type": "number",
          "default": "",
          "description": "Annual revenue of the lead’s company"
        },
        {
          "displayName": "Company",
          "name": "Company",
          "type": "string",
          "default": "",
          "description": "Company at which the lead works"
        },
        {
          "displayName": "Currency",
          "name": "Currency",
          "type": "options",
          "default": "USD",
          "description": "Symbol of the currency in which revenue is generated",
          "options": [
            {
              "name": "US Dollar",
              "value": "USD"
            },
            {
              "name": "Euro",
              "value": "EUR"
            },
            {
              "name": "UAE Dirham",
              "value": "AED"
            },
            {
              "name": "Afghani",
              "value": "AFN"
            },
            {
              "name": "Lek",
              "value": "ALL"
            },
            {
              "name": "Argentine Peso",
              "value": "ARS"
            },
            {
              "name": "Australian Dollar",
              "value": "AUD"
            },
            {
              "name": "Azerbaijan Manat",
              "value": "AZN"
            },
            {
              "name": "Barbados Dollar",
              "value": "BBD"
            },
            {
              "name": "Taka",
              "value": "BDT"
            },
            {
              "name": "Bulgarian Lev",
              "value": "BGN"
            },
            {
              "name": "Bermudian Dollar",
              "value": "BMD"
            },
            {
              "name": "Brunei Dollar",
              "value": "BND"
            },
            {
              "name": "Boliviano",
              "value": "BOB"
            },
            {
              "name": "Brazilian Real",
              "value": "BRL"
            },
            {
              "name": "Bahamian Dollar",
              "value": "BSD"
            },
            {
              "name": "Pula",
              "value": "BWP"
            },
            {
              "name": "Belize Dollar",
              "value": "BZD"
            },
            {
              "name": "Canadian Dollar",
              "value": "CAD"
            },
            {
              "name": "Swiss Franc",
              "value": "CHF"
            },
            {
              "name": "Chilean Peso",
              "value": "CLP"
            },
            {
              "name": "Yuan Renminbi",
              "value": "CNY"
            },
            {
              "name": "Colombian Peso",
              "value": "COP"
            },
            {
              "name": "Costa Rican Colon",
              "value": "CRC"
            },
            {
              "name": "Czech Koruna",
              "value": "CZK"
            },
            {
              "name": "Danish Krone",
              "value": "DKK"
            },
            {
              "name": "Dominican Peso",
              "value": "DOP"
            },
            {
              "name": "Algerian Dinar",
              "value": "DZD"
            },
            {
              "name": "Egyptian Pound",
              "value": "EGP"
            },
            {
              "name": "Fiji Dollar",
              "value": "FJD"
            },
            {
              "name": "Pound Sterling",
              "value": "GBP"
            },
            {
              "name": "Quetzal",
              "value": "GTQ"
            },
            {
              "name": "Hong Kong Dollar",
              "value": "HKD"
            },
            {
              "name": "Lempira",
              "value": "HNL"
            },
            {
              "name": "Kuna",
              "value": "HRK"
            },
            {
              "name": "Forint",
              "value": "HUF"
            },
            {
              "name": "Rupiah",
              "value": "IDR"
            },
            {
              "name": "New Israeli Sheqel",
              "value": "ILS"
            },
            {
              "name": "Indian Rupee",
              "value": "INR"
            },
            {
              "name": "Jamaican Dollar",
              "value": "JMD"
            },
            {
              "name": "Yen",
              "value": "JPY"
            },
            {
              "name": "Kenyan Shilling",
              "value": "KES"
            },
            {
              "name": "Won",
              "value": "KRW"
            },
            {
              "name": "Tenge",
              "value": "KZT"
            },
            {
              "name": "Lao Kip",
              "value": "LAK"
            },
            {
              "name": "Lebanese Pound",
              "value": "LBP"
            },
            {
              "name": "Sri Lanka Rupee",
              "value": "LKR"
            },
            {
              "name": "Liberian Dollar",
              "value": "LRD"
            },
            {
              "name": "Moroccan Dirham",
              "value": "MAD"
            },
            {
              "name": "Kyat",
              "value": "MMK"
            },
            {
              "name": "Pataca",
              "value": "MOP"
            },
            {
              "name": "Ouguiya",
              "value": "MRO"
            },
            {
              "name": "Mauritius Rupee",
              "value": "MUR"
            },
            {
              "name": "Rufiyaa",
              "value": "MVR"
            },
            {
              "name": "Mexican Peso",
              "value": "MXN"
            },
            {
              "name": "Malaysian Ringgit",
              "value": "MYR"
            },
            {
              "name": "Cordoba Oro",
              "value": "NIO"
            },
            {
              "name": "Norwegian Krone",
              "value": "NOK"
            },
            {
              "name": "Nepalese Rupee",
              "value": "NPR"
            },
            {
              "name": "New Zealand Dollar",
              "value": "NZD"
            },
            {
              "name": "Sol",
              "value": "PEN"
            },
            {
              "name": "Kina",
              "value": "PGK"
            },
            {
              "name": "Philippine Peso",
              "value": "PHP"
            },
            {
              "name": "Pakistan Rupee",
              "value": "PKR"
            },
            {
              "name": "Zloty",
              "value": "PLN"
            },
            {
              "name": "Qatari Rial",
              "value": "QAR"
            },
            {
              "name": "Romanian Leu",
              "value": "RON"
            },
            {
              "name": "Russian Ruble",
              "value": "RUB"
            },
            {
              "name": "Saudi Riyal",
              "value": "SAR"
            },
            {
              "name": "Solomon Islands Dollar",
              "value": "SBD"
            },
            {
              "name": "Seychelles Rupee",
              "value": "SCR"
            },
            {
              "name": "Swedish Krona",
              "value": "SEK"
            },
            {
              "name": "Singapore Dollar",
              "value": "SGD"
            },
            {
              "name": "Syrian Pound",
              "value": "SYP"
            },
            {
              "name": "Baht",
              "value": "THB"
            },
            {
              "name": "Pa’anga",
              "value": "TOP"
            },
            {
              "name": "Turkish Lira",
              "value": "TRY"
            },
            {
              "name": "Trinidad and Tobago Dollar",
              "value": "TTD"
            },
            {
              "name": "New Taiwan Dollar",
              "value": "TWD"
            },
            {
              "name": "Hryvnia",
              "value": "UAH"
            },
            {
              "name": "Dong",
              "value": "VND"
            },
            {
              "name": "Vatu",
              "value": "VUV"
            },
            {
              "name": "Tala",
              "value": "WST"
            },
            {
              "name": "East Caribbean Dollar",
              "value": "XCD"
            },
            {
              "name": "West African CFA Franc",
              "value": "XOF"
            },
            {
              "name": "Yemeni Rial",
              "value": "YER"
            },
            {
              "name": "Rand",
              "value": "ZAR"
            }
          ]
        },
        {
          "displayName": "Custom Fields",
          "name": "customFields",
          "placeholder": "Add Custom Field",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "description": "Filter by custom fields",
          "default": {},
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field ID",
                  "name": "fieldId",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getCustomLeadFields"
                  },
                  "default": "",
                  "description": "Custom field to set a value to"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on custom field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Description",
          "name": "Description",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Designation",
          "name": "Designation",
          "type": "string",
          "default": "",
          "description": "Position of the lead at their company"
        },
        {
          "displayName": "Email",
          "name": "Email",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Email Opt Out",
          "name": "Email_Opt_Out",
          "type": "boolean",
          "default": false
        },
        {
          "displayName": "Fax",
          "name": "Fax",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "First Name",
          "name": "First_Name",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Full Name",
          "name": "Full_Name",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Industry",
          "name": "Industry",
          "type": "string",
          "default": "",
          "description": "Industry to which the lead belongs"
        },
        {
          "displayName": "Industry Type",
          "name": "Industry_Type",
          "type": "string",
          "default": "",
          "description": "Type of industry to which the lead belongs"
        },
        {
          "displayName": "Last Name",
          "name": "Last_Name",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Lead Source",
          "name": "Lead_Source",
          "type": "string",
          "default": "",
          "description": "Source from which the lead was created"
        },
        {
          "displayName": "Lead Status",
          "name": "Lead_Status",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Mobile",
          "name": "Mobile",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Number of Employees",
          "name": "No_of_Employees",
          "type": "number",
          "default": "",
          "description": "Number of employees in the lead’s company"
        },
        {
          "displayName": "Phone",
          "name": "Phone",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Salutation",
          "name": "Salutation",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Secondary Email",
          "name": "Secondary_Email",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Skype ID",
          "name": "Skype_ID",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Twitter",
          "name": "Twitter",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Website",
          "name": "Website",
          "type": "string",
          "default": ""
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "lead"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a product",
          "action": "Create a product"
        },
        {
          "name": "Create or Update",
          "value": "upsert",
          "description": "Create a new record, or update the current one if it already exists (upsert)",
          "action": "Create or update a product"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a product",
          "action": "Delete a product"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get a product",
          "action": "Get a product"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many products",
          "action": "Get many products"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update a product",
          "action": "Update a product"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "product"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Product Name",
      "name": "productName",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "product"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Product Name",
      "name": "productName",
      "type": "string",
      "default": "",
      "description": "Name of the product. If a record with this product name exists it will be updated, otherwise a new one will be created.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "product"
          ],
          "operation": [
            "upsert"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Commission Rate",
          "name": "Commission_Rate",
          "type": "number",
          "description": "Commission rate for the product. For example, enter 12 for 12%.",
          "typeOptions": {
            "minValue": 0
          },
          "default": 0
        },
        {
          "displayName": "Custom Fields",
          "name": "customFields",
          "placeholder": "Add Custom Field",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "description": "Filter by custom fields",
          "default": {},
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field ID",
                  "name": "fieldId",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getCustomProductFields"
                  },
                  "default": "",
                  "description": "Custom field to set a value to"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on custom field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Description",
          "name": "Description",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Manufacturer",
          "name": "Manufacturer",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Product Active",
          "name": "Product_Active",
          "type": "boolean",
          "default": false
        },
        {
          "displayName": "Product Category",
          "name": "Product_Category",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Quantity in Demand",
          "name": "Qty_in_Demand",
          "type": "number",
          "typeOptions": {
            "minValue": 0
          },
          "default": 0
        },
        {
          "displayName": "Quantity in Stock",
          "name": "Qty_in_Stock",
          "type": "number",
          "typeOptions": {
            "minValue": 0
          },
          "default": 0
        },
        {
          "displayName": "Taxable",
          "name": "Taxable",
          "type": "boolean",
          "default": false
        },
        {
          "displayName": "Unit Price",
          "name": "Unit_Price",
          "type": "number",
          "typeOptions": {
            "minValue": 0
          },
          "default": 0
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "product"
          ],
          "operation": [
            "create",
            "upsert"
          ]
        }
      }
    },
    {
      "displayName": "Product ID",
      "name": "productId",
      "type": "string",
      "default": "",
      "description": "ID of the product to delete",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "product"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    },
    {
      "displayName": "Product ID",
      "name": "productId",
      "type": "string",
      "default": "",
      "description": "ID of the product to retrieve",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "product"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "product"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 5,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "product"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 1000
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Approved",
          "name": "approved",
          "type": "boolean",
          "default": true,
          "description": "Whether to retrieve only approved records. Defaults to true."
        },
        {
          "displayName": "Converted",
          "name": "converted",
          "type": "boolean",
          "default": false,
          "description": "Whether to retrieve only converted records. Defaults to false."
        },
        {
          "displayName": "Fields",
          "name": "fields",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getProductFields"
          },
          "default": [],
          "description": "Return only these fields"
        },
        {
          "displayName": "Include Child",
          "name": "include_child",
          "type": "boolean",
          "default": false,
          "description": "Whether to retrieve only records from child territories"
        },
        {
          "displayName": "Sort By",
          "name": "sort_by",
          "type": "options",
          "typeOptions": {
            "loadOptionsMethod": "getProductFields"
          },
          "default": [],
          "description": "Field to sort records by"
        },
        {
          "displayName": "Sort Order",
          "name": "sort_order",
          "type": "options",
          "options": [
            {
              "name": "Ascending",
              "value": "asc"
            },
            {
              "name": "Descending",
              "value": "desc"
            }
          ],
          "default": "desc",
          "description": "Ascending or descending order sort order"
        },
        {
          "displayName": "Territory ID",
          "name": "territory_id",
          "type": "string",
          "default": "",
          "description": "Retrieve only records from this territory"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "product"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Product ID",
      "name": "productId",
      "type": "string",
      "default": "",
      "description": "ID of the product to update",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "product"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Commission Rate",
          "name": "Commission_Rate",
          "type": "number",
          "description": "Commission rate for the product. For example, enter 12 for 12%.",
          "typeOptions": {
            "minValue": 0
          },
          "default": 0
        },
        {
          "displayName": "Custom Fields",
          "name": "customFields",
          "placeholder": "Add Custom Field",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "description": "Filter by custom fields",
          "default": {},
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field ID",
                  "name": "fieldId",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getCustomProductFields"
                  },
                  "default": "",
                  "description": "Custom field to set a value to"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on custom field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Description",
          "name": "Description",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Manufacturer",
          "name": "Manufacturer",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Product Active",
          "name": "Product_Active",
          "type": "boolean",
          "default": false
        },
        {
          "displayName": "Product Category",
          "name": "Product_Category",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Quantity in Demand",
          "name": "Qty_in_Demand",
          "type": "number",
          "typeOptions": {
            "minValue": 0
          },
          "default": 0
        },
        {
          "displayName": "Quantity in Stock",
          "name": "Qty_in_Stock",
          "type": "number",
          "typeOptions": {
            "minValue": 0
          },
          "default": 0
        },
        {
          "displayName": "Taxable",
          "name": "Taxable",
          "type": "boolean",
          "default": false
        },
        {
          "displayName": "Unit Price",
          "name": "Unit_Price",
          "type": "number",
          "typeOptions": {
            "minValue": 0
          },
          "default": 0
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "product"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a purchase order",
          "action": "Create a purchase order"
        },
        {
          "name": "Create or Update",
          "value": "upsert",
          "description": "Create a new record, or update the current one if it already exists (upsert)",
          "action": "Create or update a purchase order"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a purchase order",
          "action": "Delete a purchase order"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get a purchase order",
          "action": "Get a purchase order"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many purchase orders",
          "action": "Get many purchase orders"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update a purchase order",
          "action": "Update a purchase order"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "purchaseOrder"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Subject",
      "name": "subject",
      "type": "string",
      "default": "",
      "description": "Subject or title of the purchase order",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "purchaseOrder"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Subject",
      "name": "subject",
      "type": "string",
      "default": "",
      "description": "Subject or title of the purchase order. If a record with this subject exists it will be updated, otherwise a new one will be created.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "purchaseOrder"
          ],
          "operation": [
            "upsert"
          ]
        }
      }
    },
    {
      "displayName": "Vendor Name or ID",
      "name": "vendorId",
      "type": "options",
      "default": [],
      "description": "ID of the vendor associated with the purchase order. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "displayOptions": {
        "show": {
          "resource": [
            "purchaseOrder"
          ],
          "operation": [
            "create",
            "upsert"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "getVendors"
      }
    },
    {
      "displayName": "Products",
      "name": "Product_Details",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "List Price",
          "name": "list_price",
          "type": "number",
          "default": ""
        },
        {
          "displayName": "Product Name or ID",
          "name": "id",
          "type": "options",
          "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
          "default": [],
          "typeOptions": {
            "loadOptionsMethod": "getProducts"
          }
        },
        {
          "displayName": "Product Description",
          "name": "product_description",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Quantity",
          "name": "quantity",
          "type": "number",
          "default": 1
        },
        {
          "displayName": "Quantity in Stock",
          "name": "quantity_in_stock",
          "type": "number",
          "default": 0
        },
        {
          "displayName": "Tax",
          "name": "Tax",
          "type": "number",
          "default": 0
        },
        {
          "displayName": "Total",
          "name": "total",
          "type": "number",
          "default": 0
        },
        {
          "displayName": "Total After Discount",
          "name": "total_after_discount",
          "type": "number",
          "default": 0
        },
        {
          "displayName": "Total (Net)",
          "name": "net_total",
          "type": "number",
          "default": 0
        },
        {
          "displayName": "Unit Price",
          "name": "unit_price",
          "type": "number",
          "default": 0
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "purchaseOrder"
          ],
          "operation": [
            "create",
            "upsert"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true,
        "multipleValueButtonText": "Add Product"
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Adjustment",
          "name": "Adjustment",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Adjustment in the grand total, if any"
        },
        {
          "displayName": "Billing Address",
          "name": "Billing_Address",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Billing Address Field",
          "options": [
            {
              "displayName": "Billing Address Fields",
              "name": "billing_address_fields",
              "values": [
                {
                  "displayName": "Billing City",
                  "name": "Billing_City",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Billing Code",
                  "name": "Billing_Code",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Billing Country",
                  "name": "Billing_Country",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Billing State",
                  "name": "Billing_State",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Billing Street",
                  "name": "Billing_Street",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Carrier",
          "name": "Carrier",
          "type": "string",
          "default": "",
          "description": "Name of the carrier"
        },
        {
          "displayName": "Currency",
          "name": "Currency",
          "type": "options",
          "default": "USD",
          "description": "Symbol of the currency in which revenue is generated",
          "options": [
            {
              "name": "US Dollar",
              "value": "USD"
            },
            {
              "name": "Euro",
              "value": "EUR"
            },
            {
              "name": "UAE Dirham",
              "value": "AED"
            },
            {
              "name": "Afghani",
              "value": "AFN"
            },
            {
              "name": "Lek",
              "value": "ALL"
            },
            {
              "name": "Argentine Peso",
              "value": "ARS"
            },
            {
              "name": "Australian Dollar",
              "value": "AUD"
            },
            {
              "name": "Azerbaijan Manat",
              "value": "AZN"
            },
            {
              "name": "Barbados Dollar",
              "value": "BBD"
            },
            {
              "name": "Taka",
              "value": "BDT"
            },
            {
              "name": "Bulgarian Lev",
              "value": "BGN"
            },
            {
              "name": "Bermudian Dollar",
              "value": "BMD"
            },
            {
              "name": "Brunei Dollar",
              "value": "BND"
            },
            {
              "name": "Boliviano",
              "value": "BOB"
            },
            {
              "name": "Brazilian Real",
              "value": "BRL"
            },
            {
              "name": "Bahamian Dollar",
              "value": "BSD"
            },
            {
              "name": "Pula",
              "value": "BWP"
            },
            {
              "name": "Belize Dollar",
              "value": "BZD"
            },
            {
              "name": "Canadian Dollar",
              "value": "CAD"
            },
            {
              "name": "Swiss Franc",
              "value": "CHF"
            },
            {
              "name": "Chilean Peso",
              "value": "CLP"
            },
            {
              "name": "Yuan Renminbi",
              "value": "CNY"
            },
            {
              "name": "Colombian Peso",
              "value": "COP"
            },
            {
              "name": "Costa Rican Colon",
              "value": "CRC"
            },
            {
              "name": "Czech Koruna",
              "value": "CZK"
            },
            {
              "name": "Danish Krone",
              "value": "DKK"
            },
            {
              "name": "Dominican Peso",
              "value": "DOP"
            },
            {
              "name": "Algerian Dinar",
              "value": "DZD"
            },
            {
              "name": "Egyptian Pound",
              "value": "EGP"
            },
            {
              "name": "Fiji Dollar",
              "value": "FJD"
            },
            {
              "name": "Pound Sterling",
              "value": "GBP"
            },
            {
              "name": "Quetzal",
              "value": "GTQ"
            },
            {
              "name": "Hong Kong Dollar",
              "value": "HKD"
            },
            {
              "name": "Lempira",
              "value": "HNL"
            },
            {
              "name": "Kuna",
              "value": "HRK"
            },
            {
              "name": "Forint",
              "value": "HUF"
            },
            {
              "name": "Rupiah",
              "value": "IDR"
            },
            {
              "name": "New Israeli Sheqel",
              "value": "ILS"
            },
            {
              "name": "Indian Rupee",
              "value": "INR"
            },
            {
              "name": "Jamaican Dollar",
              "value": "JMD"
            },
            {
              "name": "Yen",
              "value": "JPY"
            },
            {
              "name": "Kenyan Shilling",
              "value": "KES"
            },
            {
              "name": "Won",
              "value": "KRW"
            },
            {
              "name": "Tenge",
              "value": "KZT"
            },
            {
              "name": "Lao Kip",
              "value": "LAK"
            },
            {
              "name": "Lebanese Pound",
              "value": "LBP"
            },
            {
              "name": "Sri Lanka Rupee",
              "value": "LKR"
            },
            {
              "name": "Liberian Dollar",
              "value": "LRD"
            },
            {
              "name": "Moroccan Dirham",
              "value": "MAD"
            },
            {
              "name": "Kyat",
              "value": "MMK"
            },
            {
              "name": "Pataca",
              "value": "MOP"
            },
            {
              "name": "Ouguiya",
              "value": "MRO"
            },
            {
              "name": "Mauritius Rupee",
              "value": "MUR"
            },
            {
              "name": "Rufiyaa",
              "value": "MVR"
            },
            {
              "name": "Mexican Peso",
              "value": "MXN"
            },
            {
              "name": "Malaysian Ringgit",
              "value": "MYR"
            },
            {
              "name": "Cordoba Oro",
              "value": "NIO"
            },
            {
              "name": "Norwegian Krone",
              "value": "NOK"
            },
            {
              "name": "Nepalese Rupee",
              "value": "NPR"
            },
            {
              "name": "New Zealand Dollar",
              "value": "NZD"
            },
            {
              "name": "Sol",
              "value": "PEN"
            },
            {
              "name": "Kina",
              "value": "PGK"
            },
            {
              "name": "Philippine Peso",
              "value": "PHP"
            },
            {
              "name": "Pakistan Rupee",
              "value": "PKR"
            },
            {
              "name": "Zloty",
              "value": "PLN"
            },
            {
              "name": "Qatari Rial",
              "value": "QAR"
            },
            {
              "name": "Romanian Leu",
              "value": "RON"
            },
            {
              "name": "Russian Ruble",
              "value": "RUB"
            },
            {
              "name": "Saudi Riyal",
              "value": "SAR"
            },
            {
              "name": "Solomon Islands Dollar",
              "value": "SBD"
            },
            {
              "name": "Seychelles Rupee",
              "value": "SCR"
            },
            {
              "name": "Swedish Krona",
              "value": "SEK"
            },
            {
              "name": "Singapore Dollar",
              "value": "SGD"
            },
            {
              "name": "Syrian Pound",
              "value": "SYP"
            },
            {
              "name": "Baht",
              "value": "THB"
            },
            {
              "name": "Pa’anga",
              "value": "TOP"
            },
            {
              "name": "Turkish Lira",
              "value": "TRY"
            },
            {
              "name": "Trinidad and Tobago Dollar",
              "value": "TTD"
            },
            {
              "name": "New Taiwan Dollar",
              "value": "TWD"
            },
            {
              "name": "Hryvnia",
              "value": "UAH"
            },
            {
              "name": "Dong",
              "value": "VND"
            },
            {
              "name": "Vatu",
              "value": "VUV"
            },
            {
              "name": "Tala",
              "value": "WST"
            },
            {
              "name": "East Caribbean Dollar",
              "value": "XCD"
            },
            {
              "name": "West African CFA Franc",
              "value": "XOF"
            },
            {
              "name": "Yemeni Rial",
              "value": "YER"
            },
            {
              "name": "Rand",
              "value": "ZAR"
            }
          ]
        },
        {
          "displayName": "Custom Fields",
          "name": "customFields",
          "placeholder": "Add Custom Field",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "description": "Filter by custom fields",
          "default": {},
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field ID",
                  "name": "fieldId",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getCustomPurchaseOrderFields"
                  },
                  "default": "",
                  "description": "Custom field to set a value to"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on custom field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Description",
          "name": "Description",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Discount",
          "name": "Discount",
          "type": "number",
          "description": "Discount applied to the purchase order. For example, enter 12 for 12%.",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          }
        },
        {
          "displayName": "Due Date",
          "name": "Due_Date",
          "type": "dateTime",
          "default": ""
        },
        {
          "displayName": "Exchange Rate",
          "name": "Exchange_Rate",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Exchange rate of the default currency to the home currency"
        },
        {
          "displayName": "Grand Total",
          "name": "Grand_Total",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Total amount for the product after deducting tax and discounts"
        },
        {
          "displayName": "PO Date",
          "name": "PO_Date",
          "type": "dateTime",
          "default": "",
          "description": "Date on which the purchase order was issued"
        },
        {
          "displayName": "PO Number",
          "name": "PO_Number",
          "type": "string",
          "default": "",
          "description": "ID of the purchase order after creating a case"
        },
        {
          "displayName": "Sales Commission",
          "name": "Sales_Commission",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Commission of sales person on deal closure as a percentage. For example, enter 12 for 12%."
        },
        {
          "displayName": "Shipping Address",
          "name": "Shipping_Address",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Shipping Address Field",
          "options": [
            {
              "displayName": "Shipping Address Fields",
              "name": "address_fields",
              "values": [
                {
                  "displayName": "Street",
                  "name": "Shipping_Street",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "City",
                  "name": "Shipping_City",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "State",
                  "name": "Shipping_State",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Country",
                  "name": "Shipping_Country",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Zip Code",
                  "name": "Shipping_Code",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Status Name or ID",
          "name": "Status",
          "type": "options",
          "default": [],
          "typeOptions": {
            "loadOptionsMethod": "getPurchaseOrderStatus"
          },
          "description": "Status of the purchase order. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        },
        {
          "displayName": "Sub Total",
          "name": "Sub_Total",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Total amount for the product excluding tax"
        },
        {
          "displayName": "Tax",
          "name": "Tax",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Tax amount as the sum of sales tax and value-added tax"
        },
        {
          "displayName": "Terms and Conditions",
          "name": "Terms_and_Conditions",
          "type": "string",
          "default": "",
          "description": "Terms and conditions associated with the purchase order"
        },
        {
          "displayName": "Tracking Number",
          "name": "Tracking_Number",
          "type": "string",
          "default": ""
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "purchaseOrder"
          ],
          "operation": [
            "create",
            "upsert"
          ]
        }
      }
    },
    {
      "displayName": "Purchase Order ID",
      "name": "purchaseOrderId",
      "type": "string",
      "default": "",
      "description": "ID of the purchase order to delete",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "purchaseOrder"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    },
    {
      "displayName": "Purchase Order ID",
      "name": "purchaseOrderId",
      "type": "string",
      "default": "",
      "description": "ID of the purchase order to retrieve",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "purchaseOrder"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "purchaseOrder"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 5,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "purchaseOrder"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 1000
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Approved",
          "name": "approved",
          "type": "boolean",
          "default": true,
          "description": "Whether to retrieve only approved records. Defaults to true."
        },
        {
          "displayName": "Converted",
          "name": "converted",
          "type": "boolean",
          "default": false,
          "description": "Whether to retrieve only converted records. Defaults to false."
        },
        {
          "displayName": "Fields",
          "name": "fields",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getPurchaseOrderFields"
          },
          "default": [],
          "description": "Return only these fields"
        },
        {
          "displayName": "Include Child",
          "name": "include_child",
          "type": "boolean",
          "default": false,
          "description": "Whether to retrieve only records from child territories"
        },
        {
          "displayName": "Sort By",
          "name": "sort_by",
          "type": "options",
          "typeOptions": {
            "loadOptionsMethod": "getPurchaseOrderFields"
          },
          "default": [],
          "description": "Field to sort records by"
        },
        {
          "displayName": "Sort Order",
          "name": "sort_order",
          "type": "options",
          "options": [
            {
              "name": "Ascending",
              "value": "asc"
            },
            {
              "name": "Descending",
              "value": "desc"
            }
          ],
          "default": "desc",
          "description": "Ascending or descending order sort order"
        },
        {
          "displayName": "Territory ID",
          "name": "territory_id",
          "type": "string",
          "default": "",
          "description": "Retrieve only records from this territory"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "purchaseOrder"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Purchase Order ID",
      "name": "purchaseOrderId",
      "type": "string",
      "default": "",
      "description": "ID of the purchase order to update",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "purchaseOrder"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Adjustment",
          "name": "Adjustment",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Adjustment in the grand total, if any"
        },
        {
          "displayName": "Billing Address",
          "name": "Billing_Address",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Billing Address Field",
          "options": [
            {
              "displayName": "Billing Address Fields",
              "name": "address_fields",
              "values": [
                {
                  "displayName": "Street",
                  "name": "Billing_Street",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "City",
                  "name": "Billing_City",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "State",
                  "name": "Billing_State",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Country",
                  "name": "Billing_Country",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Zip Code",
                  "name": "Billing_Code",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Carrier",
          "name": "Carrier",
          "type": "string",
          "default": "",
          "description": "Name of the carrier"
        },
        {
          "displayName": "Currency",
          "name": "Currency",
          "type": "options",
          "default": "USD",
          "description": "Symbol of the currency in which revenue is generated",
          "options": [
            {
              "name": "US Dollar",
              "value": "USD"
            },
            {
              "name": "Euro",
              "value": "EUR"
            },
            {
              "name": "UAE Dirham",
              "value": "AED"
            },
            {
              "name": "Afghani",
              "value": "AFN"
            },
            {
              "name": "Lek",
              "value": "ALL"
            },
            {
              "name": "Argentine Peso",
              "value": "ARS"
            },
            {
              "name": "Australian Dollar",
              "value": "AUD"
            },
            {
              "name": "Azerbaijan Manat",
              "value": "AZN"
            },
            {
              "name": "Barbados Dollar",
              "value": "BBD"
            },
            {
              "name": "Taka",
              "value": "BDT"
            },
            {
              "name": "Bulgarian Lev",
              "value": "BGN"
            },
            {
              "name": "Bermudian Dollar",
              "value": "BMD"
            },
            {
              "name": "Brunei Dollar",
              "value": "BND"
            },
            {
              "name": "Boliviano",
              "value": "BOB"
            },
            {
              "name": "Brazilian Real",
              "value": "BRL"
            },
            {
              "name": "Bahamian Dollar",
              "value": "BSD"
            },
            {
              "name": "Pula",
              "value": "BWP"
            },
            {
              "name": "Belize Dollar",
              "value": "BZD"
            },
            {
              "name": "Canadian Dollar",
              "value": "CAD"
            },
            {
              "name": "Swiss Franc",
              "value": "CHF"
            },
            {
              "name": "Chilean Peso",
              "value": "CLP"
            },
            {
              "name": "Yuan Renminbi",
              "value": "CNY"
            },
            {
              "name": "Colombian Peso",
              "value": "COP"
            },
            {
              "name": "Costa Rican Colon",
              "value": "CRC"
            },
            {
              "name": "Czech Koruna",
              "value": "CZK"
            },
            {
              "name": "Danish Krone",
              "value": "DKK"
            },
            {
              "name": "Dominican Peso",
              "value": "DOP"
            },
            {
              "name": "Algerian Dinar",
              "value": "DZD"
            },
            {
              "name": "Egyptian Pound",
              "value": "EGP"
            },
            {
              "name": "Fiji Dollar",
              "value": "FJD"
            },
            {
              "name": "Pound Sterling",
              "value": "GBP"
            },
            {
              "name": "Quetzal",
              "value": "GTQ"
            },
            {
              "name": "Hong Kong Dollar",
              "value": "HKD"
            },
            {
              "name": "Lempira",
              "value": "HNL"
            },
            {
              "name": "Kuna",
              "value": "HRK"
            },
            {
              "name": "Forint",
              "value": "HUF"
            },
            {
              "name": "Rupiah",
              "value": "IDR"
            },
            {
              "name": "New Israeli Sheqel",
              "value": "ILS"
            },
            {
              "name": "Indian Rupee",
              "value": "INR"
            },
            {
              "name": "Jamaican Dollar",
              "value": "JMD"
            },
            {
              "name": "Yen",
              "value": "JPY"
            },
            {
              "name": "Kenyan Shilling",
              "value": "KES"
            },
            {
              "name": "Won",
              "value": "KRW"
            },
            {
              "name": "Tenge",
              "value": "KZT"
            },
            {
              "name": "Lao Kip",
              "value": "LAK"
            },
            {
              "name": "Lebanese Pound",
              "value": "LBP"
            },
            {
              "name": "Sri Lanka Rupee",
              "value": "LKR"
            },
            {
              "name": "Liberian Dollar",
              "value": "LRD"
            },
            {
              "name": "Moroccan Dirham",
              "value": "MAD"
            },
            {
              "name": "Kyat",
              "value": "MMK"
            },
            {
              "name": "Pataca",
              "value": "MOP"
            },
            {
              "name": "Ouguiya",
              "value": "MRO"
            },
            {
              "name": "Mauritius Rupee",
              "value": "MUR"
            },
            {
              "name": "Rufiyaa",
              "value": "MVR"
            },
            {
              "name": "Mexican Peso",
              "value": "MXN"
            },
            {
              "name": "Malaysian Ringgit",
              "value": "MYR"
            },
            {
              "name": "Cordoba Oro",
              "value": "NIO"
            },
            {
              "name": "Norwegian Krone",
              "value": "NOK"
            },
            {
              "name": "Nepalese Rupee",
              "value": "NPR"
            },
            {
              "name": "New Zealand Dollar",
              "value": "NZD"
            },
            {
              "name": "Sol",
              "value": "PEN"
            },
            {
              "name": "Kina",
              "value": "PGK"
            },
            {
              "name": "Philippine Peso",
              "value": "PHP"
            },
            {
              "name": "Pakistan Rupee",
              "value": "PKR"
            },
            {
              "name": "Zloty",
              "value": "PLN"
            },
            {
              "name": "Qatari Rial",
              "value": "QAR"
            },
            {
              "name": "Romanian Leu",
              "value": "RON"
            },
            {
              "name": "Russian Ruble",
              "value": "RUB"
            },
            {
              "name": "Saudi Riyal",
              "value": "SAR"
            },
            {
              "name": "Solomon Islands Dollar",
              "value": "SBD"
            },
            {
              "name": "Seychelles Rupee",
              "value": "SCR"
            },
            {
              "name": "Swedish Krona",
              "value": "SEK"
            },
            {
              "name": "Singapore Dollar",
              "value": "SGD"
            },
            {
              "name": "Syrian Pound",
              "value": "SYP"
            },
            {
              "name": "Baht",
              "value": "THB"
            },
            {
              "name": "Pa’anga",
              "value": "TOP"
            },
            {
              "name": "Turkish Lira",
              "value": "TRY"
            },
            {
              "name": "Trinidad and Tobago Dollar",
              "value": "TTD"
            },
            {
              "name": "New Taiwan Dollar",
              "value": "TWD"
            },
            {
              "name": "Hryvnia",
              "value": "UAH"
            },
            {
              "name": "Dong",
              "value": "VND"
            },
            {
              "name": "Vatu",
              "value": "VUV"
            },
            {
              "name": "Tala",
              "value": "WST"
            },
            {
              "name": "East Caribbean Dollar",
              "value": "XCD"
            },
            {
              "name": "West African CFA Franc",
              "value": "XOF"
            },
            {
              "name": "Yemeni Rial",
              "value": "YER"
            },
            {
              "name": "Rand",
              "value": "ZAR"
            }
          ]
        },
        {
          "displayName": "Custom Fields",
          "name": "customFields",
          "placeholder": "Add Custom Field",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "description": "Filter by custom fields",
          "default": {},
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field ID",
                  "name": "fieldId",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getCustomPurchaseOrderFields"
                  },
                  "default": "",
                  "description": "Custom field to set a value to"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on custom field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Description",
          "name": "Description",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Discount",
          "name": "Discount",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          }
        },
        {
          "displayName": "Due Date",
          "name": "Due_Date",
          "type": "dateTime",
          "default": ""
        },
        {
          "displayName": "Exchange Rate",
          "name": "Exchange_Rate",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Exchange rate of the default currency to the home currency"
        },
        {
          "displayName": "Grand Total",
          "name": "Grand_Total",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Total amount for the product after deducting tax and discounts"
        },
        {
          "displayName": "PO Date",
          "name": "PO_Date",
          "type": "dateTime",
          "default": "",
          "description": "Date on which the purchase order was issued"
        },
        {
          "displayName": "PO Number",
          "name": "PO_Number",
          "type": "string",
          "default": "",
          "description": "ID of the purchase order after creating a case"
        },
        {
          "displayName": "Sales Commission",
          "name": "Sales_Commission",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Commission of sales person on deal closure as a percentage. For example, enter 12 for 12%."
        },
        {
          "displayName": "Shipping Address",
          "name": "Shipping_Address",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Shipping Address Field",
          "options": [
            {
              "displayName": "Shipping Address Fields",
              "name": "address_fields",
              "values": [
                {
                  "displayName": "Street",
                  "name": "Shipping_Street",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "City",
                  "name": "Shipping_City",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "State",
                  "name": "Shipping_State",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Country",
                  "name": "Shipping_Country",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Zip Code",
                  "name": "Shipping_Code",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Status Name or ID",
          "name": "Status",
          "type": "options",
          "default": [],
          "typeOptions": {
            "loadOptionsMethod": "getPurchaseOrderStatus"
          },
          "description": "Status of the purchase order. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        },
        {
          "displayName": "Sub Total",
          "name": "Sub_Total",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Total amount for the product excluding tax"
        },
        {
          "displayName": "Subject",
          "name": "Subject",
          "type": "string",
          "default": "",
          "description": "Subject or title of the purchase order"
        },
        {
          "displayName": "Tax",
          "name": "Tax",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Tax amount as the sum of sales tax and value-added tax"
        },
        {
          "displayName": "Terms and Conditions",
          "name": "Terms_and_Conditions",
          "type": "string",
          "default": "",
          "description": "Terms and conditions associated with the purchase order"
        },
        {
          "displayName": "Tracking Number",
          "name": "Tracking_Number",
          "type": "string",
          "default": ""
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "purchaseOrder"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a quote",
          "action": "Create a quote"
        },
        {
          "name": "Create or Update",
          "value": "upsert",
          "description": "Create a new record, or update the current one if it already exists (upsert)",
          "action": "Create or update a quote"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a quote",
          "action": "Delete a quote"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get a quote",
          "action": "Get a quote"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many quotes",
          "action": "Get many quotes"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update a quote",
          "action": "Update a quote"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "quote"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Subject",
      "name": "subject",
      "type": "string",
      "default": "",
      "description": "Subject or title of the quote",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "quote"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Subject",
      "name": "subject",
      "type": "string",
      "default": "",
      "description": "Subject or title of the quote. If a record with this subject exists it will be updated, otherwise a new one will be created.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "quote"
          ],
          "operation": [
            "upsert"
          ]
        }
      }
    },
    {
      "displayName": "Products",
      "name": "Product_Details",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "List Price",
          "name": "list_price",
          "type": "number",
          "default": ""
        },
        {
          "displayName": "Product Name or ID",
          "name": "id",
          "type": "options",
          "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
          "default": [],
          "typeOptions": {
            "loadOptionsMethod": "getProducts"
          }
        },
        {
          "displayName": "Product Description",
          "name": "product_description",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Quantity",
          "name": "quantity",
          "type": "number",
          "default": 1
        },
        {
          "displayName": "Quantity in Stock",
          "name": "quantity_in_stock",
          "type": "number",
          "default": 0
        },
        {
          "displayName": "Tax",
          "name": "Tax",
          "type": "number",
          "default": 0
        },
        {
          "displayName": "Total",
          "name": "total",
          "type": "number",
          "default": 0
        },
        {
          "displayName": "Total After Discount",
          "name": "total_after_discount",
          "type": "number",
          "default": 0
        },
        {
          "displayName": "Total (Net)",
          "name": "net_total",
          "type": "number",
          "default": 0
        },
        {
          "displayName": "Unit Price",
          "name": "unit_price",
          "type": "number",
          "default": 0
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "quote"
          ],
          "operation": [
            "create",
            "upsert"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true,
        "multipleValueButtonText": "Add Product"
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Adjustment",
          "name": "Adjustment",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Adjustment in the grand total, if any"
        },
        {
          "displayName": "Billing Address",
          "name": "Billing_Address",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Billing Address Field",
          "options": [
            {
              "displayName": "Billing Address Fields",
              "name": "address_fields",
              "values": [
                {
                  "displayName": "Street",
                  "name": "Billing_Street",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "City",
                  "name": "Billing_City",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "State",
                  "name": "Billing_State",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Country",
                  "name": "Billing_Country",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Zip Code",
                  "name": "Billing_Code",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Carrier",
          "name": "Carrier",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Currency",
          "name": "Currency",
          "type": "options",
          "default": "USD",
          "description": "Symbol of the currency in which revenue is generated",
          "options": [
            {
              "name": "US Dollar",
              "value": "USD"
            },
            {
              "name": "Euro",
              "value": "EUR"
            },
            {
              "name": "UAE Dirham",
              "value": "AED"
            },
            {
              "name": "Afghani",
              "value": "AFN"
            },
            {
              "name": "Lek",
              "value": "ALL"
            },
            {
              "name": "Argentine Peso",
              "value": "ARS"
            },
            {
              "name": "Australian Dollar",
              "value": "AUD"
            },
            {
              "name": "Azerbaijan Manat",
              "value": "AZN"
            },
            {
              "name": "Barbados Dollar",
              "value": "BBD"
            },
            {
              "name": "Taka",
              "value": "BDT"
            },
            {
              "name": "Bulgarian Lev",
              "value": "BGN"
            },
            {
              "name": "Bermudian Dollar",
              "value": "BMD"
            },
            {
              "name": "Brunei Dollar",
              "value": "BND"
            },
            {
              "name": "Boliviano",
              "value": "BOB"
            },
            {
              "name": "Brazilian Real",
              "value": "BRL"
            },
            {
              "name": "Bahamian Dollar",
              "value": "BSD"
            },
            {
              "name": "Pula",
              "value": "BWP"
            },
            {
              "name": "Belize Dollar",
              "value": "BZD"
            },
            {
              "name": "Canadian Dollar",
              "value": "CAD"
            },
            {
              "name": "Swiss Franc",
              "value": "CHF"
            },
            {
              "name": "Chilean Peso",
              "value": "CLP"
            },
            {
              "name": "Yuan Renminbi",
              "value": "CNY"
            },
            {
              "name": "Colombian Peso",
              "value": "COP"
            },
            {
              "name": "Costa Rican Colon",
              "value": "CRC"
            },
            {
              "name": "Czech Koruna",
              "value": "CZK"
            },
            {
              "name": "Danish Krone",
              "value": "DKK"
            },
            {
              "name": "Dominican Peso",
              "value": "DOP"
            },
            {
              "name": "Algerian Dinar",
              "value": "DZD"
            },
            {
              "name": "Egyptian Pound",
              "value": "EGP"
            },
            {
              "name": "Fiji Dollar",
              "value": "FJD"
            },
            {
              "name": "Pound Sterling",
              "value": "GBP"
            },
            {
              "name": "Quetzal",
              "value": "GTQ"
            },
            {
              "name": "Hong Kong Dollar",
              "value": "HKD"
            },
            {
              "name": "Lempira",
              "value": "HNL"
            },
            {
              "name": "Kuna",
              "value": "HRK"
            },
            {
              "name": "Forint",
              "value": "HUF"
            },
            {
              "name": "Rupiah",
              "value": "IDR"
            },
            {
              "name": "New Israeli Sheqel",
              "value": "ILS"
            },
            {
              "name": "Indian Rupee",
              "value": "INR"
            },
            {
              "name": "Jamaican Dollar",
              "value": "JMD"
            },
            {
              "name": "Yen",
              "value": "JPY"
            },
            {
              "name": "Kenyan Shilling",
              "value": "KES"
            },
            {
              "name": "Won",
              "value": "KRW"
            },
            {
              "name": "Tenge",
              "value": "KZT"
            },
            {
              "name": "Lao Kip",
              "value": "LAK"
            },
            {
              "name": "Lebanese Pound",
              "value": "LBP"
            },
            {
              "name": "Sri Lanka Rupee",
              "value": "LKR"
            },
            {
              "name": "Liberian Dollar",
              "value": "LRD"
            },
            {
              "name": "Moroccan Dirham",
              "value": "MAD"
            },
            {
              "name": "Kyat",
              "value": "MMK"
            },
            {
              "name": "Pataca",
              "value": "MOP"
            },
            {
              "name": "Ouguiya",
              "value": "MRO"
            },
            {
              "name": "Mauritius Rupee",
              "value": "MUR"
            },
            {
              "name": "Rufiyaa",
              "value": "MVR"
            },
            {
              "name": "Mexican Peso",
              "value": "MXN"
            },
            {
              "name": "Malaysian Ringgit",
              "value": "MYR"
            },
            {
              "name": "Cordoba Oro",
              "value": "NIO"
            },
            {
              "name": "Norwegian Krone",
              "value": "NOK"
            },
            {
              "name": "Nepalese Rupee",
              "value": "NPR"
            },
            {
              "name": "New Zealand Dollar",
              "value": "NZD"
            },
            {
              "name": "Sol",
              "value": "PEN"
            },
            {
              "name": "Kina",
              "value": "PGK"
            },
            {
              "name": "Philippine Peso",
              "value": "PHP"
            },
            {
              "name": "Pakistan Rupee",
              "value": "PKR"
            },
            {
              "name": "Zloty",
              "value": "PLN"
            },
            {
              "name": "Qatari Rial",
              "value": "QAR"
            },
            {
              "name": "Romanian Leu",
              "value": "RON"
            },
            {
              "name": "Russian Ruble",
              "value": "RUB"
            },
            {
              "name": "Saudi Riyal",
              "value": "SAR"
            },
            {
              "name": "Solomon Islands Dollar",
              "value": "SBD"
            },
            {
              "name": "Seychelles Rupee",
              "value": "SCR"
            },
            {
              "name": "Swedish Krona",
              "value": "SEK"
            },
            {
              "name": "Singapore Dollar",
              "value": "SGD"
            },
            {
              "name": "Syrian Pound",
              "value": "SYP"
            },
            {
              "name": "Baht",
              "value": "THB"
            },
            {
              "name": "Pa’anga",
              "value": "TOP"
            },
            {
              "name": "Turkish Lira",
              "value": "TRY"
            },
            {
              "name": "Trinidad and Tobago Dollar",
              "value": "TTD"
            },
            {
              "name": "New Taiwan Dollar",
              "value": "TWD"
            },
            {
              "name": "Hryvnia",
              "value": "UAH"
            },
            {
              "name": "Dong",
              "value": "VND"
            },
            {
              "name": "Vatu",
              "value": "VUV"
            },
            {
              "name": "Tala",
              "value": "WST"
            },
            {
              "name": "East Caribbean Dollar",
              "value": "XCD"
            },
            {
              "name": "West African CFA Franc",
              "value": "XOF"
            },
            {
              "name": "Yemeni Rial",
              "value": "YER"
            },
            {
              "name": "Rand",
              "value": "ZAR"
            }
          ]
        },
        {
          "displayName": "Custom Fields",
          "name": "customFields",
          "placeholder": "Add Custom Field",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "description": "Filter by custom fields",
          "default": {},
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field ID",
                  "name": "fieldId",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getCustomQuoteFields"
                  },
                  "default": "",
                  "description": "Custom field to set a value to"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on custom field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Description",
          "name": "Description",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Exchange Rate",
          "name": "Exchange_Rate",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Exchange rate of the default currency to the home currency"
        },
        {
          "displayName": "Grand Total",
          "name": "Grand_Total",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Total amount for the product after deducting tax and discounts"
        },
        {
          "displayName": "Quote Stage Name or ID",
          "name": "Quote_Stage",
          "type": "options",
          "default": [],
          "typeOptions": {
            "loadOptionsMethod": "getQuoteStage"
          },
          "description": "Stage of the quote. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        },
        {
          "displayName": "Shipping Address",
          "name": "Shipping_Address",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Shipping Address Field",
          "options": [
            {
              "displayName": "Shipping Address Fields",
              "name": "address_fields",
              "values": [
                {
                  "displayName": "Street",
                  "name": "Shipping_Street",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "City",
                  "name": "Shipping_City",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "State",
                  "name": "Shipping_State",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Country",
                  "name": "Shipping_Country",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Zip Code",
                  "name": "Shipping_Code",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Sub Total",
          "name": "Sub_Total",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Total amount for the product excluding tax"
        },
        {
          "displayName": "Tax",
          "name": "Tax",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Total amount as the sum of sales tax and value-added tax"
        },
        {
          "displayName": "Team",
          "name": "Team",
          "type": "string",
          "default": "",
          "description": "Team for whom the quote is created"
        },
        {
          "displayName": "Terms and Conditions",
          "name": "Terms_and_Conditions",
          "type": "string",
          "default": "",
          "description": "Terms and conditions associated with the quote"
        },
        {
          "displayName": "Valid Till",
          "name": "Valid_Till",
          "type": "dateTime",
          "default": "",
          "description": "Date until when the quote is valid"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "quote"
          ],
          "operation": [
            "create",
            "upsert"
          ]
        }
      }
    },
    {
      "displayName": "Quote ID",
      "name": "quoteId",
      "type": "string",
      "default": "",
      "description": "ID of the quote to delete",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "quote"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    },
    {
      "displayName": "Quote ID",
      "name": "quoteId",
      "type": "string",
      "default": "",
      "description": "ID of the quote to retrieve",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "quote"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "quote"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 5,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "quote"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 1000
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Approved",
          "name": "approved",
          "type": "boolean",
          "default": true,
          "description": "Whether to retrieve only approved records. Defaults to true."
        },
        {
          "displayName": "Converted",
          "name": "converted",
          "type": "boolean",
          "default": false,
          "description": "Whether to retrieve only converted records. Defaults to false."
        },
        {
          "displayName": "Fields",
          "name": "fields",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getQuoteFields"
          },
          "default": [],
          "description": "Return only these fields"
        },
        {
          "displayName": "Include Child",
          "name": "include_child",
          "type": "boolean",
          "default": false,
          "description": "Whether to retrieve only records from child territories"
        },
        {
          "displayName": "Sort By",
          "name": "sort_by",
          "type": "options",
          "typeOptions": {
            "loadOptionsMethod": "getQuoteFields"
          },
          "default": [],
          "description": "Field to sort records by"
        },
        {
          "displayName": "Sort Order",
          "name": "sort_order",
          "type": "options",
          "options": [
            {
              "name": "Ascending",
              "value": "asc"
            },
            {
              "name": "Descending",
              "value": "desc"
            }
          ],
          "default": "desc",
          "description": "Ascending or descending order sort order"
        },
        {
          "displayName": "Territory ID",
          "name": "territory_id",
          "type": "string",
          "default": "",
          "description": "Retrieve only records from this territory"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "quote"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Quote ID",
      "name": "quoteId",
      "type": "string",
      "default": "",
      "description": "ID of the quote to update",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "quote"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Adjustment",
          "name": "Adjustment",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Adjustment in the grand total, if any"
        },
        {
          "displayName": "Billing Address",
          "name": "Billing_Address",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Billing Address Field",
          "options": [
            {
              "displayName": "Billing Address Fields",
              "name": "address_fields",
              "values": [
                {
                  "displayName": "Street",
                  "name": "Billing_Street",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "City",
                  "name": "Billing_City",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "State",
                  "name": "Billing_State",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Country",
                  "name": "Billing_Country",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Zip Code",
                  "name": "Billing_Code",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Carrier",
          "name": "Carrier",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Currency",
          "name": "Currency",
          "type": "options",
          "default": "USD",
          "description": "Symbol of the currency in which revenue is generated",
          "options": [
            {
              "name": "US Dollar",
              "value": "USD"
            },
            {
              "name": "Euro",
              "value": "EUR"
            },
            {
              "name": "UAE Dirham",
              "value": "AED"
            },
            {
              "name": "Afghani",
              "value": "AFN"
            },
            {
              "name": "Lek",
              "value": "ALL"
            },
            {
              "name": "Argentine Peso",
              "value": "ARS"
            },
            {
              "name": "Australian Dollar",
              "value": "AUD"
            },
            {
              "name": "Azerbaijan Manat",
              "value": "AZN"
            },
            {
              "name": "Barbados Dollar",
              "value": "BBD"
            },
            {
              "name": "Taka",
              "value": "BDT"
            },
            {
              "name": "Bulgarian Lev",
              "value": "BGN"
            },
            {
              "name": "Bermudian Dollar",
              "value": "BMD"
            },
            {
              "name": "Brunei Dollar",
              "value": "BND"
            },
            {
              "name": "Boliviano",
              "value": "BOB"
            },
            {
              "name": "Brazilian Real",
              "value": "BRL"
            },
            {
              "name": "Bahamian Dollar",
              "value": "BSD"
            },
            {
              "name": "Pula",
              "value": "BWP"
            },
            {
              "name": "Belize Dollar",
              "value": "BZD"
            },
            {
              "name": "Canadian Dollar",
              "value": "CAD"
            },
            {
              "name": "Swiss Franc",
              "value": "CHF"
            },
            {
              "name": "Chilean Peso",
              "value": "CLP"
            },
            {
              "name": "Yuan Renminbi",
              "value": "CNY"
            },
            {
              "name": "Colombian Peso",
              "value": "COP"
            },
            {
              "name": "Costa Rican Colon",
              "value": "CRC"
            },
            {
              "name": "Czech Koruna",
              "value": "CZK"
            },
            {
              "name": "Danish Krone",
              "value": "DKK"
            },
            {
              "name": "Dominican Peso",
              "value": "DOP"
            },
            {
              "name": "Algerian Dinar",
              "value": "DZD"
            },
            {
              "name": "Egyptian Pound",
              "value": "EGP"
            },
            {
              "name": "Fiji Dollar",
              "value": "FJD"
            },
            {
              "name": "Pound Sterling",
              "value": "GBP"
            },
            {
              "name": "Quetzal",
              "value": "GTQ"
            },
            {
              "name": "Hong Kong Dollar",
              "value": "HKD"
            },
            {
              "name": "Lempira",
              "value": "HNL"
            },
            {
              "name": "Kuna",
              "value": "HRK"
            },
            {
              "name": "Forint",
              "value": "HUF"
            },
            {
              "name": "Rupiah",
              "value": "IDR"
            },
            {
              "name": "New Israeli Sheqel",
              "value": "ILS"
            },
            {
              "name": "Indian Rupee",
              "value": "INR"
            },
            {
              "name": "Jamaican Dollar",
              "value": "JMD"
            },
            {
              "name": "Yen",
              "value": "JPY"
            },
            {
              "name": "Kenyan Shilling",
              "value": "KES"
            },
            {
              "name": "Won",
              "value": "KRW"
            },
            {
              "name": "Tenge",
              "value": "KZT"
            },
            {
              "name": "Lao Kip",
              "value": "LAK"
            },
            {
              "name": "Lebanese Pound",
              "value": "LBP"
            },
            {
              "name": "Sri Lanka Rupee",
              "value": "LKR"
            },
            {
              "name": "Liberian Dollar",
              "value": "LRD"
            },
            {
              "name": "Moroccan Dirham",
              "value": "MAD"
            },
            {
              "name": "Kyat",
              "value": "MMK"
            },
            {
              "name": "Pataca",
              "value": "MOP"
            },
            {
              "name": "Ouguiya",
              "value": "MRO"
            },
            {
              "name": "Mauritius Rupee",
              "value": "MUR"
            },
            {
              "name": "Rufiyaa",
              "value": "MVR"
            },
            {
              "name": "Mexican Peso",
              "value": "MXN"
            },
            {
              "name": "Malaysian Ringgit",
              "value": "MYR"
            },
            {
              "name": "Cordoba Oro",
              "value": "NIO"
            },
            {
              "name": "Norwegian Krone",
              "value": "NOK"
            },
            {
              "name": "Nepalese Rupee",
              "value": "NPR"
            },
            {
              "name": "New Zealand Dollar",
              "value": "NZD"
            },
            {
              "name": "Sol",
              "value": "PEN"
            },
            {
              "name": "Kina",
              "value": "PGK"
            },
            {
              "name": "Philippine Peso",
              "value": "PHP"
            },
            {
              "name": "Pakistan Rupee",
              "value": "PKR"
            },
            {
              "name": "Zloty",
              "value": "PLN"
            },
            {
              "name": "Qatari Rial",
              "value": "QAR"
            },
            {
              "name": "Romanian Leu",
              "value": "RON"
            },
            {
              "name": "Russian Ruble",
              "value": "RUB"
            },
            {
              "name": "Saudi Riyal",
              "value": "SAR"
            },
            {
              "name": "Solomon Islands Dollar",
              "value": "SBD"
            },
            {
              "name": "Seychelles Rupee",
              "value": "SCR"
            },
            {
              "name": "Swedish Krona",
              "value": "SEK"
            },
            {
              "name": "Singapore Dollar",
              "value": "SGD"
            },
            {
              "name": "Syrian Pound",
              "value": "SYP"
            },
            {
              "name": "Baht",
              "value": "THB"
            },
            {
              "name": "Pa’anga",
              "value": "TOP"
            },
            {
              "name": "Turkish Lira",
              "value": "TRY"
            },
            {
              "name": "Trinidad and Tobago Dollar",
              "value": "TTD"
            },
            {
              "name": "New Taiwan Dollar",
              "value": "TWD"
            },
            {
              "name": "Hryvnia",
              "value": "UAH"
            },
            {
              "name": "Dong",
              "value": "VND"
            },
            {
              "name": "Vatu",
              "value": "VUV"
            },
            {
              "name": "Tala",
              "value": "WST"
            },
            {
              "name": "East Caribbean Dollar",
              "value": "XCD"
            },
            {
              "name": "West African CFA Franc",
              "value": "XOF"
            },
            {
              "name": "Yemeni Rial",
              "value": "YER"
            },
            {
              "name": "Rand",
              "value": "ZAR"
            }
          ]
        },
        {
          "displayName": "Custom Fields",
          "name": "customFields",
          "placeholder": "Add Custom Field",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "description": "Filter by custom fields",
          "default": {},
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field ID",
                  "name": "fieldId",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getCustomQuoteFields"
                  },
                  "default": "",
                  "description": "Custom field to set a value to"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on custom field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Description",
          "name": "Description",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Exchange Rate",
          "name": "Exchange_Rate",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Exchange rate of the default currency to the home currency"
        },
        {
          "displayName": "Grand Total",
          "name": "Grand_Total",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Total amount for the product after deducting tax and discounts"
        },
        {
          "displayName": "Quote Stage Name or ID",
          "name": "Quote_Stage",
          "type": "options",
          "default": [],
          "typeOptions": {
            "loadOptionsMethod": "getQuoteStage"
          },
          "description": "Stage of the quote. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        },
        {
          "displayName": "Shipping Address",
          "name": "Shipping_Address",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Shipping Address Field",
          "options": [
            {
              "displayName": "Shipping Address Fields",
              "name": "address_fields",
              "values": [
                {
                  "displayName": "Street",
                  "name": "Shipping_Street",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "City",
                  "name": "Shipping_City",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "State",
                  "name": "Shipping_State",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Country",
                  "name": "Shipping_Country",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Zip Code",
                  "name": "Shipping_Code",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Sub Total",
          "name": "Sub_Total",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Total amount for the product excluding tax"
        },
        {
          "displayName": "Subject",
          "name": "Subject",
          "type": "string",
          "default": "",
          "description": "Subject or title of the quote"
        },
        {
          "displayName": "Tax",
          "name": "Tax",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Tax amount as the sum of sales tax and value-added tax"
        },
        {
          "displayName": "Team",
          "name": "Team",
          "type": "string",
          "default": "",
          "description": "Team for whom the quote is created"
        },
        {
          "displayName": "Terms and Conditions",
          "name": "Terms_and_Conditions",
          "type": "string",
          "default": "",
          "description": "Terms and conditions associated with the quote"
        },
        {
          "displayName": "Valid Till",
          "name": "Valid_Till",
          "type": "dateTime",
          "default": "",
          "description": "Date until when the quote is valid"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "quote"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a sales order",
          "action": "Create a sales order"
        },
        {
          "name": "Create or Update",
          "value": "upsert",
          "description": "Create a new record, or update the current one if it already exists (upsert)",
          "action": "Create or update a sales order"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a sales order",
          "action": "Delete a sales order"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get a sales order",
          "action": "Get a sales order"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many sales orders",
          "action": "Get many sales orders"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update a sales order",
          "action": "Update a sales order"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "salesOrder"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Account Name or ID",
      "name": "accountId",
      "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": {
          "resource": [
            "salesOrder"
          ],
          "operation": [
            "create",
            "upsert"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "getAccounts"
      }
    },
    {
      "displayName": "Subject",
      "name": "subject",
      "type": "string",
      "default": "",
      "description": "Subject or title of the sales order",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "salesOrder"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Subject",
      "name": "subject",
      "type": "string",
      "default": "",
      "description": "Subject or title of the sales order. If a record with this subject exists it will be updated, otherwise a new one will be created.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "salesOrder"
          ],
          "operation": [
            "upsert"
          ]
        }
      }
    },
    {
      "displayName": "Products",
      "name": "Product_Details",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "List Price",
          "name": "list_price",
          "type": "number",
          "default": ""
        },
        {
          "displayName": "Product Name or ID",
          "name": "id",
          "type": "options",
          "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
          "default": [],
          "typeOptions": {
            "loadOptionsMethod": "getProducts"
          }
        },
        {
          "displayName": "Product Description",
          "name": "product_description",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Quantity",
          "name": "quantity",
          "type": "number",
          "default": 1
        },
        {
          "displayName": "Quantity in Stock",
          "name": "quantity_in_stock",
          "type": "number",
          "default": 0
        },
        {
          "displayName": "Tax",
          "name": "Tax",
          "type": "number",
          "default": 0
        },
        {
          "displayName": "Total",
          "name": "total",
          "type": "number",
          "default": 0
        },
        {
          "displayName": "Total After Discount",
          "name": "total_after_discount",
          "type": "number",
          "default": 0
        },
        {
          "displayName": "Total (Net)",
          "name": "net_total",
          "type": "number",
          "default": 0
        },
        {
          "displayName": "Unit Price",
          "name": "unit_price",
          "type": "number",
          "default": 0
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "salesOrder"
          ],
          "operation": [
            "create",
            "upsert"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true,
        "multipleValueButtonText": "Add Product"
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Adjustment",
          "name": "Adjustment",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Adjustment in the grand total, if any"
        },
        {
          "displayName": "Billing Address",
          "name": "Billing_Address",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Billing Address Field",
          "options": [
            {
              "displayName": "Billing Address Fields",
              "name": "address_fields",
              "values": [
                {
                  "displayName": "Street",
                  "name": "Billing_Street",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "City",
                  "name": "Billing_City",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "State",
                  "name": "Billing_State",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Country",
                  "name": "Billing_Country",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Zip Code",
                  "name": "Billing_Code",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Carrier",
          "name": "Carrier",
          "type": "string",
          "default": "",
          "description": "Name of the carrier"
        },
        {
          "displayName": "Contact Name or ID",
          "name": "contactId",
          "type": "options",
          "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
          "default": [],
          "typeOptions": {
            "loadOptionsMethod": "getContacts"
          }
        },
        {
          "displayName": "Currency",
          "name": "Currency",
          "type": "options",
          "default": "USD",
          "description": "Symbol of the currency in which revenue is generated",
          "options": [
            {
              "name": "US Dollar",
              "value": "USD"
            },
            {
              "name": "Euro",
              "value": "EUR"
            },
            {
              "name": "UAE Dirham",
              "value": "AED"
            },
            {
              "name": "Afghani",
              "value": "AFN"
            },
            {
              "name": "Lek",
              "value": "ALL"
            },
            {
              "name": "Argentine Peso",
              "value": "ARS"
            },
            {
              "name": "Australian Dollar",
              "value": "AUD"
            },
            {
              "name": "Azerbaijan Manat",
              "value": "AZN"
            },
            {
              "name": "Barbados Dollar",
              "value": "BBD"
            },
            {
              "name": "Taka",
              "value": "BDT"
            },
            {
              "name": "Bulgarian Lev",
              "value": "BGN"
            },
            {
              "name": "Bermudian Dollar",
              "value": "BMD"
            },
            {
              "name": "Brunei Dollar",
              "value": "BND"
            },
            {
              "name": "Boliviano",
              "value": "BOB"
            },
            {
              "name": "Brazilian Real",
              "value": "BRL"
            },
            {
              "name": "Bahamian Dollar",
              "value": "BSD"
            },
            {
              "name": "Pula",
              "value": "BWP"
            },
            {
              "name": "Belize Dollar",
              "value": "BZD"
            },
            {
              "name": "Canadian Dollar",
              "value": "CAD"
            },
            {
              "name": "Swiss Franc",
              "value": "CHF"
            },
            {
              "name": "Chilean Peso",
              "value": "CLP"
            },
            {
              "name": "Yuan Renminbi",
              "value": "CNY"
            },
            {
              "name": "Colombian Peso",
              "value": "COP"
            },
            {
              "name": "Costa Rican Colon",
              "value": "CRC"
            },
            {
              "name": "Czech Koruna",
              "value": "CZK"
            },
            {
              "name": "Danish Krone",
              "value": "DKK"
            },
            {
              "name": "Dominican Peso",
              "value": "DOP"
            },
            {
              "name": "Algerian Dinar",
              "value": "DZD"
            },
            {
              "name": "Egyptian Pound",
              "value": "EGP"
            },
            {
              "name": "Fiji Dollar",
              "value": "FJD"
            },
            {
              "name": "Pound Sterling",
              "value": "GBP"
            },
            {
              "name": "Quetzal",
              "value": "GTQ"
            },
            {
              "name": "Hong Kong Dollar",
              "value": "HKD"
            },
            {
              "name": "Lempira",
              "value": "HNL"
            },
            {
              "name": "Kuna",
              "value": "HRK"
            },
            {
              "name": "Forint",
              "value": "HUF"
            },
            {
              "name": "Rupiah",
              "value": "IDR"
            },
            {
              "name": "New Israeli Sheqel",
              "value": "ILS"
            },
            {
              "name": "Indian Rupee",
              "value": "INR"
            },
            {
              "name": "Jamaican Dollar",
              "value": "JMD"
            },
            {
              "name": "Yen",
              "value": "JPY"
            },
            {
              "name": "Kenyan Shilling",
              "value": "KES"
            },
            {
              "name": "Won",
              "value": "KRW"
            },
            {
              "name": "Tenge",
              "value": "KZT"
            },
            {
              "name": "Lao Kip",
              "value": "LAK"
            },
            {
              "name": "Lebanese Pound",
              "value": "LBP"
            },
            {
              "name": "Sri Lanka Rupee",
              "value": "LKR"
            },
            {
              "name": "Liberian Dollar",
              "value": "LRD"
            },
            {
              "name": "Moroccan Dirham",
              "value": "MAD"
            },
            {
              "name": "Kyat",
              "value": "MMK"
            },
            {
              "name": "Pataca",
              "value": "MOP"
            },
            {
              "name": "Ouguiya",
              "value": "MRO"
            },
            {
              "name": "Mauritius Rupee",
              "value": "MUR"
            },
            {
              "name": "Rufiyaa",
              "value": "MVR"
            },
            {
              "name": "Mexican Peso",
              "value": "MXN"
            },
            {
              "name": "Malaysian Ringgit",
              "value": "MYR"
            },
            {
              "name": "Cordoba Oro",
              "value": "NIO"
            },
            {
              "name": "Norwegian Krone",
              "value": "NOK"
            },
            {
              "name": "Nepalese Rupee",
              "value": "NPR"
            },
            {
              "name": "New Zealand Dollar",
              "value": "NZD"
            },
            {
              "name": "Sol",
              "value": "PEN"
            },
            {
              "name": "Kina",
              "value": "PGK"
            },
            {
              "name": "Philippine Peso",
              "value": "PHP"
            },
            {
              "name": "Pakistan Rupee",
              "value": "PKR"
            },
            {
              "name": "Zloty",
              "value": "PLN"
            },
            {
              "name": "Qatari Rial",
              "value": "QAR"
            },
            {
              "name": "Romanian Leu",
              "value": "RON"
            },
            {
              "name": "Russian Ruble",
              "value": "RUB"
            },
            {
              "name": "Saudi Riyal",
              "value": "SAR"
            },
            {
              "name": "Solomon Islands Dollar",
              "value": "SBD"
            },
            {
              "name": "Seychelles Rupee",
              "value": "SCR"
            },
            {
              "name": "Swedish Krona",
              "value": "SEK"
            },
            {
              "name": "Singapore Dollar",
              "value": "SGD"
            },
            {
              "name": "Syrian Pound",
              "value": "SYP"
            },
            {
              "name": "Baht",
              "value": "THB"
            },
            {
              "name": "Pa’anga",
              "value": "TOP"
            },
            {
              "name": "Turkish Lira",
              "value": "TRY"
            },
            {
              "name": "Trinidad and Tobago Dollar",
              "value": "TTD"
            },
            {
              "name": "New Taiwan Dollar",
              "value": "TWD"
            },
            {
              "name": "Hryvnia",
              "value": "UAH"
            },
            {
              "name": "Dong",
              "value": "VND"
            },
            {
              "name": "Vatu",
              "value": "VUV"
            },
            {
              "name": "Tala",
              "value": "WST"
            },
            {
              "name": "East Caribbean Dollar",
              "value": "XCD"
            },
            {
              "name": "West African CFA Franc",
              "value": "XOF"
            },
            {
              "name": "Yemeni Rial",
              "value": "YER"
            },
            {
              "name": "Rand",
              "value": "ZAR"
            }
          ]
        },
        {
          "displayName": "Custom Fields",
          "name": "customFields",
          "placeholder": "Add Custom Field",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "description": "Filter by custom fields",
          "default": {},
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field ID",
                  "name": "fieldId",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getCustomSalesOrderFields"
                  },
                  "default": "",
                  "description": "Custom field to set a value to"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on custom field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Deal Name or ID",
          "name": "dealId",
          "type": "options",
          "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
          "default": [],
          "typeOptions": {
            "loadOptionsMethod": "getDeals"
          }
        },
        {
          "displayName": "Description",
          "name": "Description",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Discount",
          "name": "Discount",
          "type": "number",
          "description": "Discount applied to the sales order. For example, enter 12 for 12%.",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          }
        },
        {
          "displayName": "Due Date",
          "name": "Due_Date",
          "type": "dateTime",
          "default": ""
        },
        {
          "displayName": "Exchange Rate",
          "name": "Exchange_Rate",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Exchange rate of the default currency to the home currency"
        },
        {
          "displayName": "Grand Total",
          "name": "Grand_Total",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Total amount for the product after deducting tax and discounts"
        },
        {
          "displayName": "Sales Order Number",
          "name": "SO_Number",
          "type": "string",
          "default": "",
          "description": "ID of the sales order after creating a case"
        },
        {
          "displayName": "Sales Commission",
          "name": "Sales_Commission",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Commission of sales person on deal closure as a percentage. For example, enter 12 for 12%."
        },
        {
          "displayName": "Shipping Address",
          "name": "Shipping_Address",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Shipping Address Field",
          "options": [
            {
              "displayName": "Shipping Address Fields",
              "name": "address_fields",
              "values": [
                {
                  "displayName": "Street",
                  "name": "Shipping_Street",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "City",
                  "name": "Shipping_City",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "State",
                  "name": "Shipping_State",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Country",
                  "name": "Shipping_Country",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Zip Code",
                  "name": "Shipping_Code",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Status Name or ID",
          "name": "Status",
          "type": "options",
          "default": [],
          "typeOptions": {
            "loadOptionsMethod": "getSalesOrderStatus"
          },
          "description": "Status of the sales order. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        },
        {
          "displayName": "Sub Total",
          "name": "Sub_Total",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Total amount for the product excluding tax"
        },
        {
          "displayName": "Tax",
          "name": "Tax",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Tax amount as the sum of sales tax and value-added tax"
        },
        {
          "displayName": "Terms and Conditions",
          "name": "Terms_and_Conditions",
          "type": "string",
          "default": "",
          "description": "Terms and conditions associated with the purchase order"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "salesOrder"
          ],
          "operation": [
            "create",
            "upsert"
          ]
        }
      }
    },
    {
      "displayName": "Sales Order ID",
      "name": "salesOrderId",
      "type": "string",
      "default": "",
      "description": "ID of the sales order to delete",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "salesOrder"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    },
    {
      "displayName": "Sales Order ID",
      "name": "salesOrderId",
      "type": "string",
      "default": "",
      "description": "ID of the sales order to retrieve",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "salesOrder"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "salesOrder"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 5,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "salesOrder"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 1000
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Approved",
          "name": "approved",
          "type": "boolean",
          "default": true,
          "description": "Whether to retrieve only approved records. Defaults to true."
        },
        {
          "displayName": "Converted",
          "name": "converted",
          "type": "boolean",
          "default": false,
          "description": "Whether to retrieve only converted records. Defaults to false."
        },
        {
          "displayName": "Fields",
          "name": "fields",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getSalesOrderFields"
          },
          "default": [],
          "description": "Return only these fields"
        },
        {
          "displayName": "Include Child",
          "name": "include_child",
          "type": "boolean",
          "default": false,
          "description": "Whether to retrieve only records from child territories"
        },
        {
          "displayName": "Sort By",
          "name": "sort_by",
          "type": "options",
          "typeOptions": {
            "loadOptionsMethod": "getSalesOrderFields"
          },
          "default": [],
          "description": "Field to sort records by"
        },
        {
          "displayName": "Sort Order",
          "name": "sort_order",
          "type": "options",
          "options": [
            {
              "name": "Ascending",
              "value": "asc"
            },
            {
              "name": "Descending",
              "value": "desc"
            }
          ],
          "default": "desc",
          "description": "Ascending or descending order sort order"
        },
        {
          "displayName": "Territory ID",
          "name": "territory_id",
          "type": "string",
          "default": "",
          "description": "Retrieve only records from this territory"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "salesOrder"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Sales Order ID",
      "name": "salesOrderId",
      "type": "string",
      "default": "",
      "description": "ID of the sales order to update",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "salesOrder"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Account Name or ID",
          "name": "accountId",
          "type": "options",
          "default": [],
          "typeOptions": {
            "loadOptionsMethod": "getAccounts"
          },
          "description": "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>."
        },
        {
          "displayName": "Adjustment",
          "name": "Adjustment",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Adjustment in the grand total, if any"
        },
        {
          "displayName": "Billing Address",
          "name": "Billing_Address",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Billing Address Field",
          "options": [
            {
              "displayName": "Billing Address Fields",
              "name": "address_fields",
              "values": [
                {
                  "displayName": "Street",
                  "name": "Billing_Street",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "City",
                  "name": "Billing_City",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "State",
                  "name": "Billing_State",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Country",
                  "name": "Billing_Country",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Zip Code",
                  "name": "Billing_Code",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Carrier",
          "name": "Carrier",
          "type": "string",
          "default": "",
          "description": "Name of the carrier"
        },
        {
          "displayName": "Contact Name or ID",
          "name": "contactId",
          "type": "options",
          "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
          "default": [],
          "typeOptions": {
            "loadOptionsMethod": "getContacts"
          }
        },
        {
          "displayName": "Currency",
          "name": "Currency",
          "type": "options",
          "default": "USD",
          "description": "Symbol of the currency in which revenue is generated",
          "options": [
            {
              "name": "US Dollar",
              "value": "USD"
            },
            {
              "name": "Euro",
              "value": "EUR"
            },
            {
              "name": "UAE Dirham",
              "value": "AED"
            },
            {
              "name": "Afghani",
              "value": "AFN"
            },
            {
              "name": "Lek",
              "value": "ALL"
            },
            {
              "name": "Argentine Peso",
              "value": "ARS"
            },
            {
              "name": "Australian Dollar",
              "value": "AUD"
            },
            {
              "name": "Azerbaijan Manat",
              "value": "AZN"
            },
            {
              "name": "Barbados Dollar",
              "value": "BBD"
            },
            {
              "name": "Taka",
              "value": "BDT"
            },
            {
              "name": "Bulgarian Lev",
              "value": "BGN"
            },
            {
              "name": "Bermudian Dollar",
              "value": "BMD"
            },
            {
              "name": "Brunei Dollar",
              "value": "BND"
            },
            {
              "name": "Boliviano",
              "value": "BOB"
            },
            {
              "name": "Brazilian Real",
              "value": "BRL"
            },
            {
              "name": "Bahamian Dollar",
              "value": "BSD"
            },
            {
              "name": "Pula",
              "value": "BWP"
            },
            {
              "name": "Belize Dollar",
              "value": "BZD"
            },
            {
              "name": "Canadian Dollar",
              "value": "CAD"
            },
            {
              "name": "Swiss Franc",
              "value": "CHF"
            },
            {
              "name": "Chilean Peso",
              "value": "CLP"
            },
            {
              "name": "Yuan Renminbi",
              "value": "CNY"
            },
            {
              "name": "Colombian Peso",
              "value": "COP"
            },
            {
              "name": "Costa Rican Colon",
              "value": "CRC"
            },
            {
              "name": "Czech Koruna",
              "value": "CZK"
            },
            {
              "name": "Danish Krone",
              "value": "DKK"
            },
            {
              "name": "Dominican Peso",
              "value": "DOP"
            },
            {
              "name": "Algerian Dinar",
              "value": "DZD"
            },
            {
              "name": "Egyptian Pound",
              "value": "EGP"
            },
            {
              "name": "Fiji Dollar",
              "value": "FJD"
            },
            {
              "name": "Pound Sterling",
              "value": "GBP"
            },
            {
              "name": "Quetzal",
              "value": "GTQ"
            },
            {
              "name": "Hong Kong Dollar",
              "value": "HKD"
            },
            {
              "name": "Lempira",
              "value": "HNL"
            },
            {
              "name": "Kuna",
              "value": "HRK"
            },
            {
              "name": "Forint",
              "value": "HUF"
            },
            {
              "name": "Rupiah",
              "value": "IDR"
            },
            {
              "name": "New Israeli Sheqel",
              "value": "ILS"
            },
            {
              "name": "Indian Rupee",
              "value": "INR"
            },
            {
              "name": "Jamaican Dollar",
              "value": "JMD"
            },
            {
              "name": "Yen",
              "value": "JPY"
            },
            {
              "name": "Kenyan Shilling",
              "value": "KES"
            },
            {
              "name": "Won",
              "value": "KRW"
            },
            {
              "name": "Tenge",
              "value": "KZT"
            },
            {
              "name": "Lao Kip",
              "value": "LAK"
            },
            {
              "name": "Lebanese Pound",
              "value": "LBP"
            },
            {
              "name": "Sri Lanka Rupee",
              "value": "LKR"
            },
            {
              "name": "Liberian Dollar",
              "value": "LRD"
            },
            {
              "name": "Moroccan Dirham",
              "value": "MAD"
            },
            {
              "name": "Kyat",
              "value": "MMK"
            },
            {
              "name": "Pataca",
              "value": "MOP"
            },
            {
              "name": "Ouguiya",
              "value": "MRO"
            },
            {
              "name": "Mauritius Rupee",
              "value": "MUR"
            },
            {
              "name": "Rufiyaa",
              "value": "MVR"
            },
            {
              "name": "Mexican Peso",
              "value": "MXN"
            },
            {
              "name": "Malaysian Ringgit",
              "value": "MYR"
            },
            {
              "name": "Cordoba Oro",
              "value": "NIO"
            },
            {
              "name": "Norwegian Krone",
              "value": "NOK"
            },
            {
              "name": "Nepalese Rupee",
              "value": "NPR"
            },
            {
              "name": "New Zealand Dollar",
              "value": "NZD"
            },
            {
              "name": "Sol",
              "value": "PEN"
            },
            {
              "name": "Kina",
              "value": "PGK"
            },
            {
              "name": "Philippine Peso",
              "value": "PHP"
            },
            {
              "name": "Pakistan Rupee",
              "value": "PKR"
            },
            {
              "name": "Zloty",
              "value": "PLN"
            },
            {
              "name": "Qatari Rial",
              "value": "QAR"
            },
            {
              "name": "Romanian Leu",
              "value": "RON"
            },
            {
              "name": "Russian Ruble",
              "value": "RUB"
            },
            {
              "name": "Saudi Riyal",
              "value": "SAR"
            },
            {
              "name": "Solomon Islands Dollar",
              "value": "SBD"
            },
            {
              "name": "Seychelles Rupee",
              "value": "SCR"
            },
            {
              "name": "Swedish Krona",
              "value": "SEK"
            },
            {
              "name": "Singapore Dollar",
              "value": "SGD"
            },
            {
              "name": "Syrian Pound",
              "value": "SYP"
            },
            {
              "name": "Baht",
              "value": "THB"
            },
            {
              "name": "Pa’anga",
              "value": "TOP"
            },
            {
              "name": "Turkish Lira",
              "value": "TRY"
            },
            {
              "name": "Trinidad and Tobago Dollar",
              "value": "TTD"
            },
            {
              "name": "New Taiwan Dollar",
              "value": "TWD"
            },
            {
              "name": "Hryvnia",
              "value": "UAH"
            },
            {
              "name": "Dong",
              "value": "VND"
            },
            {
              "name": "Vatu",
              "value": "VUV"
            },
            {
              "name": "Tala",
              "value": "WST"
            },
            {
              "name": "East Caribbean Dollar",
              "value": "XCD"
            },
            {
              "name": "West African CFA Franc",
              "value": "XOF"
            },
            {
              "name": "Yemeni Rial",
              "value": "YER"
            },
            {
              "name": "Rand",
              "value": "ZAR"
            }
          ]
        },
        {
          "displayName": "Custom Fields",
          "name": "customFields",
          "placeholder": "Add Custom Field",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "description": "Filter by custom fields",
          "default": {},
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field ID",
                  "name": "fieldId",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getCustomSalesOrderFields"
                  },
                  "default": "",
                  "description": "Custom field to set a value to"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on custom field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Deal Name or ID",
          "name": "dealId",
          "type": "options",
          "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
          "default": [],
          "typeOptions": {
            "loadOptionsMethod": "getDeals"
          }
        },
        {
          "displayName": "Description",
          "name": "Description",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Discount",
          "name": "Discount",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          }
        },
        {
          "displayName": "Due Date",
          "name": "Due_Date",
          "type": "dateTime",
          "default": ""
        },
        {
          "displayName": "Exchange Rate",
          "name": "Exchange_Rate",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Exchange rate of the default currency to the home currency"
        },
        {
          "displayName": "Grand Total",
          "name": "Grand_Total",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Total amount for the product after deducting tax and discounts"
        },
        {
          "displayName": "Sales Order Number",
          "name": "SO_Number",
          "type": "string",
          "default": "",
          "description": "ID of the sales order after creating a case"
        },
        {
          "displayName": "Sales Commission",
          "name": "Sales_Commission",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Commission of sales person on deal closure as a percentage. For example, enter 12 for 12%."
        },
        {
          "displayName": "Shipping Address",
          "name": "Shipping_Address",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Shipping Address Field",
          "options": [
            {
              "displayName": "Shipping Address Fields",
              "name": "address_fields",
              "values": [
                {
                  "displayName": "Street",
                  "name": "Shipping_Street",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "City",
                  "name": "Shipping_City",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "State",
                  "name": "Shipping_State",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Country",
                  "name": "Shipping_Country",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Zip Code",
                  "name": "Shipping_Code",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Status Name or ID",
          "name": "Status",
          "type": "options",
          "default": [],
          "typeOptions": {
            "loadOptionsMethod": "getSalesOrderStatus"
          },
          "description": "Status of the sales order. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
        },
        {
          "displayName": "Sub Total",
          "name": "Sub_Total",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Total amount for the product excluding tax"
        },
        {
          "displayName": "Subject",
          "name": "Subject",
          "type": "string",
          "default": "",
          "description": "Subject or title of the sales order"
        },
        {
          "displayName": "Tax",
          "name": "Tax",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          },
          "description": "Tax amount as the sum of sales tax and value-added tax"
        },
        {
          "displayName": "Terms and Conditions",
          "name": "Terms_and_Conditions",
          "type": "string",
          "default": "",
          "description": "Terms and conditions associated with the purchase order"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "salesOrder"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create a vendor",
          "action": "Create a vendor"
        },
        {
          "name": "Create or Update",
          "value": "upsert",
          "description": "Create a new record, or update the current one if it already exists (upsert)",
          "action": "Create or update a vendor"
        },
        {
          "name": "Delete",
          "value": "delete",
          "description": "Delete a vendor",
          "action": "Delete a vendor"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get a vendor",
          "action": "Get a vendor"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many vendors",
          "action": "Get many vendors"
        },
        {
          "name": "Update",
          "value": "update",
          "description": "Update a vendor",
          "action": "Update a vendor"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "vendor"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Vendor Name",
      "name": "vendorName",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "vendor"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Vendor Name",
      "name": "vendorName",
      "type": "string",
      "default": "",
      "description": "Name of the vendor. If a record with this vendor name exists it will be updated, otherwise a new one will be created.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "vendor"
          ],
          "operation": [
            "upsert"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Address",
          "name": "Address",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Address Field",
          "options": [
            {
              "displayName": "Address Fields",
              "name": "address_fields",
              "values": [
                {
                  "displayName": "Street",
                  "name": "Street",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "City",
                  "name": "City",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "State",
                  "name": "State",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Country",
                  "name": "Country",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Zip Code",
                  "name": "Zip_Code",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Category",
          "name": "Category",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Currency",
          "name": "Currency",
          "type": "options",
          "default": "USD",
          "options": [
            {
              "name": "US Dollar",
              "value": "USD"
            },
            {
              "name": "Euro",
              "value": "EUR"
            },
            {
              "name": "UAE Dirham",
              "value": "AED"
            },
            {
              "name": "Afghani",
              "value": "AFN"
            },
            {
              "name": "Lek",
              "value": "ALL"
            },
            {
              "name": "Argentine Peso",
              "value": "ARS"
            },
            {
              "name": "Australian Dollar",
              "value": "AUD"
            },
            {
              "name": "Azerbaijan Manat",
              "value": "AZN"
            },
            {
              "name": "Barbados Dollar",
              "value": "BBD"
            },
            {
              "name": "Taka",
              "value": "BDT"
            },
            {
              "name": "Bulgarian Lev",
              "value": "BGN"
            },
            {
              "name": "Bermudian Dollar",
              "value": "BMD"
            },
            {
              "name": "Brunei Dollar",
              "value": "BND"
            },
            {
              "name": "Boliviano",
              "value": "BOB"
            },
            {
              "name": "Brazilian Real",
              "value": "BRL"
            },
            {
              "name": "Bahamian Dollar",
              "value": "BSD"
            },
            {
              "name": "Pula",
              "value": "BWP"
            },
            {
              "name": "Belize Dollar",
              "value": "BZD"
            },
            {
              "name": "Canadian Dollar",
              "value": "CAD"
            },
            {
              "name": "Swiss Franc",
              "value": "CHF"
            },
            {
              "name": "Chilean Peso",
              "value": "CLP"
            },
            {
              "name": "Yuan Renminbi",
              "value": "CNY"
            },
            {
              "name": "Colombian Peso",
              "value": "COP"
            },
            {
              "name": "Costa Rican Colon",
              "value": "CRC"
            },
            {
              "name": "Czech Koruna",
              "value": "CZK"
            },
            {
              "name": "Danish Krone",
              "value": "DKK"
            },
            {
              "name": "Dominican Peso",
              "value": "DOP"
            },
            {
              "name": "Algerian Dinar",
              "value": "DZD"
            },
            {
              "name": "Egyptian Pound",
              "value": "EGP"
            },
            {
              "name": "Fiji Dollar",
              "value": "FJD"
            },
            {
              "name": "Pound Sterling",
              "value": "GBP"
            },
            {
              "name": "Quetzal",
              "value": "GTQ"
            },
            {
              "name": "Hong Kong Dollar",
              "value": "HKD"
            },
            {
              "name": "Lempira",
              "value": "HNL"
            },
            {
              "name": "Kuna",
              "value": "HRK"
            },
            {
              "name": "Forint",
              "value": "HUF"
            },
            {
              "name": "Rupiah",
              "value": "IDR"
            },
            {
              "name": "New Israeli Sheqel",
              "value": "ILS"
            },
            {
              "name": "Indian Rupee",
              "value": "INR"
            },
            {
              "name": "Jamaican Dollar",
              "value": "JMD"
            },
            {
              "name": "Yen",
              "value": "JPY"
            },
            {
              "name": "Kenyan Shilling",
              "value": "KES"
            },
            {
              "name": "Won",
              "value": "KRW"
            },
            {
              "name": "Tenge",
              "value": "KZT"
            },
            {
              "name": "Lao Kip",
              "value": "LAK"
            },
            {
              "name": "Lebanese Pound",
              "value": "LBP"
            },
            {
              "name": "Sri Lanka Rupee",
              "value": "LKR"
            },
            {
              "name": "Liberian Dollar",
              "value": "LRD"
            },
            {
              "name": "Moroccan Dirham",
              "value": "MAD"
            },
            {
              "name": "Kyat",
              "value": "MMK"
            },
            {
              "name": "Pataca",
              "value": "MOP"
            },
            {
              "name": "Ouguiya",
              "value": "MRO"
            },
            {
              "name": "Mauritius Rupee",
              "value": "MUR"
            },
            {
              "name": "Rufiyaa",
              "value": "MVR"
            },
            {
              "name": "Mexican Peso",
              "value": "MXN"
            },
            {
              "name": "Malaysian Ringgit",
              "value": "MYR"
            },
            {
              "name": "Cordoba Oro",
              "value": "NIO"
            },
            {
              "name": "Norwegian Krone",
              "value": "NOK"
            },
            {
              "name": "Nepalese Rupee",
              "value": "NPR"
            },
            {
              "name": "New Zealand Dollar",
              "value": "NZD"
            },
            {
              "name": "Sol",
              "value": "PEN"
            },
            {
              "name": "Kina",
              "value": "PGK"
            },
            {
              "name": "Philippine Peso",
              "value": "PHP"
            },
            {
              "name": "Pakistan Rupee",
              "value": "PKR"
            },
            {
              "name": "Zloty",
              "value": "PLN"
            },
            {
              "name": "Qatari Rial",
              "value": "QAR"
            },
            {
              "name": "Romanian Leu",
              "value": "RON"
            },
            {
              "name": "Russian Ruble",
              "value": "RUB"
            },
            {
              "name": "Saudi Riyal",
              "value": "SAR"
            },
            {
              "name": "Solomon Islands Dollar",
              "value": "SBD"
            },
            {
              "name": "Seychelles Rupee",
              "value": "SCR"
            },
            {
              "name": "Swedish Krona",
              "value": "SEK"
            },
            {
              "name": "Singapore Dollar",
              "value": "SGD"
            },
            {
              "name": "Syrian Pound",
              "value": "SYP"
            },
            {
              "name": "Baht",
              "value": "THB"
            },
            {
              "name": "Pa’anga",
              "value": "TOP"
            },
            {
              "name": "Turkish Lira",
              "value": "TRY"
            },
            {
              "name": "Trinidad and Tobago Dollar",
              "value": "TTD"
            },
            {
              "name": "New Taiwan Dollar",
              "value": "TWD"
            },
            {
              "name": "Hryvnia",
              "value": "UAH"
            },
            {
              "name": "Dong",
              "value": "VND"
            },
            {
              "name": "Vatu",
              "value": "VUV"
            },
            {
              "name": "Tala",
              "value": "WST"
            },
            {
              "name": "East Caribbean Dollar",
              "value": "XCD"
            },
            {
              "name": "West African CFA Franc",
              "value": "XOF"
            },
            {
              "name": "Yemeni Rial",
              "value": "YER"
            },
            {
              "name": "Rand",
              "value": "ZAR"
            }
          ]
        },
        {
          "displayName": "Custom Fields",
          "name": "customFields",
          "placeholder": "Add Custom Field",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "description": "Filter by custom fields",
          "default": {},
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field ID",
                  "name": "fieldId",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getCustomVendorFields"
                  },
                  "default": "",
                  "description": "Custom field to set a value to"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on custom field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Description",
          "name": "Description",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Email",
          "name": "Email",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Phone",
          "name": "Phone",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Website",
          "name": "Website",
          "type": "string",
          "default": ""
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "vendor"
          ],
          "operation": [
            "create",
            "upsert"
          ]
        }
      }
    },
    {
      "displayName": "Vendor ID",
      "name": "vendorId",
      "type": "string",
      "default": "",
      "description": "ID of the vendor to delete",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "vendor"
          ],
          "operation": [
            "delete"
          ]
        }
      }
    },
    {
      "displayName": "Vendor ID",
      "name": "vendorId",
      "type": "string",
      "default": "",
      "description": "ID of the vendor to retrieve",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "vendor"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "vendor"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 5,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "resource": [
            "vendor"
          ],
          "operation": [
            "getAll"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 1000
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Approved",
          "name": "approved",
          "type": "boolean",
          "default": true,
          "description": "Whether to retrieve only approved records. Defaults to true."
        },
        {
          "displayName": "Converted",
          "name": "converted",
          "type": "boolean",
          "default": false,
          "description": "Whether to retrieve only converted records. Defaults to false."
        },
        {
          "displayName": "Fields",
          "name": "fields",
          "type": "multiOptions",
          "typeOptions": {
            "loadOptionsMethod": "getVendorFields"
          },
          "default": [],
          "description": "Return only these fields"
        },
        {
          "displayName": "Include Child",
          "name": "include_child",
          "type": "boolean",
          "default": false,
          "description": "Whether to retrieve only records from child territories"
        },
        {
          "displayName": "Sort By",
          "name": "sort_by",
          "type": "options",
          "typeOptions": {
            "loadOptionsMethod": "getVendorFields"
          },
          "default": [],
          "description": "Field to sort records by"
        },
        {
          "displayName": "Sort Order",
          "name": "sort_order",
          "type": "options",
          "options": [
            {
              "name": "Ascending",
              "value": "asc"
            },
            {
              "name": "Descending",
              "value": "desc"
            }
          ],
          "default": "desc",
          "description": "Ascending or descending order sort order"
        },
        {
          "displayName": "Territory ID",
          "name": "territory_id",
          "type": "string",
          "default": "",
          "description": "Retrieve only records from this territory"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "vendor"
          ],
          "operation": [
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Vendor ID",
      "name": "vendorId",
      "type": "string",
      "default": "",
      "description": "ID of the vendor to update",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "vendor"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Address",
          "name": "Address",
          "type": "fixedCollection",
          "default": {},
          "placeholder": "Add Address Field",
          "options": [
            {
              "displayName": "Address Fields",
              "name": "address_fields",
              "values": [
                {
                  "displayName": "Street",
                  "name": "Street",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "City",
                  "name": "City",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "State",
                  "name": "State",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Country",
                  "name": "Country",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Zip Code",
                  "name": "Zip_Code",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Category",
          "name": "Category",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Currency",
          "name": "Currency",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Custom Fields",
          "name": "customFields",
          "placeholder": "Add Custom Field",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": true
          },
          "description": "Filter by custom fields",
          "default": {},
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field ID",
                  "name": "fieldId",
                  "type": "options",
                  "typeOptions": {
                    "loadOptionsMethod": "getCustomVendorFields"
                  },
                  "default": "",
                  "description": "Custom field to set a value to"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Value to set on custom field"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Description",
          "name": "Description",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Email",
          "name": "Email",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Phone",
          "name": "Phone",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Vendor Name",
          "name": "Vendor_Name",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Website",
          "name": "Website",
          "type": "string",
          "default": ""
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "vendor"
          ],
          "operation": [
            "update"
          ]
        }
      }
    }
  ]

operations:
  [
    {
      "operation": "create",
      "name": "Create",
      "description": "Create an account",
      "resource": "account"
    },
    {
      "operation": "upsert",
      "name": "Create or Update",
      "description": "Create a new record, or update the current one if it already exists (upsert)",
      "resource": "account"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete an account",
      "resource": "account"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get an account",
      "resource": "account"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many accounts",
      "resource": "account"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update an account",
      "resource": "account"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a contact",
      "resource": "contact"
    },
    {
      "operation": "upsert",
      "name": "Create or Update",
      "description": "Create a new record, or update the current one if it already exists (upsert)",
      "resource": "contact"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a contact",
      "resource": "contact"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get a contact",
      "resource": "contact"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many contacts",
      "resource": "contact"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update a contact",
      "resource": "contact"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a deal",
      "resource": "deal"
    },
    {
      "operation": "upsert",
      "name": "Create or Update",
      "description": "Create a new record, or update the current one if it already exists (upsert)",
      "resource": "deal"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a contact",
      "resource": "deal"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get a contact",
      "resource": "deal"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many contacts",
      "resource": "deal"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update a contact",
      "resource": "deal"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create an invoice",
      "resource": "invoice"
    },
    {
      "operation": "upsert",
      "name": "Create or Update",
      "description": "Create a new record, or update the current one if it already exists (upsert)",
      "resource": "invoice"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete an invoice",
      "resource": "invoice"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get an invoice",
      "resource": "invoice"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many invoices",
      "resource": "invoice"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update an invoice",
      "resource": "invoice"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a lead",
      "resource": "lead"
    },
    {
      "operation": "upsert",
      "name": "Create or Update",
      "description": "Create a new record, or update the current one if it already exists (upsert)",
      "resource": "lead"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a lead",
      "resource": "lead"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get a lead",
      "resource": "lead"
    },
    {
      "operation": "getFields",
      "name": "Get Fields",
      "description": "Get lead fields",
      "resource": "lead"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many leads",
      "resource": "lead"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update a lead",
      "resource": "lead"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a product",
      "resource": "product"
    },
    {
      "operation": "upsert",
      "name": "Create or Update",
      "description": "Create a new record, or update the current one if it already exists (upsert)",
      "resource": "product"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a product",
      "resource": "product"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get a product",
      "resource": "product"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many products",
      "resource": "product"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update a product",
      "resource": "product"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a purchase order",
      "resource": "purchaseOrder"
    },
    {
      "operation": "upsert",
      "name": "Create or Update",
      "description": "Create a new record, or update the current one if it already exists (upsert)",
      "resource": "purchaseOrder"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a purchase order",
      "resource": "purchaseOrder"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get a purchase order",
      "resource": "purchaseOrder"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many purchase orders",
      "resource": "purchaseOrder"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update a purchase order",
      "resource": "purchaseOrder"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a quote",
      "resource": "quote"
    },
    {
      "operation": "upsert",
      "name": "Create or Update",
      "description": "Create a new record, or update the current one if it already exists (upsert)",
      "resource": "quote"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a quote",
      "resource": "quote"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get a quote",
      "resource": "quote"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many quotes",
      "resource": "quote"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update a quote",
      "resource": "quote"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a sales order",
      "resource": "salesOrder"
    },
    {
      "operation": "upsert",
      "name": "Create or Update",
      "description": "Create a new record, or update the current one if it already exists (upsert)",
      "resource": "salesOrder"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a sales order",
      "resource": "salesOrder"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get a sales order",
      "resource": "salesOrder"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many sales orders",
      "resource": "salesOrder"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update a sales order",
      "resource": "salesOrder"
    },
    {
      "operation": "create",
      "name": "Create",
      "description": "Create a vendor",
      "resource": "vendor"
    },
    {
      "operation": "upsert",
      "name": "Create or Update",
      "description": "Create a new record, or update the current one if it already exists (upsert)",
      "resource": "vendor"
    },
    {
      "operation": "delete",
      "name": "Delete",
      "description": "Delete a vendor",
      "resource": "vendor"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get a vendor",
      "resource": "vendor"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many vendors",
      "resource": "vendor"
    },
    {
      "operation": "update",
      "name": "Update",
      "description": "Update a vendor",
      "resource": "vendor"
    }
  ]


