Marketplace
Import Merchants
Bulk-create and/or link up to 100 sub-merchants in a single request.
POST
Import Merchants
Bulk-onboard sub-merchants: for each entry, creates a new Khaime account if the email doesn’t exist yet, or links the existing account if it does. Combines what Create Merchant and Link Merchant do individually, per row.Request Body
array
required
Non-empty array, maximum 100 entries per request.
Response
linked entries: action is "linked" or "reactivated"
An entry lands in results.linked in two different situations, distinguished by action:
"linked"— an existing Khaime account with no prior relationship to your marketplace was linked for the first time."reactivated"— the account had a previously suspended relationship with your marketplace, now reactivated.
results.skipped instead (see below), not results.linked.
skipped entries
An entry lands here only for one reason today: reason: "Already linked and active" — the email already has an active relationship in your marketplace, so nothing changed.
Per-entry failure reasons
Each item inresults.failed has a reason string, one of:
"business_email is required"— missing or non-string email"commission_rate must be a decimal between 0 and 1""Cannot link your own account as a sub-merchant"— entry’s email matches your own operator account"business_name is required when creating a new account (no existing Khaime account found)"- any other caught exception message (generic, not enumerable)
