ApiResourcesAffiliate Program
Overview
Configure affiliate commissions, product restrictions, and invitation onboarding through the API.
The Affiliate Program API exposes the same configuration and invitation actions used by the SellApp dashboard. API keys need the affiliate ability.
Endpoints
- Retrieve affiliate program configuration
- Replace affiliate program configuration
- List pending invitations
- Invite an affiliate
Configuration replacement is atomic. When enabled_specific_products is true, the products array is authoritative and every supplied ID must be a product variant owned by the authenticated store. An empty array disables every existing store-level product restriction.
Invitation creation emails a single-use onboarding link. The secret link is never returned in API responses. Duplicate invitations and invitations while the program is disabled return a validation error.