"schema": {
"type": "object",
"properties": {
"account": {
"properties": {
"iban": {
"type": "string"
},
"bban": {
"type": "string"
}
}
},
"transactions": {
"properties": {
"booked": {
"type": "array",
"items": {
"type": "object",
"required": [
"transactionAmount"
],
"properties": {
"transactionId": {
"type": "string",
"description": "Unique identification number"
},
"bookingDate": {
"type": "string",
"format": "date"
},
"valueDate": {
"type": "string",
"format": "date"
},
"transactionAmount": {
"type": "object",
"required": [
"currency",
"amount"
],
"properties": {
"currency": {
"type": "string",
"description": "ISO 4217 code"
},
"amount": {
"type": "string",
"pattern": "^[0-9]\\d{0,13}(\\.\\d{1,2})?$"
}
}
},
currencyExchange: {
"description": "Exchange Rate",
"type": "object",
"required": [
"currencyFrom",
"rateFrom",
"currencyTo",
"rateTo",
"rateDate"
],
"properties": {
"currencyFrom": {
"type" : "string",
"description": "From currency."
},
"rateFrom": {
"type" : "string",
"description": "Conversion factor from target to source currency."
},
"currencyTo": {
"type" : "string",
"description": "To currency."
},
"rateTo": {
"type" : "string",
"description": "Conversion factor from source to target currency."
},
"rateDate": {
"type" : "string",
"format": "ISODate",
"description": "Quotation date of the exchange rate."
}
}
},
"creditorName": {
"type": "string",
"description": "Name of the creditor if a “Debited” transaction"
},
"creditorAccount": {
"properties": {
"iban": {
"type": "string"
},
"bban": {
"type": "string"
}
}
},
"debtorName": {
"type": "string",
"description": "Name of the debtor if a “Credited” transaction"
},
"debtorAccount": {
"properties": {
"iban": {
"type": "string"
},
"bban": {
"type": "string"
}
}
},
"remittanceInformationUnstructured": {
"type": "string"
}
}
}
},
"pending": {
"type": "array",
"items": {
"type": "object",
"required": [
"transactionAmount"
],
"properties": {
"transactionId": {
"type": "string",
"description": "Unique identification number"
},
"bookingDate": {
"type": "string",
"format": "date"
},
"valueDate": {
"type": "string",
"format": "date"
},
"transactionAmount": {
"type": "object",
"required": [
"currency",
"amount"
],
"properties": {
"currency": {
"type": "string",
"description": "ISO 4217 code"
},
"amount": {
"type": "string",
"pattern": "^[0-9]\\d{0,13}(\\.\\d{1,2})?$"
}
}
},
currencyExchange: {
"description": "Exchange Rate",
"type": "object",
"required": [
"currencyFrom",
"rateFrom",
"currencyTo",
"rateTo",
"rateDate"
],
"properties": {
"currencyFrom": {
"type" : "string",
"description": "From currency."
},
"rateFrom": {
"type" : "string",
"description": "Conversion factor from target to source currency."
},
"currencyTo": {
"type" : "string",
"description": "To currency."
},
"rateTo": {
"type" : "string",
"description": "Conversion factor from source to target currency."
},
"rateDate": {
"type" : "string",
"format": "ISODate",
"description": "Quotation date of the exchange rate."
}
}
},
"creditorName": {
"type": "string",
"description": "Name of the creditor if a “Debited” transaction"
},
"creditorAccount": {
"properties": {
"iban": {
"type": "string"
},
"bban": {
"type": "string"
}
}
},
"debtorName": {
"type": "string",
"description": "Name of the debtor if a “Credited” transaction"
},
"debtorAccount": {
"properties": {
"iban": {
"type": "string"
},
"bban": {
"type": "string"
}
}
},
"remittanceInformationUnstructured": {
"type": "string"
}
}
}
}
}
}
}
}