Tell Trendly about the sales your creators bring in, from your own systems, a Cloudflare Worker or Impact.com. Or connect your Trendly account to an AI assistant and run campaigns from a chat. Pick the guide that fits your setup.
Start here
Every affiliate sale follows the same four steps, whichever way you connect. You only ever handle the third one, and on Impact.com not even that.
Creator
Shares a code or a link
Their personal discount code, or a link to your site with their code in it.
Customer
Buys from you
Using the code at checkout, or after arriving through the link.
You
Your system, the Worker or Impact tells Trendly
One HTTPS call per order and per change, or nothing at all on Impact.com.
Trendly
Credits the creator and pays out
Matches the creator, holds the commission through your refund window, then pays it in a payout run.
Guides
Report sales
Your shop, app or backend tells Trendly about each order over HTTPS.
Connect your stack
Ready-made routes for brands on Cloudflare or Impact.com.
Cloudflare Worker
Track creator links and report sales from your own Cloudflare account.
A Worker you copy and deploy. It remembers which creator link a visitor came from, takes each conversion from your backend and reports it to Trendly with retries.
?trendly=CODE linksPOST /trendly/conversionwrangler deployImpact.com
Your program runs on Impact.com. Trendly joins it as a partner.
Nothing for your developers to build. Trendly reads its own partner actions for your campaign every 15 minutes and credits each sale to the creator by promo code or subId1.
PromoCodesubId1Every 15 minutesAI assistants
Run your Trendly account from Claude, ChatGPT or your code editor.
Not sure?
| IF | READ |
|---|---|
| Your shop, app or backend can make an HTTPS call when an order changes | Sales API |
| Your site runs on Cloudflare, or creators share links to your site rather than codes | Cloudflare Worker |
| Your affiliate program already runs on Impact.com | Impact.com |
| You want to search creators, run campaigns or handle offers from Claude, ChatGPT or your editor | MCP connector |
Beyond sales
The Sales API covers affiliate sales and codes. The rest of Trendly is reachable through the MCP server, which acts as a signed-in user with the same permissions as the dashboard. Connect it to an AI assistant, or to any MCP client you write yourself.
Campaigns
Through MCP
Create, update, complete and reactivate campaigns, and read their analytics.
Offers
Through MCP
List the offers on a campaign, then approve, reject or counter them.
Creators
Through MCP
Search creators and read their profiles, analytics and audience demographics.
Collaborations
Through MCP
Follow collaborations, approve content and share briefs.
Sales API basics
One key, in a header
Authorization: Bearer trk_live_… (or the same value as X-API-Key) over HTTPS to https://api.trendly.com.sa. Keys are created in your developer settings, shown once and stored hashed.Test keys store real test data
trk_test_… key runs the same code against the same program. Its orders are stored marked as test, left out of every figure and payout, and can be cleared from the dashboard.The version is in the path
/v2, never as a change to /v1. Additive changes land in place and are listed in the changelog.Every call is logged back to you
X-Request-Id. GET /v1/events returns your own request history with bodies, and the same log is in the dashboard. Send the request id from a failing call and Trendly can see exactly what you sent and what came back.Get a key
If you have a Trendly login, open Developers in the dashboard and create a test key yourself. If you do not, your Trendly contact can issue one. The MCP connector and Impact.com do not need a key.
Your API keys