Tapfiliate · Schema

Affiliate

An affiliate in the Tapfiliate platform.

Affiliate MarketingAffiliate TrackingCommission ManagementConversion TrackingPartner ProgramsReferral ProgramsInfluencer Marketing

Properties

Name Type Description
id string Affiliate ID
email string Affiliate's email address
firstname string Affiliate's first name
lastname string Affiliate's last name
created_at string
group objectnull The affiliate group this affiliate belongs to
meta_data object Arbitrary key-value metadata
referral_link string Default referral link for this affiliate
coupon stringnull Coupon code associated with this affiliate
parent objectnull Parent affiliate for MLM structures
View JSON Schema on GitHub

JSON Schema

tapfiliate-affiliate.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api.tapfiliate.com/schemas/affiliate.json",
  "title": "Affiliate",
  "description": "An affiliate in the Tapfiliate platform.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Affiliate ID"
    },
    "email": {
      "type": "string",
      "format": "email",
      "description": "Affiliate's email address"
    },
    "firstname": {
      "type": "string",
      "description": "Affiliate's first name"
    },
    "lastname": {
      "type": "string",
      "description": "Affiliate's last name"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "group": {
      "type": ["object", "null"],
      "description": "The affiliate group this affiliate belongs to",
      "properties": {
        "id": { "type": "string" },
        "name": { "type": "string" }
      }
    },
    "meta_data": {
      "type": "object",
      "additionalProperties": true,
      "description": "Arbitrary key-value metadata"
    },
    "referral_link": {
      "type": "string",
      "format": "uri",
      "description": "Default referral link for this affiliate"
    },
    "coupon": {
      "type": ["string", "null"],
      "description": "Coupon code associated with this affiliate"
    },
    "parent": {
      "type": ["object", "null"],
      "description": "Parent affiliate for MLM structures",
      "properties": {
        "id": { "type": "string" },
        "email": { "type": "string", "format": "email" },
        "firstname": { "type": "string" },
        "lastname": { "type": "string" }
      }
    }
  },
  "required": ["id", "email", "firstname", "lastname"]
}