Reference · Tools

Tapfiliate

Manage affiliates, affiliate metadata, and program-affiliate relationships through the Tapfiliate affiliate marketing platform API.

Action Sales v1

The Tapfiliate node manages affiliates, their metadata and their relationships to programs — creating, approving and segmenting partners. A typical build is onboarding a new affiliate automatically, tagging them by traffic source, and adding them to the right program.

Node type
Action
Parameters
34
Outputs
Output, Error
Credentials
Tapfiliate API

Tapfiliate

Manage affiliates, metadata, and program affiliates in Tapfiliate.

Overview

Tapfiliate is an affiliate marketing platform. This tool allows you to create, get, list, and delete affiliates; manage affiliate metadata (add, update, remove key-value pairs); and manage program-affiliate relationships (add affiliates to programs, approve/disapprove them, get details, list all). Uses the Tapfiliate REST API v1.6.

Category: Sales
Tool Name: tapfiliate
Version: 1

Appearance: Icon: lucide-Link | Color: #2EB67D

Node Type

Action — processes input items and produces output

Input / Output

DirectionPort(s)
InputInput
OutputOutput, Error

Credentials

This tool requires Tapfiliate API credentials. See the Credentials Guide for setup instructions.

Resources

ResourceValue
Affiliateaffiliate
Affiliate MetadataaffiliateMetadata
Program AffiliateprogramAffiliate

Operations

Each resource has its own Operation list, and several resources reuse the values add, get and getAll. Pick the resource first, then the operation.

ResourceOperationValueDescription
AffiliateCreatecreateCreate an affiliate
AffiliateDeletedeleteDelete an affiliate
AffiliateGetgetGet an affiliate by ID
AffiliateGet ManygetAllGet many affiliates
Affiliate MetadataAddaddAdd metadata to affiliate
Affiliate MetadataRemoveremoveRemove metadata from affiliate
Affiliate MetadataUpdateupdateUpdate affiliate metadata
Program AffiliateAddaddAdd affiliate to program
Program AffiliateApproveapproveApprove an affiliate for a program
Program AffiliateDisapprovedisapproveDisapprove an affiliate
Program AffiliateGetgetGet an affiliate in a program
Program AffiliateGet ManygetAllGet many affiliates in program

Parameters

All identifier fields accept expressions, so you can feed an affiliate or program ID from an upstream item.

Affiliate: Create

ParameterTypeRequiredDefaultDescription
EmailstringYesThe affiliate’s email address.
First Name (firstname)stringYesThe affiliate’s first name.
Last Name (lastname)stringYesThe affiliate’s last name.
Additional Fields (additionalFields)collectionNo{}Optional properties to set on the new affiliate.
— Address (addressUi)fixedCollectionNo{}The affiliate’s postal address. Holds a single record under the group key addressValues.
— — Line 1 (address)stringNo
— — Line 2 (address_two)stringNo
— — Postal CodestringNo
— — CitystringNo
— — StatestringNo
— — Country Code (country)stringNoThe country ISO 3166-1 code (e.g. US, NL, GB).
— Company Name (companyName)stringNoThe affiliate’s company name.

Affiliate: Delete

ParameterTypeRequiredDefaultDescription
Affiliate IDstringYesThe ID of the affiliate.

Affiliate: Get

ParameterTypeRequiredDefaultDescription
Affiliate IDstringYesThe ID of the affiliate.

Affiliate: Get Many

ParameterTypeRequiredDefaultDescription
Return AllbooleanNofalseWhether to return all results or only up to a given limit.
LimitnumberNo100Max number of results to return. Accepts 1–1000. (shown when Return All is false)
Filters (filters)collectionNo{}Narrow the affiliate list.
— Affiliate Group ID (affiliate_group_id)stringNoRetrieves affiliates for a certain affiliate group.
— Click ID (click_id)stringNo
— EmailstringNoAn email address.
— Parent ID (parentId)stringNoRetrieves children for a certain parent affiliate.
— Referral Code (referral_code)stringNoAn affiliate’s referral code (the ref= value in their referral link).
— Source ID (source_id)stringNo

Affiliate Metadata: Add

ParameterTypeRequiredDefaultDescription
Affiliate IDstringYesThe ID of the affiliate.
Metadata (metadataUi)fixedCollectionNo{}Metadata key-value pairs to add. Add one entry per pair under the group key metadataValues; the operation fails if the list is empty.
— KeystringNoName of the metadata key to add.
— ValuestringNoValue to set for the metadata key.

Affiliate Metadata: Remove

ParameterTypeRequiredDefaultDescription
Affiliate IDstringYesThe ID of the affiliate.
KeystringNoName of the metadata key to remove.

Affiliate Metadata: Update

ParameterTypeRequiredDefaultDescription
Affiliate IDstringYesThe ID of the affiliate.
KeystringNoName of the metadata key to update.
ValuestringNoValue to set for the metadata key.

Program Affiliate: Add

ParameterTypeRequiredDefaultDescription
Program IDstringYesThe ID of the program. Find this in the Tapfiliate dashboard URL when viewing a program.
Affiliate IDstringYesThe ID of the affiliate.
Additional Fields (additionalFields)collectionNo{}Optional properties for the program membership.
— ApprovedbooleanNotrueAn optional approval status.
— CouponstringNoAn optional coupon for this affiliate.

Program Affiliate: Approve

ParameterTypeRequiredDefaultDescription
Program IDstringNoThe ID of the program. Find this in the Tapfiliate dashboard URL when viewing a program.
Affiliate IDstringNoThe ID of the affiliate.

Program Affiliate: Disapprove

ParameterTypeRequiredDefaultDescription
Program IDstringNoThe ID of the program. Find this in the Tapfiliate dashboard URL when viewing a program.
Affiliate IDstringNoThe ID of the affiliate.

Program Affiliate: Get

ParameterTypeRequiredDefaultDescription
Program IDstringYesThe ID of the program. Find this in the Tapfiliate dashboard URL when viewing a program.
Affiliate IDstringYesThe ID of the affiliate.

Program Affiliate: Get Many

ParameterTypeRequiredDefaultDescription
Program IDstringYesThe ID of the program. Find this in the Tapfiliate dashboard URL when viewing a program.
Return AllbooleanNofalseWhether to return all results or only up to a given limit.
LimitnumberNo100Max number of results to return. Accepts 1–1000. (shown when Return All is false)
Filters (filters)collectionNo{}Narrow the program-affiliate list.
— Affiliate Group ID (affiliate_group_id)stringNoRetrieves affiliates for a certain affiliate group.
— EmailstringNoAn email address.
— Parent ID (parentId)stringNoRetrieves children for a certain parent affiliate.
— Source ID (source_id)stringNo

All Operations

ParameterTypeRequiredDefaultDescription
Max ConcurrencynumberNo10Maximum number of items to process concurrently. Accepts 1–100.

Output Data

The Tapfiliate response is merged onto the input item’s JSON at the top level — the returned record’s fields sit alongside the fields the item already carried, so downstream nodes address them directly ({{ $json.id }}). A response field with the same name as an existing item field overwrites it. Binary data on the input item is forwarded unchanged onto every output item.

The Get Many operations fan out. Each affiliate in the list becomes its own output item, still merged onto the same input JSON, so one input item can produce many output items. A list with no records produces no output items for that input.

OperationsOutput
Affiliate Get Many; Program Affiliate Get ManyOne output item per affiliate returned. Turn Return All on to page through the whole list; leave it off and the result is trimmed to Limit.
Affiliate Create and Get; Affiliate Metadata Update; Program Affiliate Add, Approve, Disapprove and GetOne output item carrying the object Tapfiliate returned.
Affiliate Delete; Affiliate Metadata Add and RemoveOne output item carrying success: true — these calls confirm the change instead of returning a record.

Affiliate Metadata: Add writes one key per entry in the Metadata list, so a list of three pairs is three writes that settle into the single success: true item.

Usage Examples

  • Create a new affiliate in Tapfiliate
  • List all affiliates in a Tapfiliate program
  • Add metadata to a Tapfiliate affiliate
  • Approve an affiliate for a program

Example Configuration

Create an affiliate with an address and company:

{
  "type": "tapfiliate",
  "parameters": {
    "resource": "affiliate",
    "operation": "create",
    "email": "{{ $json.email }}",
    "firstname": "John",
    "lastname": "Doe",
    "additionalFields": {
      "companyName": "Example Corp",
      "addressUi": {
        "addressValues": {
          "address": "123 Main Street",
          "address_two": "Suite 100",
          "postal_code": "12345",
          "city": "New York",
          "state": "NY",
          "country": "US"
        }
      }
    }
  }
}

Find affiliates by group, email or source:

{
  "type": "tapfiliate",
  "parameters": {
    "resource": "affiliate",
    "operation": "getAll",
    "returnAll": false,
    "limit": 50,
    "filters": {
      "email": "{{ $json.email }}",
      "affiliate_group_id": "group123",
      "source_id": "source456"
    }
  }
}

Tag an affiliate with metadata:

{
  "type": "tapfiliate",
  "parameters": {
    "resource": "affiliateMetadata",
    "operation": "add",
    "affiliateId": "{{ $json.id }}",
    "metadataUi": {
      "metadataValues": [
        { "key": "specialization", "value": "tech products" },
        { "key": "traffic_source", "value": "social_media" }
      ]
    }
  }
}

Change one metadata value:

{
  "type": "tapfiliate",
  "parameters": {
    "resource": "affiliateMetadata",
    "operation": "update",
    "affiliateId": "{{ $json.id }}",
    "key": "specialization",
    "value": "software products"
  }
}

Add an affiliate to a program, pre-approved and with a coupon:

{
  "type": "tapfiliate",
  "parameters": {
    "resource": "programAffiliate",
    "operation": "add",
    "programId": "my-program",
    "affiliateId": "{{ $json.id }}",
    "additionalFields": {
      "approved": true,
      "coupon": "AFFILIATE20"
    }
  }
}

List every affiliate in a program:

{
  "type": "tapfiliate",
  "parameters": {
    "resource": "programAffiliate",
    "operation": "getAll",
    "programId": "my-program",
    "returnAll": true,
    "filters": {
      "affiliate_group_id": "premium_group"
    }
  }
}

Error Handling

ModeBehavior
stopHalts workflow on first error
continueSkips failed items, passes successful ones through
errorPortRoutes failed items to Error output port

Tips

Manage Tapfiliate affiliates, metadata, and program-affiliate relationships including CRUD operations, approval workflows, and metadata key-value management.

Affiliate Onboarding Flow

  1. Affiliate: Create with the person’s email and name — the output item carries the new affiliate, so {{ $json.id }} feeds the next step.
  2. Affiliate Metadata: Add to record how you will segment them later, such as traffic source.
  3. Program Affiliate: Add to place them in a program, setting Approved and a Coupon in one call.

Important Notes

  • Program ID location: find program IDs in the Tapfiliate dashboard URL when viewing a program.
  • Approve and Disapprove are not marked required in the editor, but both still address one affiliate inside one program — fill in Program ID and Affiliate ID or the call cannot be built.
  • Collection vs fixed collection: Additional Fields and Filters are flat objects keyed by the sub-field’s internal name. Metadata nests a list under metadataValues; Address nests a single record under addressValues.

Frequently asked questions

What does a typical onboarding flow look like?

Create the affiliate with their email and name; the output item carries the new affiliate so `{{ $json.id }}` feeds the next step. Then add metadata to record how you will segment them, and attach them to a program.

What is affiliate metadata for?

Key-value data you set on an affiliate — traffic source, tier, region — which is what makes later segmentation and reporting possible.

Can it handle approvals?

Yes, approval workflows are supported, so partners can be approved programmatically rather than through the dashboard.

Which credential does it need?

A Tapfiliate API credential.

Build with the Tapfiliate node

Drop it into a workflow, wire it to an agent, or call it on a schedule. You'll need Tapfiliate API credentials first.

Open BusyBot

Last updated . Spotted something wrong? Tell us.