{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/citi/main/json-schema/citi-merchant-onboarding-request-schema.json",
  "title": "MerchantOnboardingRequest",
  "description": "Request parameters for Merchant Onboarding Request.",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/citi-merchantcreation-api-openapi.yml#/components/schemas/Merchant-Onboarding-Request",
  "allOf": [
    {
      "$ref": "#/$defs/Common-Merchant-Onboarding-Request"
    },
    {
      "type": "object",
      "required": [
        "partner_user_id"
      ],
      "properties": {
        "partner_user_id": {
          "$ref": "#/$defs/Partner-User-Id"
        }
      }
    }
  ],
  "$defs": {
    "Common-Merchant-Onboarding-Request": {
      "title": "CommonMerchantOnboardingRequest",
      "description": "Request parameters for Merchant Onboarding Request.",
      "type": "object",
      "required": [
        "contact_number",
        "contact_prefix",
        "email"
      ],
      "properties": {
        "contact_number": {
          "type": "string",
          "description": "Contact number of the merchant.",
          "title": "contact number",
          "minLength": 1,
          "maxLength": 32
        },
        "contact_prefix": {
          "type": "string",
          "description": "Country code of the contact number.",
          "title": "contact_prefix",
          "minLength": 1,
          "maxLength": 32
        },
        "email": {
          "type": "string",
          "description": "The email address of the merchant. It should always be in lower case.",
          "title": "email",
          "minLength": 1,
          "maxLength": 64
        }
      }
    },
    "Partner-User-Id": {
      "type": "string",
      "description": "Partner user identifier for seller from your system.",
      "title": "partner_user_id",
      "minLength": 1,
      "maxLength": 50
    }
  }
}