Marketplace
Update Marketplace Settings
Configure marketplace-level notification settings, including whether to send payment emails to sub-merchants and buyers.
PATCH
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.
Update Marketplace Settings
Control which payment notification emails Khaime sends on behalf of your marketplace. By default, Khaime sends payment receipts to sub-merchants and payment confirmation emails to buyers after every successful charge. Use this endpoint to disable either or both.Request Body
Notification settings to update. At least one key is required.
Response
Behavior
Settings are merged — you can update one key without affecting the other. Unset keys default totrue at send time, so omitting a key from this call does not disable that notification.
send_sub_merchant_notifications | Effect |
|---|---|
true (default) | Sub-merchants receive a receipt email when a charge on their behalf is settled |
false | Sub-merchant receipt emails are suppressed across all payment gateways |
send_buyer_notifications | Effect |
|---|---|
true (default) | Buyers receive a payment confirmation email after each successful charge |
false | Buyer confirmation emails are suppressed across all payment gateways |
These settings apply across all three payment gateways (Stripe, Paystack, StartButton). Changes take effect on the next incoming webhook — there is no retroactive sending or suppression.
Error Codes
| Status | Error | Fix |
|---|---|---|
401 | Unauthorized | Provide a valid X-API-Key header |
403 | This endpoint is restricted to marketplace operators | Your account must have marketplace mode enabled |
422 | "notification_config" must contain at least one setting | Include at least one key in notification_config |
