Marketplace
Create Merchant
Add a new sub-merchant to your marketplace.
POST
Documentation Index
Fetch the complete documentation index at: https://docs.khaime.com/llms.txt
Use this file to discover all available pages before exploring further.
Create Merchant
Register a new sub-merchant under your marketplace. If a Khaime account with the given email already exists, it will be linked automatically. Otherwise, a new account is created.Request Body
Sub-merchant’s business name.
Sub-merchant’s email address.
Password for the new account. If omitted, a temporary password is auto-generated and returned in the response.
Sub-merchant’s phone number.
2-letter ISO country code (e.g.,
US, NG).Override the default marketplace commission for this merchant. Value between
0 and 1 (e.g., 0.08 for 8%). If omitted, uses the marketplace default.Response
The
temporary_password field is only returned when the system auto-generates a password (i.e., when business_password is not provided and a new account is created). Share this with the merchant so they can log in and change it.Error Codes
| Status | Error | Fix |
|---|---|---|
400 | business_name and business_email are required | Include both fields in the request body |
400 | commission_rate must be between 0 and 1 | Use a decimal value (e.g., 0.10 for 10%) |
403 | This endpoint is restricted to marketplace operators | Call /marketplace/setup first to enable marketplace mode |
