{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/if/json-schema/if-outgoing-transfer-list-response-schema.json",
  "title": "OutgoingTransferListResponse",
  "description": "response model",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/if-outgoing-transfers-api-openapi.yml#/components/schemas/OutgoingTransferListResponse",
  "required": [
    "connect",
    "data",
    "metadata",
    "workflow"
  ],
  "type": "object",
  "properties": {
    "workflow": {
      "$ref": "#/$defs/OutgoingTransferListWorkflowContainer"
    },
    "data": {
      "$ref": "#/$defs/OutgoingTransferListDataContainer"
    },
    "connect": {
      "$ref": "#/$defs/OutgoingTransferListConnectContainer"
    },
    "metadata": {
      "$ref": "#/$defs/OutgoingTransferListMetadataContainer"
    }
  },
  "$defs": {
    "Address": {
      "required": [
        "city",
        "country",
        "street"
      ],
      "type": "object",
      "properties": {
        "country": {
          "maxLength": 2,
          "minLength": 2,
          "pattern": "^[A-Z]{2}$",
          "type": "string"
        },
        "region": {
          "type": "string"
        },
        "postalCode": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "street": {
          "type": "string"
        },
        "houseNumber": {
          "type": "string"
        },
        "refinement": {
          "type": "string"
        }
      }
    },
    "AttributeMap": {
      "type": "object",
      "description": "outgoing transfer attributes"
    },
    "LegalEntityIdentity": {
      "required": [
        "type"
      ],
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        }
      }
    },
    "OutgoingTransferAccount": {
      "type": "object",
      "properties": {
        "accountHolderName": {
          "type": "string"
        },
        "bankName": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "currency": {
          "type": "string"
        },
        "routingCodes": {
          "$ref": "#/$defs/RoutingCodeMap"
        },
        "accountNumber": {
          "type": "string"
        },
        "iban": {
          "type": "string"
        },
        "ledgerNumber": {
          "type": "string"
        },
        "alias": {
          "type": "string"
        }
      }
    },
    "OutgoingTransferBeneficiaryResource": {
      "type": "object",
      "properties": {
        "fullName": {
          "type": "string"
        },
        "identity": {
          "$ref": "#/$defs/LegalEntityIdentity"
        },
        "address": {
          "$ref": "#/$defs/Address"
        },
        "account": {
          "$ref": "#/$defs/OutgoingTransferAccount"
        }
      },
      "description": "beneficiary"
    },
    "OutgoingTransferDestinationResource": {
      "required": [
        "type"
      ],
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        }
      },
      "description": "outgoing transfer destination container"
    },
    "OutgoingTransferListConnectContainer": {
      "type": "object",
      "description": "connect container"
    },
    "OutgoingTransferListDataContainer": {
      "type": "object",
      "properties": {
        "outgoingTransfer": {
          "$ref": "#/$defs/OutgoingTransferResourceQueryInput"
        },
        "outgoingTransfers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OutgoingTransferResource"
          }
        }
      },
      "description": "data container"
    },
    "OutgoingTransferListMetadataContainer": {
      "required": [
        "page"
      ],
      "type": "object",
      "properties": {
        "page": {
          "$ref": "#/$defs/PageMetadata"
        }
      },
      "description": "metadata container"
    },
    "OutgoingTransferListWorkflowContainer": {
      "type": "object",
      "description": "workflow container"
    },
    "OutgoingTransferRequirementConfigurationResource": {
      "type": "object",
      "properties": {
        "transferDateStatus": {
          "$ref": "#/$defs/TransactionRequirementStatus"
        },
        "complianceCheckStatus": {
          "$ref": "#/$defs/TransactionRequirementStatus"
        },
        "balanceCheckStatus": {
          "$ref": "#/$defs/TransactionRequirementStatus"
        },
        "authorizationStatus": {
          "$ref": "#/$defs/TransactionRequirementStatus"
        }
      },
      "description": "Requirements configuration field to process the transfer"
    },
    "OutgoingTransferResource": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "id of outgoing transfer",
          "format": "uuid"
        },
        "transactionNumber": {
          "maxLength": 15,
          "minLength": 15,
          "type": "string",
          "description": "unique transaction number",
          "readOnly": true
        },
        "clientId": {
          "type": "string",
          "description": "id of client",
          "format": "uuid"
        },
        "transferDate": {
          "type": "string",
          "description": "date when transfer is executed, if account is not funded transfer will be rolled to next date and this field will be updated",
          "format": "date"
        },
        "status": {
          "$ref": "#/$defs/OutgoingTransferStatus"
        },
        "currency": {
          "maxLength": 3,
          "minLength": 3,
          "type": "string",
          "description": "ISO 4217 currency code of outgoing transfer"
        },
        "amount": {
          "type": "number",
          "description": "transfer amount"
        },
        "feeCurrency": {
          "maxLength": 3,
          "minLength": 3,
          "type": "string",
          "description": "ISO 4217 currency code of fee",
          "readOnly": true
        },
        "feeAmount": {
          "type": "number",
          "description": "transfer fee amount",
          "readOnly": true
        },
        "description": {
          "type": "string",
          "description": "free text to send along with transfer"
        },
        "incomingTransferId": {
          "type": "string",
          "description": "id of created incoming transfer if this is an internal outgoing transfer",
          "format": "uuid"
        },
        "transferCustomReason": {
          "type": "string",
          "description": "free text reason if transfer reason selected as other"
        },
        "originalTransferDate": {
          "type": "string",
          "description": "requested transfer date. this field won't be updated even if the transfer is rolled to next date",
          "format": "date"
        },
        "cutOffDateTime": {
          "type": "string",
          "description": "cutoff time in current transfer date",
          "format": "date-time"
        },
        "rollCount": {
          "type": "integer",
          "description": "how many times a transfer is rolled since account is unfunded until cutoff time",
          "format": "int32"
        },
        "schemeAttributes": {
          "$ref": "#/$defs/SchemeAttributesMap"
        },
        "rootTransaction": {
          "$ref": "#/$defs/RootTransaction"
        },
        "returned": {
          "type": "boolean"
        },
        "triggerType": {
          "$ref": "#/$defs/TriggerType"
        },
        "relatedTransaction": {
          "$ref": "#/$defs/RelatedTransaction"
        },
        "transferReasonId": {
          "type": "string",
          "description": "id of transfer reason",
          "format": "uuid",
          "readOnly": true
        },
        "totalAmount": {
          "type": "number",
          "description": "total amount including fee, filled if charging method is on-source"
        },
        "scheme": {
          "$ref": "#/$defs/TransferScheme"
        },
        "scope": {
          "$ref": "#/$defs/TransferScope"
        },
        "destination": {
          "$ref": "#/$defs/OutgoingTransferDestinationResource"
        },
        "source": {
          "$ref": "#/$defs/OutgoingTransferSourceResource"
        },
        "requirementConfiguration": {
          "$ref": "#/$defs/OutgoingTransferRequirementConfigurationResource"
        },
        "beneficiary": {
          "$ref": "#/$defs/OutgoingTransferBeneficiaryResource"
        },
        "owner": {
          "type": "string",
          "description": "owner of the outgoing transfer",
          "enum": [
            "client",
            "organization"
          ]
        },
        "attributes": {
          "$ref": "#/$defs/AttributeMap"
        }
      },
      "description": "outgoing transfer model",
      "readOnly": true
    },
    "OutgoingTransferResourceQueryInput": {
      "type": "object",
      "properties": {
        "transferDateFrom": {
          "type": "string",
          "format": "date"
        },
        "transferDateTo": {
          "type": "string",
          "format": "date"
        },
        "status": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OutgoingTransferStatus"
          }
        },
        "transactionNumber": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "amountFrom": {
          "type": "number"
        },
        "amountTo": {
          "type": "number"
        },
        "currency": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "description": {
          "type": "string"
        },
        "clientId": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "accountId": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "uuid"
          }
        },
        "serviceProviders": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "serviceProviderId": {
          "type": "string"
        },
        "serviceProviderReference": {
          "type": "string"
        },
        "owner": {
          "$ref": "#/$defs/Owner"
        },
        "triggerType": {
          "$ref": "#/$defs/TriggerType"
        },
        "hasRelatedTransaction": {
          "type": "boolean"
        },
        "relatedTransactionId": {
          "type": "string",
          "format": "uuid"
        },
        "relatedTransactionNature": {
          "$ref": "#/$defs/TransactionNature"
        },
        "attributes": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    },
    "OutgoingTransferSourceResource": {
      "required": [
        "type"
      ],
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        }
      },
      "description": "outgoing transfer source container"
    },
    "OutgoingTransferStatus": {
      "type": "string",
      "description": "status of outgoing transfer",
      "enum": [
        "pending",
        "on-hold",
        "processing",
        "released",
        "completed",
        "cancelled",
        "failed"
      ]
    },
    "Owner": {
      "type": "string",
      "enum": [
        "organization",
        "client"
      ]
    },
    "PageMetadata": {
      "required": [
        "number",
        "size",
        "totalElements",
        "totalPages"
      ],
      "type": "object",
      "properties": {
        "size": {
          "minimum": 0,
          "type": "integer",
          "description": "number of elements in this page",
          "format": "int32"
        },
        "number": {
          "minimum": 0,
          "type": "integer",
          "description": "index of page starting from 0",
          "format": "int32"
        },
        "totalElements": {
          "minimum": 0,
          "type": "integer",
          "description": "total number of elements in all of the pages",
          "format": "int64",
          "readOnly": true
        },
        "totalPages": {
          "minimum": 0,
          "type": "integer",
          "description": "number of total pages",
          "format": "int32",
          "readOnly": true
        }
      }
    },
    "RelatedTransaction": {
      "type": "object",
      "properties": {
        "nature": {
          "$ref": "#/$defs/TransactionNature"
        },
        "id": {
          "type": "string",
          "format": "uuid"
        }
      }
    },
    "RootTransaction": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "transactionType": {
          "$ref": "#/$defs/TransactionType"
        },
        "transactionNumber": {
          "type": "string"
        },
        "operationalRouteCategory": {
          "type": "string"
        },
        "clientId": {
          "type": "string",
          "format": "uuid"
        }
      },
      "description": "root transaction of outgoing transfer"
    },
    "RoutingCodeMap": {
      "type": "object"
    },
    "SchemeAttributesMap": {
      "type": "object",
      "description": "currency/country specific scheme attributes"
    },
    "TransactionNature": {
      "type": "string",
      "enum": [
        "actual",
        "virtual"
      ]
    },
    "TransactionRequirementStatus": {
      "type": "string",
      "enum": [
        "not-checked",
        "not-required",
        "not-fulfilled",
        "fulfilled"
      ]
    },
    "TransactionType": {
      "type": "string",
      "enum": [
        "incoming-transfer",
        "outgoing-transfer",
        "exchange-transaction",
        "generic-transaction",
        "fund-collection-transfer",
        "card-transaction"
      ]
    },
    "TransferScheme": {
      "type": "string",
      "description": "transfer scheme depending on the scope of the transfer",
      "enum": [
        "swift",
        "local",
        "sepa",
        "sepa-instant",
        "sepa-target-2",
        "sepa-target-2-pacs009",
        "sepa-direct-debit",
        "chaps",
        "bacs",
        "faster-payments",
        "faster-payments-poo",
        "npp",
        "becs",
        "rits",
        "tips-dkk",
        "intradag",
        "t2-dkk",
        "rix-inst",
        "rix-rtgs",
        "swish",
        "nbo",
        "viber",
        "sic-inst",
        "sic-ach",
        "sic-rtgs",
        "chats",
        "ach",
        "wire",
        "eft"
      ]
    },
    "TransferScope": {
      "type": "string",
      "description": "transfer scope",
      "enum": [
        "internal",
        "external",
        "internal",
        "external"
      ]
    },
    "TriggerType": {
      "type": "string",
      "enum": [
        "manual",
        "automated"
      ]
    }
  }
}