Affiliate tracking API documentation
Build and verify your integration with the tracking script, REST API, and webhooks. Start with the Stripe checkout handoff, then use the endpoint reference for your workflow.
Introduction
Stripe Affiliate Integration Quickstart
Connect browser referrals to Stripe Checkout, verify payment attribution, and find the tracking script and REST API documentation.
AffiliateBase Setup, Attribution, and Payout Workflows
Understand how AffiliateBase moves a merchant from Stripe setup through affiliate attribution, commissions, payout runs, and reconciliation.
API
REST API Authentication and Account Scoping
Authenticate AffiliateBase REST API requests with an API key, select the account scope, and handle authentication errors.
AffiliateBase REST API Overview
Learn AffiliateBase REST API authentication, account scoping, permissions, pagination, and response contracts under /api/v1.
REST API Endpoint Reference
Reference AffiliateBase REST API endpoints, account-scoped query parameters, request fields, response shapes, and error codes.
Affiliate Tracking JavaScript Reference
Configure the AffiliateBase tracking script, read generated referral IDs, and connect browser attribution to Stripe Checkout.
AffiliateBase OpenAPI Specification
Download the machine-readable AffiliateBase REST API contract for client generation, agent tooling, and endpoint validation.
Affiliate Webhook API Reference
Build an AffiliateBase webhook receiver with signature verification, event payloads, delivery retries, and idempotent processing.
Manage Affiliate Promo Codes with MCP
Search Stripe codes, preview assignments, create affiliate promo codes, and retry safely with the AffiliateBase MCP tool.