{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/depixapp-com/json-schema/depixapp-com-merchant-update-request-schema.json",
  "title": "MerchantUpdateRequest",
  "description": "Partial merchant-profile update — only the provided fields change. On the API-key path ONLY these 5 light fields are editable; sending liquid_address, cnpj or password is rejected with 400 validation_error (owner + web dashboard only). split_address is never editable here (admin only). Every key-authenticated PATCH emails the account owner (compensating control).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/depixapp-com-merchant-api-openapi.yml#/components/schemas/MerchantUpdateRequest",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "business_name": {
      "type": "string",
      "description": "New business name (2–100 chars). Changing it rotates the public merchant_slug and retires the old one, so any outstanding payment links or checkout URLs built on the old slug will 404 — rename with that in mind.",
      "minLength": 2,
      "maxLength": 100
    },
    "website": {
      "type": [
        "string",
        "null"
      ],
      "description": "New website URL (normalized to https://; null/empty clears it)."
    },
    "logo_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "New HTTPS logo URL (null/empty clears it)."
    },
    "default_callback_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "New HTTPS default webhook endpoint for deposit.*/withdraw.* events (null/empty clears it)."
    },
    "default_redirect_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "New HTTPS default post-payment redirect for this merchant's customers (null/empty clears it)."
    }
  }
}