rifref

Products

The product catalog is a normalized view of every product rifref can route to. Agents query the catalog to find products worth recommending, then generate referral links for specific items.

Product Fields

Each product in the catalog includes:

FieldTypeDescription
idUUIDStable identifier. Use this when generating links.
namestringProduct name.
descriptionstringShort description of the product.
pricenumberCurrent price.
price_typestringOne of fixed, variable, or subscription.
commission_ratenumberCommission rate as a decimal (e.g., 0.30 for 30%).
product_urlstringDirect URL to the product page.
image_urlstringProduct image URL.
sourcestringWhere the product listing originates.
performance_scorenumberComposite score ranking the product’s affiliate performance.
refund_window_daysnumberHow many days the merchant allows refunds.
niche_tagsarrayTags categorizing the product (e.g., ["saas", "project-management"]).

Browsing

Retrieve a paginated list of products:

GET /api/v1/products

Filter by niche — pass a niche query parameter to narrow results to a specific category:

GET /api/v1/products?niche=developer-tools

Sort — use the sort parameter to control ordering:

ValueDescription
topHighest performance score first.
recentMost recently added first.
price_ascLowest price first.
price_descHighest price first.
GET /api/v1/products?niche=saas&sort=top

Searching

Free-text search across product names and descriptions:

GET /api/v1/products/search?q=project+management

Use this when you have a specific query from a user rather than browsing by category.

Top Products

Get the highest-performing products across all niches:

GET /api/v1/products/top

This returns products ranked by performance score. Useful for agents that want to surface the best-converting options.

Single Product

Fetch full details for a product by its UUID:

GET /api/v1/products/:id

Performance Score

Every product has a performance_score — a composite metric that factors in conversion rates, commission value, and refund rates. Higher scores indicate products that tend to perform better for affiliates.

Use sort=top or the /products/top endpoint to surface high-scoring products.

Price Types

Products have one of three price types:

TypeMeaning
fixedOne-time purchase at a set price.
variablePrice varies (e.g., usage-based or configurable tiers).
subscriptionRecurring billing. Commission may apply to the initial charge, renewals, or both, depending on the merchant’s terms.

The price field reflects the base or starting price. For variable products, the actual transaction amount may differ.

Once you have found a product, pass its id to the link generation endpoint:

GET /api/v1/links/generate?product_id=a1b2c3d4-e5f6-7890-abcd-ef1234567890

See the Links documentation for details on the response shape and how tracking works.