Marketing Attribution API¶
ScaleTrade attribution is brand-scoped and uses the common customer registration endpoint.
- A visitor opens a normal brand page with campaign, affiliate, link, UTM, or sub-id query values.
- The static-page handler records the touch using the brand resolved from the request host.
- Registration resolves the latest valid touch and snapshots it into the customer.
- An external landing page can pass the same public attribution values directly in the registration body.
- Mobile installations use
/appand/app/activatebefore registering withinstallation_id.
Public campaign and affiliate codes are attribution values, not credentials.
Affiliate cabinet¶
The brand serves a dedicated cabinet at /affiliate. Cabinet credentials are
configured per affiliate and brand by CRM. Authentication accepts the affiliate
email or code and returns a dedicated affiliate JWT; manager and customer tokens
are not accepted.
| Method | Path | Purpose |
|---|---|---|
POST |
/api/affiliate/login |
Authenticate with login and password |
POST |
/api/affiliate/logout |
End the browser session |
GET |
/api/affiliate/me |
Current affiliate profile |
GET |
/api/affiliate/dashboard?range=30d |
Brand-scoped funnel totals |
GET |
/api/affiliate/links |
Affiliate tracking links |
GET |
/api/affiliate/conversions?range=30d |
Recent attributed conversions |
See: