Interface TapfiliateNodeParameters

Source
interface TapfiliateNodeParameters {
    additionalFields?:
        | {
            addressUi?: {
                addressValues: {
                    address?: string;
                    address_two?: string;
                    city?: string;
                    country?: string;
                    postal_code?: string;
                    state?: string;
                };
            };
            companyName?: string;
        }
        | { approved?: boolean; coupon?: string };
    affiliateId?: string;
    email?: string;
    filters?:
        | {
            affiliate_group_id?: string;
            click_id?: string;
            email?: string;
            parentId?: string;
            referral_code?: string;
            source_id?: string;
        }
        | {
            affiliate_group_id?: string;
            email?: string;
            parentId?: string;
            source_id?: string;
        };
    firstname?: string;
    key?: string;
    lastname?: string;
    limit?: number;
    metadataUi?: {
        metadataValues: { key?: string; value?: string }[];
    };
    operation?: | "create"
    | "get"
    | "getAll"
    | "update"
    | "add"
    | "remove"
    | "delete"
    | "approve"
    | "disapprove";
    programId?: string;
    resource?: | "affiliate"
    | "affiliateMetadata"
    | "programAffiliate";
    returnAll?: boolean;
    value?: string;
}

Properties§

Source§

readonly additionalFields?:
    | {
        addressUi?: {
            addressValues: {
                address?: string;
                address_two?: string;
                city?: string;
                country?: string;
                postal_code?: string;
                state?: string;
            };
        };
        companyName?: string;
    }
    | { approved?: boolean; coupon?: string }

Default: {}

Source§

readonly affiliateId?: string

The ID of the affiliate

Source§

readonly email?: string

The affiliate’s email

Source§

readonly filters?:
    | {
        affiliate_group_id?: string;
        click_id?: string;
        email?: string;
        parentId?: string;
        referral_code?: string;
        source_id?: string;
    }
    | {
        affiliate_group_id?: string;
        email?: string;
        parentId?: string;
        source_id?: string;
    }

Default: {}

Source§

readonly firstname?: string

The affiliate’s firstname

Source§

readonly key?: string

Name of the metadata key to remove

Source§

readonly lastname?: string

The affiliate’s lastname

Source§

readonly limit?: number

Max number of results to return Default: 100 Type options: {"minValue":1,"maxValue":1000}

Source§

readonly metadataUi?: { metadataValues: { key?: string; value?: string }[] }

Meta data Default: {} Type options: {"multipleValues":true}

Source§

readonly operation?:
    | "create"
    | "get"
    | "getAll"
    | "update"
    | "add"
    | "remove"
    | "delete"
    | "approve"
    | "disapprove"

Default: "create"

Source§

readonly programId?: string

The ID of the Program to add the affiliate to. This ID can be found as part of the URL when viewing the program on the platform. Choose from the list, or specify an ID using an expression. Type options: {"loadOptionsMethod":"getPrograms"}

Source§

readonly resource?: "affiliate" | "affiliateMetadata" | "programAffiliate"

Default: "affiliate"

Source§

readonly returnAll?: boolean

Whether to return all results or only up to a given limit

Source§

readonly value?: string

Value to set for the metadata key