Core APIs
Create a new member
Creates a new member in the MLM hierarchy. The member can optionally be placed
under a parent (sponsor) using parent_id or referral_code.
Guardrails:
- If
can_recruitis false for the parent, the request will fail with 403 - Email must be unique within the tenant
POST
Authorizations
Tenant API key for authentication. Keys are scoped to specific environments (LIVE or SANDBOX). Obtain keys from the admin dashboard.
Body
application/json
User's email address (must be unique)
Member's tier in the hierarchy
Available options:
ORDINARY, SENIOR, MANAGER, DIRECTOR Parent/sponsor user ID
Referral code to attribute to a sponsor
Whether the user is active
Whether the user can recruit new members
Response
Member created successfully
Member's tier in the hierarchy
Available options:
ORDINARY, SENIOR, MANAGER, DIRECTOR