{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "urn:sbv:iso20022:camt.056.001.10",
  "title": "FIToFIPaymentCancellationRequest — camt.056.001.10 (SBV profile)",
  "description": "ISO 20022 camt.056.001.10: Yêu cầu hủy lệnh thanh toán liên ngân hàng",
  "type": "object",
  "required": ["Document"],
  "properties": {
    "Document": {
      "type": "object",
      "required": ["FIToFIPmtCxlReq"],
      "properties": {
        "FIToFIPmtCxlReq": {
          "type": "object",
          "required": ["Assgnmt", "Undrlyg"],
          "properties": {
            "Assgnmt": {
              "type": "object",
              "required": ["Id", "Assgnr", "Assgne", "CreDtTm"],
              "properties": {
                "Id":      { "type": "string", "maxLength": 35 },
                "Assgnr":  { "type": "object" },
                "Assgne":  { "type": "object" },
                "CreDtTm": { "type": "string", "format": "date-time" }
              }
            },
            "Undrlyg": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "object",
                "properties": {
                  "TxInf": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "CxlId":          { "type": "string", "maxLength": 35 },
                        "OrgnlEndToEndId":{ "type": "string", "maxLength": 35 },
                        "OrgnlTxId":      { "type": "string", "maxLength": 35 },
                        "OrgnlUETR":      { "type": "string", "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$" },
                        "CxlRsnInf": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "Rsn": { "type": "object", "properties": { "Cd": { "type": "string", "maxLength": 4 } } }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
