Marketplace
Update Merchant
Update a sub-merchant’s basic profile details and marketplace-specific commission rate.
PATCH
Update Merchant
Update basic information for a sub-merchant linked to your marketplace. You can also update this marketplace’s commission rate for that specific merchant.Path Parameters
The business ID of the sub-merchant to update.
Request Body
At least one field is required.Sub-merchant business name.
Sub-merchant email address. This must be unique across Khaime accounts.
Sub-merchant public phone number.
Sub-merchant country name or country value stored on the business account.
2-letter ISO country code, for example
NG, US, or GB.Sub-merchant website URL.
Public sub-merchant description.
Commission rate for this marketplace-merchant relationship, expressed as a decimal between
0 and 1.
For example, send 0.12 for 12%.Response
Behavior
This endpoint only updates merchants that are actively linked to your marketplace. Profile fields update the sub-merchant’s Khaime business profile and public portfolio fields.commission_rate updates the commission override for this specific marketplace-merchant relationship.
Use Update Marketplace Settings when you want to update the marketplace’s own profile or default commission rate. Use this endpoint when the change belongs to one sub-merchant.
Error Codes
| Status | Error | Fix |
|---|---|---|
400 | At least one merchant setting must be provided | Include at least one supported field |
400 | merchantId must be a valid sub-merchant business id | Use the sub-merchant business ID |
400 | commission_rate must be between 0 and 1 | Use a decimal value, for example 0.10 for 10% |
400 | business_email must be a valid email | Send a valid email address |
400 | business_email is already in use | Use an email address that is not already tied to another Khaime account |
401 | Unauthorized | Provide a valid X-API-Key header |
403 | This endpoint is restricted to marketplace operators | Your account must have marketplace mode enabled |
404 | Active merchant relationship not found | The merchant is not actively linked to your marketplace |
404 | Sub-merchant account not found | The merchant account or portfolio could not be found |
