Skip to main content
This guide shows how to pull individual click rows from Affiliate.com, pull individual conversions from Shopnomix, and join them on a shared click id to get the full click → sale picture.

Overview

You don’t need to configure anything to make the join work. When Affiliate.com builds a Shopnomix outclick redirect, it automatically appends cid=cl-<id> to the outbound URL, where <id> is the same click identifier returned as the id field in the outclick report. Shopnomix captures that value in its click_id field.

Step 1 — Get clicks (Affiliate.com)

Use GET /v1/reports/outclick to retrieve individual click rows, including the product, price, merchant, and sub_id. See the endpoint reference for the full parameter and response field list.

Example request

Example response row

Join key from this row. Prefix the outclick id with cl- to get the value Shopnomix stores in click_id: cl-01kyn6z1rg0vnabvnenwfxr25c.

Step 2 — Get conversions (Shopnomix)

Use GET /api/v2/reporting/conversion on https://r.v2i8b.com. This returns individual conversions, each with a click_id you can join on. Shopnomix does not expose a per-click feed — only conversions. Auth: Authorization: Bearer <SHOPNOMIX_API_KEY> · Pagination: follow meta.next_page until it is null.

Example request

Example response

Only rows with a non-null click_id can be joined. Conversions with click_id: null have no link back to the outclick report.

Step 3 — Join for the full picture

Join on the click id, adding the cl- prefix to the outclick id:
For example, an outclick id of 01kyn6z1rg0vnabvnenwfxr25c matches a Shopnomix click_id of cl-01kyn6z1rg0vnabvnenwfxr25c.

Pseudo-code