{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/idenfy/main/json-schema/idenfy-gov-partner-order-document-request-schema.json",
  "title": "GovPartnerOrderDocumentRequest",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/idenfy-gov-orders-api-openapi.yml#/components/schemas/GovPartnerOrderDocumentRequest",
  "type": "object",
  "properties": {
    "countryCode": {
      "allOf": [
        {
          "$ref": "#/$defs/CountryCodeEnum"
        }
      ],
      "writeOnly": true
    },
    "registrationNumber": {
      "type": "string",
      "writeOnly": true,
      "minLength": 1,
      "description": "External company ID from GOV registers search should be used."
    },
    "region": {
      "type": "string",
      "writeOnly": true,
      "minLength": 1
    },
    "companyName": {
      "type": "string",
      "writeOnly": true,
      "minLength": 1,
      "maxLength": 200
    },
    "productKey": {
      "type": "string",
      "writeOnly": true,
      "minLength": 1
    }
  },
  "required": [
    "companyName",
    "countryCode",
    "productKey",
    "registrationNumber"
  ],
  "$defs": {
    "CountryCodeEnum": {
      "enum": [
        "AL",
        "AM",
        "AR",
        "AT",
        "AU",
        "AW",
        "AZ",
        "BA",
        "BB",
        "BD",
        "BE",
        "BG",
        "BH",
        "BN",
        "BO",
        "BQ",
        "BR",
        "BW",
        "BY",
        "BZ",
        "CA",
        "CH",
        "CN",
        "CO",
        "CR",
        "CW",
        "CY",
        "CZ",
        "DE",
        "DK",
        "DO",
        "EC",
        "EE",
        "ES",
        "FI",
        "FR",
        "GB",
        "GE",
        "GG",
        "GH",
        "GI",
        "GR",
        "HK",
        "HR",
        "HU",
        "ID",
        "IE",
        "IL",
        "IM",
        "IN",
        "IS",
        "IT",
        "JE",
        "JO",
        "KH",
        "KW",
        "KY",
        "LI",
        "LK",
        "LS",
        "LT",
        "LU",
        "LV",
        "MA",
        "ME",
        "MH",
        "MM",
        "MT",
        "MU",
        "MY",
        "NL",
        "NO",
        "NZ",
        "PE",
        "PH",
        "PK",
        "PL",
        "PR",
        "PT",
        "QA",
        "RO",
        "RS",
        "RU",
        "SB",
        "SE",
        "SG",
        "SI",
        "SK",
        "TH",
        "TN",
        "TO",
        "TR",
        "TT",
        "TW",
        "UG",
        "US",
        "UY",
        "VG",
        "VI",
        "VN",
        "VU",
        "WS",
        "ZA"
      ],
      "type": "string"
    }
  }
}