Getting started
Before you can enroll sub-merchants, you need to set up your platform account:- Sign up for a platform account: Create a Company account at whop.com/dashboard
- Generate a Company API key: Go to your developer settings page and generate a Company API key
- Use the API key for authentication: This API key is how you authenticate with the Whop API and control your sub-merchant accounts
Example
Here’s an example of how to create a Company for a sub-merchant:emailis the sub-merchant’s email address. This is used to identify the sub-merchant and send them important notifications about their account.parent_company_idis your platform’s company ID (the parent company)titleis the display name for the sub-merchant account. This is required.metadatacontains custom key-value pairs:internal_user_id: Your platform’s internal identifier for this sub-merchantseller_tier: A classification or tier level for the sub-merchant (e.g., “bronze”, “silver”, “gold”)
- The response includes a
company.idthat you can use to reference this sub-merchant in future API calls
Custom metadata
You can attach custom metadata to companies when creating them. Metadata allows you to store additional information about each sub-merchant as key-value pairs. This is useful for:- Storing your internal user or merchant identifiers
- Tracking sub-merchant tiers or classifications
- Linking to your platform’s database records
API Reference
Create Company API
See the full API reference for creating companies and all available parameters

