{
    "schema": "http://json-schema.org/draft-06/schema#",
    "id": "file://po11#",
    "description": "CdtrAgt object schema",
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "CdtrAgt": {
            "type": "object",
            "description": "Financial institution servicing an account for the creditor.",
            "properties": {
                "FinInstnId": {
                    "type": "object",
                    "description": "Allows the details of the Creditor Agent to be held",
                    "properties": {
                        "Nm": {
                            "description": "Name by which the party is known and which is usually used to identify the party.\n\n\u2022 Must include one (1) name string.\n\n\u2022 Allowable characters: Alphanumeric and space.\n\n\u2022 Names with multiple words must be separated by a space. For example, specify \"Widgets Org\", as `Widgets Org`.\n\n\u2022 Provide a truncated name if longer than 140 characters.",
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9 \\t]+$",
                            "minLength": 1,
                            "maxLength": 140
                        },
                        "Othr": {
                            "type": "object",
                            "description": "Unique identification of an agent, as assigned by an institution, using an identification scheme.",
                            "properties": {
                                "Id": {
                                    "type": "string",
                                    "description": "Unique and unambiguous identification of a person."
                                }
                            }
                        }
                    }
                },
                "BrnchId": {
                    "type": "object",
                    "description": "Allows the details of the Creditor Agent Branch to be held",
                    "properties": {
                        "PstlAdr": {
                            "type": "object",
                            "description": "Address for the Branch",
                            "properties": {
                                "Ctry": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{2}$",
                                    "description": "Information that locates and identifies the country for the party, as defined by postal services. Use Alpha-2 Code as defined in the [ISO CountryCode ISO 3166-1](https://www.iso.org/obp/ui/#search) list."
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "required": [
        "CdtrAgt"
    ]
}