Skip to main content

Update a Sub-Merchant

All fields are optional. Only provided fields will be modified.

Endpoint

PATCH /api/v1/sub-merchant/:subMerchantId

Headers

NameTypeRequiredDescription
AuthorizationstringYesBearer YOUR_API_KEY
Content-TypestringYesapplication/json

Request Body

{
  "commercialName": "New Name",
  "countries": ["SN", "CI", "BJ"]
}
All parameters from the create endpoint are accepted, all optional.

Success Response (200)

{
  "success": true,
  "message": "Sub-merchant updated successfully",
  "data": {
    "subMerchantId": "sm-7f4a9940c621",
    "commercialName": "New Name",
    "countries": ["SN", "CI", "BJ"],
    "isActive": true
  }
}