polymarket-affiliate

Polymarket Click Beacon

Fire-and-forget click beacon from the FE Polymarket bet-card.

Accepts {click_id?, embedder_slug?, event?} and persists a zero- amount click :class:EmbedderRevenueEvent attributed to the embedder (so the affiliate roll-up can build a click→deposit funnel without a second table — same shape the embed click-broker uses).

Best-effort discipline (matches the rest of the affiliate surface):

  • Unknown / omitted embedder slug → fall back to the house embedder if one exists, else log-only (no DB row) and still 200. We never 500 a beacon.
  • Replay within the same UTC day → IntegrityError on the dub_event_id UNIQUE constraint → rollback + NOOP, still 200.
  • Any other persist failure → rollback + log, still 200.

Intentionally NOT FF-gated: POLYMARKET_AFFILIATE_ENABLED only controls whether :func:polymarket_affiliate_link mints an attributed URL; if the operator temporarily flips it off we still want to log the clicks the card is sending so we don't lose tracking on a transient disable.

post/v1/affiliate/polymarket/click

Request

  • Base URL: https://api.storyflo.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.storyflo.com/v1/affiliate/polymarket/click
  • Auth: none declared

Request body

object required

Response

Successful Response

object required

Changes

No recorded changes to this operation across all 1 revision of this API.