Skip to content

Tapfiliate#

Tapfiliate allows you to create, track, and grow your affiliate marketing programs.

Credentials

You can find authentication information for this node here.

Basic Operations#

  • Affiliate
    • Create an affiliate
    • Delete an affiliate
    • Get an affiliate by ID
    • Get all affiliates
  • Affiliate Metadata
    • Add metadata to affiliate
    • Remove metadata from affiliate
    • Update affiliate's metadata
  • Program Affiliate
    • Add affiliate to program
    • Approve an affiliate for a program
    • Disapprove an affiliate
    • Get an affiliate in a program
    • Get all affiliates in program

Example Usage#

This workflow allows you to create an affiliate, add metadata, and add the affiliate to a program. You can also find the workflow on n8n.io. This example usage workflow uses the following nodes. - Start - Tapfiliate

The final workflow should look like the following image.

A workflow with the Tapfiliate node

1. Start node#

The Start node exists by default when you create a new workflow.

2. Tapfiliate node (create:affiliate)#

This node will create an affiliate in Tapfiliate.

  1. First of all, you'll have to enter credentials for the Tapfiliate node. You can find out how to do that here.
  2. Enter an email address in the Email field.
  3. Enter the first name of the affiliate in the First Name field.
  4. Enter the last name of the affiliate in the Last Name field.
  5. Click on Execute Node to run the node.

In the screenshot below, you will notice that the node creates an affiliate in Tapfiliate.

Using the Tapfiliate node to create a new affiliate

3. Tapfiliate1 node (add:affiliateMetadata)#

This node will add metadata to the affiliate that we created with the previous node.

  1. Select the credentials that you entered in the previous node.
  2. Select 'Affiliate Metadata' from the Resource dropdown list.
  3. Select 'Add' from the Operation dropdown list.
  4. Click on the gears icon next to the Affiliate ID field and click on Add Expression.
  5. Select the following in the Variable Selector section: Current Node > Input Data > JSON > id. You can also add the following expression: {{$json["id"]}}.
  6. Click on the Add Metadata button.
  7. Enter tag in the Key field.
  8. Enter n8n in the Value field.
  9. Click on Execute Node to run the node.

In the screenshot below, you will notice that the node adds the metadata to the affiliate that we created with the previous node.

Using the Tapfiliate node to add metadata

4. Tapfiliate2 node (get:contact)#

This node will add the affiliate that we created with the Tapfiliate node to an affiliate program.

  1. Select the credentials that you entered in the previous node.
  2. Select 'Program Affiliate' from the Resource dropdown list.
  3. Select 'Add' from the Operation dropdown list.
  4. Select a program from the Program ID dropdown list.
  5. Click on the gears icon next to the Affiliate ID field and click on Add Expression.
  6. Select the following in the Variable Selector section: Nodes > Tapfiliate > Output Data > JSON > id. You can also add the following expression: {{$node["Tapfiliate"].json["id"]}}.
  7. Click on Execute Node to run the node.

In the screenshot below, you will notice that the node adds the affiliate to a program.

Using the Tapfiliate node to add an affiliate to a program