Affiliate Partner

Affiliate Partner API

Endpoint
POSThttps://idxsolana.io/api/affiliate/register
Description
This API enables website owners to join our affiliate program and earn IDX tokens for each unique visitor they refer to our platform.
Authentication
API key required for affiliate dashboard access. Initial registration requires no authentication.

Request Parameters

The request body should be a JSON object containing:

ParameterTypeRequiredDescription
website_urlStringYesURL of the partner website
emailStringYesContact email for the affiliate account
nameStringYesName of the website or organization
wallet_addressStringYesSolana wallet address to receive IDX tokens
descriptionStringNoBrief description of your website
categoryStringNoWebsite category (e.g., "crypto", "finance", "tech")
preferred_payout_frequencyStringNoPreferred payout frequency: "daily", "weekly", or "monthly" (default: "monthly")

Example Request

{
  "website_url": "https://cryptoblog.example.com",
  "email": "partner@example.com",
  "name": "Crypto Blog Example",
  "wallet_address": "8xDmhMtYZP6uqj64KxNbfcMxpzSKnCXrKvQVDfMpuQNM",
  "description": "A blog about cryptocurrency and blockchain technology",
  "category": "crypto",
  "preferred_payout_frequency": "weekly"
}

Response Format

Success Response (200 OK)

{
  "status": 200,
  "error": false,
  "message": "Affiliate registration successful",
  "data": {
    "affiliate_id": "aff_12345",
    "api_key": "idx_affkey_67890abcdef12345",
    "referral_url": "https://idxsolana.io/ref/aff_12345",
    "widget_code": "<script src='https://idxsolana.io/js/affiliate.js?id=aff_12345'></script>",
    "reward_rate": {
      "per_visitor": 0.1,
      "per_signup": 5.0,
      "currency": "IDX"
    },
    "dashboard_url": "https://idxsolana.io/affiliate/dashboard/aff_12345"
  }
}

Error Response (400 Bad Request)

{
  "status": 400,
  "error": true,
  "message": "Invalid wallet address format",
  "data": null
}

Sample API Call

fetch('https://idxsolana.io/api/affiliate/register', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "website_url": "https://cryptoblog.example.com",
    "email": "partner@example.com",
    "name": "Crypto Blog Example",
    "wallet_address": "8xDmhMtYZP6uqj64KxNbfcMxpzSKnCXrKvQVDfMpuQNM",
    "description": "A blog about cryptocurrency and blockchain technology",
    "category": "crypto",
    "preferred_payout_frequency": "weekly"
  }),
})
.then(response => response.json())
.then(data => {
  if (!data.error) {
    // Store API key securely
    localStorage.setItem('idx_affiliate_id', data.data.affiliate_id);
    
    // Display widget code for the website owner to copy
    document.getElementById('widget-code').textContent = data.data.widget_code;
    
    // Show success message
    alert('Successfully registered as an affiliate partner! Your referral URL is: ' + data.data.referral_url);
  } else {
    alert('Error: ' + data.message);
  }
})
.catch(error => console.error('Error:', error));

Tracking Implementation

There are two ways to implement the affiliate tracking on your website:

1. JavaScript Widget

Simply add the provided script tag to your website's header or footer. This will automatically track visitors and display a subtle IDX logo in the corner of your site.

<script src="https://idxsolana.io/js/affiliate.js?id=aff_12345"></script>

2. Direct Link Referrals

Share your unique referral link with your audience. When users click through, they'll be redirected to our platform and tracked as your referrals.

https://idxsolana.io/ref/aff_12345

Custom Banner Implementation

You can also create custom banners or buttons that link to your referral URL. Here's an example of how to implement a promotional banner:

<div style="border: 1px solid #3b82f6; border-radius: 8px; padding: 20px; max-width: 500px; margin: 20px auto; background-color: #1e3a8a;">
  <h3 style="color: #93c5fd; margin-top: 0; font-size: 18px;">Earn IDX Tokens with Crypto Trading</h3>
  <p style="color: #e5e7eb; margin-bottom: 15px;">Join IDX Solana for seamless crypto trading and staking with lower fees.</p>
  <a href="https://idxsolana.io/ref/aff_12345" 
     style="display: inline-block; background-color: #3b82f6; color: white; padding: 10px 20px; 
            text-decoration: none; border-radius: 4px; font-weight: bold;">
    Join Now
  </a>
</div>

Earn IDX Tokens with Crypto Trading

Join IDX Solana for seamless crypto trading and staking with lower fees.

Join Now

Reward Structure

ActionReward (IDX)Requirements
Unique Visitor0.1User must stay on the site for at least 30 seconds
New Registration5.0User must complete email verification
First Deposit10.0Minimum deposit of $50 equivalent
Trading Volume0.01% of volumeUser's trading activity for the first 3 months

Tier Structure

As you refer more users, you can advance through our tier structure to earn higher rewards:

Bronze

0-50 active referred users

• Base reward rates

• Monthly payouts

Silver

51-200 active referred users

• 1.5x base reward rates

• Bi-weekly payouts

Gold

201+ active referred users

• 2x base reward rates

• Weekly payouts + bonus rewards

Dashboard API Access

After registration, you can access your affiliate statistics programmatically through our Dashboard API.

Endpoint

GET https://idxsolana.io/api/affiliate/stats

Headers

{
  "X-API-KEY": "your_api_key_here"
}

Query Parameters

ParameterTypeRequiredDescription
periodStringNo"day", "week", "month", or "all" (default: "month")
start_dateStringNoStart date in YYYY-MM-DD format
end_dateStringNoEnd date in YYYY-MM-DD format

Example Response

{
  "status": 200,
  "error": false,
  "data": {
    "period": "month",
    "start_date": "2023-09-01",
    "end_date": "2023-09-30",
    "statistics": {
      "total_visitors": 1458,
      "unique_visitors": 876,
      "registrations": 92,
      "deposits": 37,
      "total_earned": 246.82,
      "pending_payout": 125.45,
      "currency": "IDX"
    },
    "daily_breakdown": [
      {
        "date": "2023-09-01",
        "visitors": 42,
        "registrations": 3,
        "earnings": 8.20
      },
      // Additional daily entries...
    ],
    "tier_status": {
      "current_tier": "Silver",
      "active_referred_users": 124,
      "next_tier": "Gold",
      "users_needed_for_next_tier": 77
    }
  }
}

Implementation Tips

  • Place the affiliate widget in a visible but non-intrusive location on your site
  • Use custom banners that match your site's design for higher conversion rates
  • Incorporate referral links in relevant content such as tutorials or reviews
  • Create dedicated landing pages for specific audiences to increase conversions
  • Regularly check your affiliate dashboard to track performance and optimize placement