Generating affiliate links

This guide explains how to generate tracked affiliate links that will attribute sales to your account.


Overview

Affiliate links are special URLs that redirect shoppers to merchant websites while tracking the referral. When a shopper clicks your link and makes a purchase, the commission is attributed to you.

Link format:

https://link.revclic.com/redirect?offer={offer_id}&affiliate={your_affiliate_id}

Method 1: Using the API

The easiest way to get affiliate links is through the Product Offers endpoint. When you provide your affiliate_id, the response automatically includes your personalized tracking links.

Fetch offers with your tracking links

curl "https://api.revclic.com/product-offers?affiliate_id=42"

Response:

{
  "status": "success",
  "data": [
    {
      "id": 789,
      "product_id": 123,
      "price": 49.99,
      "url": "https://link.revclic.com/redirect?offer=789&affiliate=42",
      "merchant": {
        "id": 1,
        "name": "TechStore"
      }
    }
  ]
}

The url field contains your ready-to-use affiliate link.

Filter offers by product

curl "https://api.revclic.com/product-offers?product_id=123&affiliate_id=42"

Method 2: Build links manually

If you already know the offer ID, you can build the link yourself:

https://link.revclic.com/redirect?offer={offer_id}&affiliate={your_affiliate_id}

Example:

https://link.revclic.com/redirect?offer=789&affiliate=42

How tracking works

When a shopper clicks your affiliate link:

  1. They are redirected to the merchant's website
  2. A revclic_id parameter is added to the URL for tracking
  3. If they make a purchase, the merchant reports it with the tracking ID
  4. The commission is attributed to your affiliate account

Using the product catalog

You can browse available products and their offers using the API:

List all products

curl "https://api.revclic.com/products"

Search for products

curl "https://api.revclic.com/products?q=laptop"

Get a specific product

curl "https://api.revclic.com/products/123"

Then fetch offers for that product with your affiliate ID to get your tracking links.


Best practices

  • Always use your affiliate ID — links without your ID won't be attributed to you
  • Use the API for fresh data — prices and availability can change
  • Test your links — verify they redirect correctly before sharing
  • Track your performance — use the dashboard or API to monitor clicks and conversions

Related endpoints