Sorae.init() configuration
Product
JS SDK
Deploy referral and affiliate experiences in minutes with prebuilt widgets, or drive every interaction through headless API methods for fully custom storefronts. The same SDK primitives work across Shopify and non-Shopify platforms.
Widget renderers for advocate, friend, and affiliate views
Attribution helpers for referral and affiliate codes
Headless API wrappers for custom UI
Widget-first deployment path
For teams that want fast time-to-live, Sorae's prebuilt widgets handle the full advocate, friend-claim, and affiliate portal experiences. Drop in an init call, point to the right campaign, and each widget renders with campaign-accurate state without custom API integration work.
- Advocate start widget for capturing advocate identity and share links
- Friend claim widget for referred users to redeem their incentive
- Affiliate portal widget for commission and payout visibility
- Campaign slug routing to target specific active programs
- Widget rendering with live campaign state from Sorae APIs
- Shopify theme integration without storefront customization conflicts
Headless flexibility for custom surfaces
When your storefront has its own UI patterns, Sorae's SDK methods let you drive the same logic without rendering prebuilt widgets. Call advocate start, read referral status, check attribution state, and trigger conversions through public API wrappers that normalize payload contracts.
- Headless advocate start and invite send methods
- Referral status read for in-page status rendering
- Attribution code resolution for referral and affiliate channels
- Affiliate apply and portal data methods
- Normalized API response contracts across all public endpoints
- Full TypeScript type coverage for method inputs and outputs
Cross-platform SDK primitives
Whether you're building on Shopify's theme system or a headless frontend with a custom API layer, the Sorae SDK uses the same init contract and method surface. Shopify-specific helpers like app proxy short-link resolution work alongside platform-agnostic API wrappers.
- Consistent Sorae.init() configuration across platforms
- Shopify app proxy short-link resolution built-in
- Platform-agnostic headless methods for non-Shopify surfaces
- Workspace-linked experiences supported natively
- HMAC-secured server-side request signing patterns
- API key management integrated with workspace settings
