Marketplace
Link Merchant
Link an existing Khaime business as a sub-merchant in your marketplace.
POST
Link Merchant
Link a business that already has a Khaime account to your marketplace as a sub-merchant. Use this when onboarding merchants who signed up independently before joining your marketplace.If the business doesn’t have a Khaime account yet, use Create Merchant (single) or Import Merchants (bulk) instead — both create the account for you. This endpoint only links existing accounts.
Request Body
string
required
Email of the existing Khaime business to link. Must match an account exactly — there’s no fuzzy matching.
number
Decimal commission rate between
0 and 1 for this merchant. If omitted, the merchant inherits your marketplace’s default rate dynamically — meaning if you change your portfolio default later, this merchant’s effective rate changes too. Pass an explicit value only if you want this merchant pinned to a fixed rate regardless of future default changes.What happens depends on prior state
1. Not linked before → creates a new relationship,status: active. Response is 201.
200 and omits commission_rate_inherited and marketplace_id present in case 1:
status: active, joined_at reset to now). Response is 200, shape matches case 1 (includes commission_rate_inherited), message "Merchant reactivated in your marketplace".
In all three cases, if commission_rate is explicitly provided, it overwrites the stored rate; if omitted on reactivation, the previously stored rate is kept.
