AutomationFlowsGeneral › Add the Affiliate to a Program Automatically

Add the Affiliate to a Program Automatically

ByHarshil Agrawal @harshil1712 on n8n.io

This workflow allows you to create an affiliate, add metadata, and add the affiliate to a program.

Event trigger★★☆☆☆ complexity4 nodesTapfiliate
General Trigger: Event Nodes: 4 Complexity: ★★☆☆☆ Added:

This workflow corresponds to n8n.io template #936 — we link there as the canonical source.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "nodes": [
    {
      "name": "Tapfiliate2",
      "type": "n8n-nodes-base.tapfiliate",
      "position": [
        870,
        300
      ],
      "parameters": {
        "resource": "programAffiliate",
        "programId": "testing-program-5",
        "affiliateId": "={{$node[\"Tapfiliate\"].json[\"id\"]}}",
        "additionalFields": {}
      },
      "credentials": {
        "tapfiliateApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "name": "Tapfiliate1",
      "type": "n8n-nodes-base.tapfiliate",
      "position": [
        670,
        300
      ],
      "parameters": {
        "resource": "affiliateMetadata",
        "metadataUi": {
          "metadataValues": [
            {
              "key": "tag",
              "value": "n8n"
            }
          ]
        },
        "affiliateId": "={{$json[\"id\"]}}"
      },
      "credentials": {
        "tapfiliateApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "name": "Tapfiliate",
      "type": "n8n-nodes-base.tapfiliate",
      "position": [
        470,
        300
      ],
      "parameters": {
        "email": "user@example.com",
        "lastname": "Ryan",
        "firstname": "Jack",
        "additionalFields": {}
      },
      "credentials": {
        "tapfiliateApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "name": "On clicking 'execute'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        270,
        300
      ],
      "parameters": {},
      "typeVersion": 1
    }
  ],
  "connections": {
    "Tapfiliate": {
      "main": [
        [
          {
            "node": "Tapfiliate1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tapfiliate1": {
      "main": [
        [
          {
            "node": "Tapfiliate2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On clicking 'execute'": {
      "main": [
        [
          {
            "node": "Tapfiliate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

This workflow allows you to create an affiliate, add metadata, and add the affiliate to a program.

Source: https://n8n.io/workflows/936/ — original creator credit. Request a take-down →

More General workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

General

Convert Docx From Url To Pdf Using Convertapi. Uses manualTrigger, httpRequest, readWriteFile, stickyNote. Event-driven trigger; 6 nodes.

HTTP Request, Read Write File
General

Preparing Data To Be Sent To A Service. Uses manualTrigger, stickyNote, googleSheets, n8nTrainingCustomerDatastore. Event-driven trigger; 6 nodes.

Google Sheets, N8N Training Customer Datastore
General

Extract Contracts to a Register. Uses n8n-nodes-iterationlayer. Event-driven trigger; 6 nodes.

N8N Nodes Iterationlayer
General

📄 Description: This workflow helps you migrate customer records directly from Odoo v15 to Odoo v18 without the need for manual exports or intermediate files.

Odoo
General

Convert Xlsx To Pdf Using Convertapi. Uses manualTrigger, readWriteFile, stickyNote, httpRequest. Event-driven trigger; 5 nodes.

Read Write File, HTTP Request