{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gsma/json-schema/gsma-kyc-match-request-body-schema.json",
  "title": "KYC_MatchRequestBody",
  "description": "Payload to validate the customer data.",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gsma-match-api-openapi.yml#/components/schemas/KYC_MatchRequestBody",
  "type": "object",
  "properties": {
    "phoneNumber": {
      "type": "string",
      "description": "A public identifier addressing a telephone subscription. In mobile networks it corresponds to the MSISDN (Mobile Station International Subscriber Directory Number). In order to be globally unique it has to be formatted in international format, according to E.164 standard, prefixed with '+'.",
      "pattern": "^\\+[1-9][0-9]{4,14}$"
    },
    "idDocument": {
      "type": "string",
      "description": "Id number associated to the official identity document in the country. It may contain alphanumeric characters."
    },
    "name": {
      "type": "string",
      "description": "Complete name of the customer, usually composed of first/given name and last/family/sur- name in a country.  Depending on the country, the order of first/give name and last/family/sur- name varies, and middle name could be included.  It can use givenName, middleNames, familyName and/or familyNameAtBirth. For example, in ESP, name+familyName; in NLD, it can be name+middleNames+familyName or name+middleNames+familyNameAtBirth, etc."
    },
    "givenName": {
      "type": "string",
      "description": "First/given name or compound first/given name of the customer."
    },
    "familyName": {
      "type": "string",
      "description": "Last name, family name, or surname of the customer."
    },
    "nameKanaHankaku": {
      "type": "string",
      "description": "Complete name of the customer in Hankaku-Kana format (reading of name) for Japan."
    },
    "nameKanaZenkaku": {
      "type": "string",
      "description": "Complete name of the customer in Zenkaku-Kana format (reading of name) for Japan."
    },
    "middleNames": {
      "type": "string",
      "description": "Middle name/s of the customer."
    },
    "familyNameAtBirth": {
      "type": "string",
      "description": "Last/family/sur- name at birth of the customer."
    },
    "address": {
      "type": "string",
      "description": "Complete address of the customer.  For some countries, it is built following the usual concatenation of parameters in a country, but for other countries, this is not the case.  For some countries, it can use streetName, streetNumber and/or houseNumberExtension. For example, in ESP, streetName+streetNumber; in NLD, it can be streetName+streetNumber or streetName+streetNumber+houseNumberExtension."
    },
    "streetName": {
      "type": "string",
      "description": "Name of the street of the customer's address. It should not include the type of the street."
    },
    "streetNumber": {
      "type": "string",
      "description": "The street number of the customer's address.  Number identifying a specific property on the 'streetName'."
    },
    "postalCode": {
      "type": "string",
      "description": "Zip code or postal code"
    },
    "region": {
      "type": "string",
      "description": "Region/prefecture of the customer's address"
    },
    "locality": {
      "type": "string",
      "description": "Locality of the customer's address"
    },
    "country": {
      "type": "string",
      "description": "Country of the customer's address. Format ISO 3166-1 alpha-2"
    },
    "houseNumberExtension": {
      "type": "string",
      "description": "Specific identifier of the house needed depending on the property type. For example, number of apartment in an apartment building."
    },
    "birthdate": {
      "type": "string",
      "format": "date",
      "description": "The birthdate of the customer, in RFC 3339 / ISO 8601 calendar date format (YYYY-MM-DD)."
    },
    "email": {
      "type": "string",
      "format": "email",
      "description": "Email address of the customer in the RFC specified format (local-part@domain)."
    },
    "gender": {
      "type": "string",
      "description": "Gender of the customer (Male/Female/Other).",
      "enum": [
        "MALE",
        "FEMALE",
        "OTHER"
      ]
    }
  }
}