{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/citi/main/json-schema/citi-get-merchant-onboarding-schema.json",
  "title": "GetMerchantOnboarding",
  "description": "Response for Get Merchant Onboarding.",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/citi-merchantcreation-api-openapi.yml#/components/schemas/Get-Merchant-Onboarding",
  "allOf": [
    {
      "$ref": "#/$defs/Common-Merchant-Onboarding-Request"
    },
    {
      "type": "object",
      "required": [
        "merchant_id"
      ],
      "properties": {
        "merchant_id": {
          "$ref": "#/$defs/Merchant-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
        }
      }
    },
    "Merchant-Id": {
      "type": "string",
      "description": "Unique identifier generated by Citi for each seller. Seller to use this id for the further functional calls.",
      "title": "merchant_id",
      "minLength": 1,
      "maxLength": 36
    }
  }
}