{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/first-direct/json-schema/first-direct-obfunds-confirmation1-schema.json",
  "title": "OBFundsConfirmation1",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/first-direct-funds-confirmations-api-openapi.yml#/components/schemas/OBFundsConfirmation1",
  "type": "object",
  "required": [
    "Data"
  ],
  "properties": {
    "Data": {
      "type": "object",
      "required": [
        "ConsentId",
        "Reference",
        "InstructedAmount"
      ],
      "properties": {
        "ConsentId": {
          "description": "Unique identification as assigned by the ASPSP to uniquely identify the funds confirmation consent resource.",
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "Reference": {
          "description": "Unique reference, as assigned by the CBPII, to unambiguously refer to the request related to the payment transaction.",
          "type": "string",
          "minLength": 1,
          "maxLength": 35
        },
        "InstructedAmount": {
          "type": "object",
          "required": [
            "Amount",
            "Currency"
          ],
          "description": "Amount of money to be confirmed as available funds in the debtor account. Contains an Amount and a Currency.",
          "properties": {
            "Amount": {
              "description": "A number of monetary units specified in an active currency where the unit of currency is explicit and compliant with ISO 4217.",
              "type": "string",
              "pattern": "^\\d{1,13}$|^\\d{1,13}\\.\\d{1,5}$"
            },
            "Currency": {
              "description": "A code allocated to a currency by a Maintenance Agency under an international identification scheme, as described in the latest edition of the international standard ISO 4217 \"Codes for the representation of currencies and funds\".",
              "type": "string",
              "pattern": "^[A-Z]{3,3}$"
            }
          }
        }
      }
    }
  },
  "additionalProperties": false
}