{
  "openapi": "3.1.0",
  "info": {
    "title": "APIs de aplicação (receptora OFB)",
    "version": "0.28.3",
    "description": "Operações que o backend do participante chama como receptora do Open Finance Brasil, com o token da sua aplicação: abrir e consultar o consentimento, coletar os dados da conexão, ler as agregações e iniciar as jornadas otimizadas (Transferências Inteligentes e vínculo JSR). `info.version` é a versão do serviço bancário: compare-a com a de `/banking/openapi.json` da sua instalação. O passo a passo está em [Primeiros passos](https://docs.finnest.com.br/api/primeiros-passos-receptora)."
  },
  "servers": [
    {
      "url": "https://api.{dominio}/banking",
      "variables": {
        "dominio": {
          "default": "seu-dominio.com.br",
          "description": "Domínio da sua instalação do Finnest Power."
        }
      }
    }
  ],
  "tags": [
    {
      "name": "banking.receiver.consents",
      "description": "Data-sharing consent connections the platform client opens at holders."
    },
    {
      "name": "banking.receiver.customer-data",
      "description": "Customer data the platform client fetches from holders and reads back."
    },
    {
      "name": "banking.receiver.optimized-journeys",
      "description": "Optimized journeys: Smart Transfers and JSR enrollments."
    }
  ],
  "components": {
    "schemas": {
      "IdempotencyKey": {
        "type": "string",
        "minLength": 1,
        "maxLength": 40,
        "pattern": "^(?!\\s)(.*)(\\S)$"
      },
      "ReceiverConnectionId": {
        "type": "string",
        "format": "uuid"
      },
      "ReceiverClientId": {
        "type": "string"
      },
      "AuthorisationServerId": {
        "type": "string",
        "format": "uuid"
      },
      "OfbCpf": {
        "type": "string",
        "pattern": "^\\d{11}$"
      },
      "OfbCnpj": {
        "type": "string",
        "maxLength": 14,
        "pattern": "^[0-9A-Z]{12}[0-9]{2}$"
      },
      "BankingReceiverDataAggregation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
            "format": "uuid"
          },
          "connectionId": {
            "$ref": "#/components/schemas/ReceiverConnectionId"
          },
          "clientId": {
            "$ref": "#/components/schemas/ReceiverClientId"
          },
          "kind": {
            "type": "string",
            "enum": [
              "resources",
              "personal-identifications",
              "personal-qualifications",
              "personal-financial-relations",
              "business-identifications",
              "business-qualifications",
              "business-financial-relations",
              "accounts",
              "credit-card-accounts",
              "account-balances",
              "account-overdraft-limits",
              "credit-card-limits",
              "account-transactions",
              "credit-card-transactions",
              "credit-card-bills"
            ]
          },
          "resourcePath": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "completed",
              "error"
            ]
          },
          "payload": {
            "type": "object"
          },
          "errorMessage": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 1000
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "connectionId",
          "clientId",
          "kind",
          "resourcePath",
          "status",
          "payload",
          "errorMessage",
          "createdAt",
          "updatedAt"
        ],
        "additionalProperties": false,
        "description": "Persisted receiver-side OFB data aggregation fetched from a holder."
      },
      "CreateBankingReceiverDataAggregation": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "connectionId": {
                "$ref": "#/components/schemas/ReceiverConnectionId"
              },
              "kind": {
                "type": "string",
                "enum": [
                  "resources",
                  "personal-identifications",
                  "personal-qualifications",
                  "personal-financial-relations",
                  "business-identifications",
                  "business-qualifications",
                  "business-financial-relations",
                  "accounts",
                  "credit-card-accounts"
                ]
              },
              "accountId": {
                "not": {}
              },
              "period": {
                "not": {}
              }
            },
            "required": [
              "connectionId",
              "kind"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "connectionId": {
                "$ref": "#/components/schemas/ReceiverConnectionId"
              },
              "kind": {
                "type": "string",
                "enum": [
                  "account-balances",
                  "account-overdraft-limits",
                  "credit-card-limits"
                ]
              },
              "accountId": {
                "type": "string",
                "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{0,99}$"
              },
              "period": {
                "not": {}
              }
            },
            "required": [
              "connectionId",
              "kind",
              "accountId"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "connectionId": {
                "$ref": "#/components/schemas/ReceiverConnectionId"
              },
              "kind": {
                "type": "string",
                "enum": [
                  "account-transactions",
                  "credit-card-transactions",
                  "credit-card-bills"
                ]
              },
              "accountId": {
                "type": "string",
                "pattern": "^[a-zA-Z0-9][a-zA-Z0-9-]{0,99}$"
              },
              "period": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "allOf": [
                      {
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                        "format": "date"
                      }
                    ]
                  },
                  "to": {
                    "type": "string",
                    "allOf": [
                      {
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                        "format": "date"
                      }
                    ]
                  }
                },
                "required": [
                  "from",
                  "to"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "connectionId",
              "kind",
              "accountId"
            ],
            "additionalProperties": false
          }
        ],
        "description": "Receiver request to fetch one OFB data family from an active connection."
      },
      "banking.payment-initiation.automatic-payments-v2.recurring-configuration": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "automatic": {
                "type": "object",
                "properties": {
                  "contractId": {
                    "$ref": "#/components/schemas/banking.payment-initiation.automatic-payments-v2.contract-id"
                  },
                  "fixedAmount": {
                    "type": "string",
                    "pattern": "^((\\d{1,16}\\.\\d{2}))$",
                    "minLength": 2,
                    "maxLength": 19
                  },
                  "maximumVariableAmount": {
                    "type": "string",
                    "pattern": "^((\\d{1,16}\\.\\d{2}))$",
                    "minLength": 2,
                    "maxLength": 19
                  },
                  "minimumVariableAmount": {
                    "type": "string",
                    "pattern": "^((\\d{1,16}\\.\\d{2}))$",
                    "minLength": 2,
                    "maxLength": 19
                  },
                  "interval": {
                    "type": "string",
                    "enum": [
                      "SEMANAL",
                      "MENSAL",
                      "ANUAL",
                      "SEMESTRAL",
                      "TRIMESTRAL"
                    ]
                  },
                  "contractDebtor": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "pattern": "^([A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u00FF,.@:&*+_<>()!?/\\\\$%\\d' -]+)$",
                        "maxLength": 120
                      },
                      "document": {
                        "type": "object",
                        "properties": {
                          "identification": {
                            "type": "string",
                            "pattern": "^(?:\\d{11}|\\d{14})$",
                            "maxLength": 14,
                            "examples": [
                              "11111111111"
                            ]
                          },
                          "rel": {
                            "type": "string",
                            "enum": [
                              "CPF",
                              "CNPJ"
                            ]
                          }
                        },
                        "required": [
                          "identification",
                          "rel"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "name",
                      "document"
                    ],
                    "additionalProperties": false
                  },
                  "firstPayment": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "PIX"
                        ]
                      },
                      "date": {
                        "type": "string",
                        "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$",
                        "maxLength": 10
                      },
                      "currency": {
                        "type": "string",
                        "pattern": "^([A-Z]{3})$",
                        "maxLength": 3
                      },
                      "amount": {
                        "type": "string",
                        "pattern": "^((\\d{1,16}\\.\\d{2}))$",
                        "minLength": 2,
                        "maxLength": 19
                      },
                      "remittanceInformation": {
                        "type": "string",
                        "maxLength": 140
                      },
                      "creditorAccount": {
                        "type": "object",
                        "properties": {
                          "ispb": {
                            "type": "string",
                            "pattern": "^[0-9]{8}$",
                            "minLength": 4,
                            "maxLength": 8
                          },
                          "issuer": {
                            "type": "string",
                            "pattern": "^[0-9]{1,4}$",
                            "minLength": 1,
                            "maxLength": 4
                          },
                          "number": {
                            "type": "string",
                            "pattern": "^[0-9]{1,20}$",
                            "minLength": 1,
                            "maxLength": 20
                          },
                          "accountType": {
                            "type": "string",
                            "enum": [
                              "CACC",
                              "SVGS",
                              "TRAN"
                            ]
                          }
                        },
                        "required": [
                          "ispb",
                          "number",
                          "accountType"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "type",
                      "date",
                      "currency",
                      "amount",
                      "creditorAccount"
                    ],
                    "additionalProperties": false
                  },
                  "isRetryAccepted": {
                    "type": "boolean"
                  },
                  "referenceStartDate": {
                    "type": "string",
                    "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$"
                  }
                },
                "required": [
                  "contractId",
                  "interval",
                  "contractDebtor",
                  "isRetryAccepted",
                  "referenceStartDate"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "automatic"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "sweeping": {
                "type": "object",
                "properties": {
                  "totalAllowedAmount": {
                    "type": "string",
                    "pattern": "^((\\d{1,16}\\.\\d{2}))$",
                    "minLength": 2,
                    "maxLength": 19
                  },
                  "transactionLimit": {
                    "type": "string",
                    "pattern": "^((\\d{1,16}\\.\\d{2}))$",
                    "minLength": 2,
                    "maxLength": 19
                  },
                  "periodicLimits": {
                    "type": "object",
                    "properties": {
                      "day": {
                        "type": "object",
                        "properties": {
                          "quantityLimit": {
                            "type": "integer",
                            "minimum": 1
                          },
                          "transactionLimit": {
                            "type": "string",
                            "pattern": "^((\\d{1,16}\\.\\d{2}))$",
                            "minLength": 2,
                            "maxLength": 19
                          }
                        },
                        "additionalProperties": false
                      },
                      "week": {
                        "type": "object",
                        "properties": {
                          "quantityLimit": {
                            "type": "integer",
                            "minimum": 1
                          },
                          "transactionLimit": {
                            "type": "string",
                            "pattern": "^((\\d{1,16}\\.\\d{2}))$",
                            "minLength": 2,
                            "maxLength": 19
                          }
                        },
                        "additionalProperties": false
                      },
                      "month": {
                        "type": "object",
                        "properties": {
                          "quantityLimit": {
                            "type": "integer",
                            "minimum": 1
                          },
                          "transactionLimit": {
                            "type": "string",
                            "pattern": "^((\\d{1,16}\\.\\d{2}))$",
                            "minLength": 2,
                            "maxLength": 19
                          }
                        },
                        "additionalProperties": false
                      },
                      "year": {
                        "type": "object",
                        "properties": {
                          "quantityLimit": {
                            "type": "integer",
                            "minimum": 1
                          },
                          "transactionLimit": {
                            "type": "string",
                            "pattern": "^((\\d{1,16}\\.\\d{2}))$",
                            "minLength": 2,
                            "maxLength": 19
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "additionalProperties": false
                  },
                  "startDateTime": {
                    "type": "string",
                    "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T(?:[01]\\d|2[0123]):(?:[012345]\\d):(?:[012345]\\d)Z$"
                  }
                },
                "additionalProperties": false
              }
            },
            "required": [
              "sweeping"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "vrp": {
                "type": "object",
                "properties": {
                  "transactionLimit": {
                    "type": "string",
                    "pattern": "^((\\d{1,16}\\.\\d{2}))$",
                    "minLength": 2,
                    "maxLength": 19
                  },
                  "globalLimits": {
                    "type": "object",
                    "properties": {
                      "quantityLimit": {
                        "type": "integer"
                      },
                      "transactionLimit": {
                        "type": "string",
                        "pattern": "^((\\d{1,16}\\.\\d{2}))$",
                        "minLength": 2,
                        "maxLength": 19
                      }
                    },
                    "additionalProperties": false
                  },
                  "periodicLimits": {
                    "type": "object",
                    "properties": {
                      "day": {
                        "type": "object",
                        "properties": {
                          "quantityLimit": {
                            "type": "integer",
                            "minimum": 1
                          },
                          "transactionLimit": {
                            "type": "string",
                            "pattern": "^((\\d{1,16}\\.\\d{2}))$",
                            "minLength": 2,
                            "maxLength": 19
                          }
                        },
                        "additionalProperties": false
                      },
                      "week": {
                        "type": "object",
                        "properties": {
                          "quantityLimit": {
                            "type": "integer",
                            "minimum": 1
                          },
                          "transactionLimit": {
                            "type": "string",
                            "pattern": "^((\\d{1,16}\\.\\d{2}))$",
                            "minLength": 2,
                            "maxLength": 19
                          }
                        },
                        "additionalProperties": false
                      },
                      "month": {
                        "type": "object",
                        "properties": {
                          "quantityLimit": {
                            "type": "integer",
                            "minimum": 1
                          },
                          "transactionLimit": {
                            "type": "string",
                            "pattern": "^((\\d{1,16}\\.\\d{2}))$",
                            "minLength": 2,
                            "maxLength": 19
                          }
                        },
                        "additionalProperties": false
                      },
                      "year": {
                        "type": "object",
                        "properties": {
                          "quantityLimit": {
                            "type": "integer",
                            "minimum": 1
                          },
                          "transactionLimit": {
                            "type": "string",
                            "pattern": "^((\\d{1,16}\\.\\d{2}))$",
                            "minLength": 2,
                            "maxLength": 19
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "required": [
              "vrp"
            ],
            "additionalProperties": false
          }
        ],
        "title": "RecurringConfigurationV2",
        "description": "OFB Automatic Payments v2 recurring-consent configuration: automatic (Pix Automático), sweeping (Transferência Inteligente), or vrp (VRP). Wire request variant – transcribed from AutomaticRequest | SweepingRequest | Vrp."
      },
      "banking.payment-initiation.optimized-journey": {
        "type": "object",
        "properties": {
          "isLinked": {
            "type": "boolean"
          },
          "linkId": {
            "$ref": "#/components/schemas/banking.payment-initiation.optimized-journey.link-id"
          }
        },
        "required": [
          "isLinked"
        ],
        "additionalProperties": false,
        "title": "PaymentInitiationOptimizedJourney",
        "description": "OFB optimized journey linkage metadata for primary payment resources."
      },
      "banking.payment-initiation.automatic-payments-v2.contract-id": {
        "type": "string",
        "minLength": 1,
        "maxLength": 35,
        "pattern": "^[a-zA-Z0-9]{1,35}$",
        "title": "AutomaticContractId",
        "description": "OFB Automatic Payments v2 Pix Automático contract identifier."
      },
      "banking.payment-initiation.optimized-journey.link-id": {
        "type": "string",
        "pattern": "^urn:[a-zA-Z0-9][a-zA-Z0-9-]{0,31}:[a-zA-Z0-9()+,\\-.:=@;$_!*'%/?#]+$",
        "minLength": 3,
        "maxLength": 256,
        "title": "PaymentInitiationOptimizedJourneyLinkId",
        "description": "Linked data-consent identifier used by optimized-journey primary resources."
      }
    },
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://matls-auth.seu-dominio.com.br/realms/finnest-ofb/protocol/openid-connect/token",
            "scopes": {
              "ofb:receiver:accounts": "ofb:receiver:accounts",
              "ofb:receiver:consents": "ofb:receiver:consents",
              "ofb:receiver:credit-cards": "ofb:receiver:credit-cards",
              "ofb:receiver:customers": "ofb:receiver:customers"
            }
          }
        },
        "description": "O endpoint de token usa o domínio de exemplo seu-dominio.com.br; troque pelo domínio da sua instalação. Ele fica em matls-auth.<domínio> (com certificado de cliente) ou em auth.<domínio>, conforme a instalação; o Admin mostra o endereço certo em Developer › Primeiros passos da API."
      }
    }
  },
  "externalDocs": {
    "description": "Autorização e consentimento no Finnest Power",
    "url": "/architecture/authorization-flow"
  },
  "paths": {
    "/banking-receiver/consents/v1/consents": {
      "post": {
        "tags": [
          "banking.receiver.consents"
        ],
        "operationId": "banking.receiver.consents.createReceiverConsent",
        "parameters": [
          {
            "name": "x-idempotency-key",
            "in": "header",
            "schema": {
              "$ref": "#/components/schemas/IdempotencyKey"
            },
            "required": false
          }
        ],
        "security": [
          {
            "oauth2": [
              "ofb:receiver:consents"
            ]
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "connection": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "$ref": "#/components/schemas/ReceiverConnectionId"
                            },
                            "clientId": {
                              "$ref": "#/components/schemas/ReceiverClientId"
                            },
                            "authorisationServerId": {
                              "$ref": "#/components/schemas/AuthorisationServerId"
                            },
                            "authorisationServerName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            "resourceEndpoint": {
                              "type": "string"
                            },
                            "authorizationEndpoint": {
                              "type": "string"
                            },
                            "tokenEndpoint": {
                              "type": "string"
                            },
                            "parEndpoint": {
                              "type": "string"
                            },
                            "jwksUri": {
                              "type": "string"
                            },
                            "issuer": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "redirectUri": {
                              "type": "string"
                            },
                            "redirectUrl": {
                              "type": "string"
                            },
                            "providerConsentId": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 256
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "awaiting_authorisation",
                                "active",
                                "error",
                                "revoked"
                              ]
                            },
                            "permissions": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "ACCOUNTS_READ",
                                  "ACCOUNTS_BALANCES_READ",
                                  "ACCOUNTS_TRANSACTIONS_READ",
                                  "ACCOUNTS_OVERDRAFT_LIMITS_READ",
                                  "CREDIT_CARDS_ACCOUNTS_READ",
                                  "CREDIT_CARDS_ACCOUNTS_BILLS_READ",
                                  "CREDIT_CARDS_ACCOUNTS_BILLS_TRANSACTIONS_READ",
                                  "CREDIT_CARDS_ACCOUNTS_LIMITS_READ",
                                  "CREDIT_CARDS_ACCOUNTS_TRANSACTIONS_READ",
                                  "CUSTOMERS_PERSONAL_IDENTIFICATIONS_READ",
                                  "CUSTOMERS_PERSONAL_ADITTIONALINFO_READ",
                                  "CUSTOMERS_BUSINESS_IDENTIFICATIONS_READ",
                                  "CUSTOMERS_BUSINESS_ADITTIONALINFO_READ",
                                  "FINANCINGS_READ",
                                  "FINANCINGS_SCHEDULED_INSTALMENTS_READ",
                                  "FINANCINGS_PAYMENTS_READ",
                                  "FINANCINGS_WARRANTIES_READ",
                                  "INVOICE_FINANCINGS_READ",
                                  "INVOICE_FINANCINGS_SCHEDULED_INSTALMENTS_READ",
                                  "INVOICE_FINANCINGS_PAYMENTS_READ",
                                  "INVOICE_FINANCINGS_WARRANTIES_READ",
                                  "LOANS_READ",
                                  "LOANS_SCHEDULED_INSTALMENTS_READ",
                                  "LOANS_PAYMENTS_READ",
                                  "LOANS_WARRANTIES_READ",
                                  "UNARRANGED_ACCOUNTS_OVERDRAFT_READ",
                                  "UNARRANGED_ACCOUNTS_OVERDRAFT_SCHEDULED_INSTALMENTS_READ",
                                  "UNARRANGED_ACCOUNTS_OVERDRAFT_PAYMENTS_READ",
                                  "UNARRANGED_ACCOUNTS_OVERDRAFT_WARRANTIES_READ",
                                  "RESOURCES_READ",
                                  "BANK_FIXED_INCOMES_READ",
                                  "CREDIT_FIXED_INCOMES_READ",
                                  "FUNDS_READ",
                                  "VARIABLE_INCOMES_READ",
                                  "TREASURE_TITLES_READ",
                                  "EXCHANGES_READ"
                                ]
                              }
                            },
                            "errorMessage": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 1000
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "lastSyncAt": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "allOf": [
                                    {
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$",
                                      "format": "date-time"
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "createdAt": {
                              "type": "string",
                              "allOf": [
                                {
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$",
                                  "format": "date-time"
                                }
                              ]
                            },
                            "updatedAt": {
                              "type": "string",
                              "allOf": [
                                {
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$",
                                  "format": "date-time"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "clientId",
                            "authorisationServerId",
                            "authorisationServerName",
                            "resourceEndpoint",
                            "authorizationEndpoint",
                            "tokenEndpoint",
                            "parEndpoint",
                            "jwksUri",
                            "issuer",
                            "redirectUri",
                            "redirectUrl",
                            "providerConsentId",
                            "status",
                            "permissions",
                            "errorMessage",
                            "lastSyncAt",
                            "createdAt",
                            "updatedAt"
                          ],
                          "additionalProperties": false
                        },
                        "redirectUrl": {
                          "type": "string"
                        },
                        "idempotent": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "connection",
                        "redirectUrl"
                      ],
                      "additionalProperties": false
                    },
                    "links": {
                      "type": "object",
                      "properties": {
                        "self": {
                          "type": "string",
                          "format": "uri"
                        }
                      },
                      "required": [
                        "self"
                      ],
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "totalRecords": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "totalPages": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "traceId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "requestDateTime",
                        "totalRecords",
                        "totalPages"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "links",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "502": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "503": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          }
        },
        "summary": "Start a data-sharing consent journey at a holder",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "authorisationServerId": {
                        "$ref": "#/components/schemas/AuthorisationServerId"
                      },
                      "redirectUri": {
                        "type": "string"
                      },
                      "loggedUser": {
                        "type": "object",
                        "properties": {
                          "document": {
                            "type": "object",
                            "properties": {
                              "identification": {
                                "$ref": "#/components/schemas/OfbCpf"
                              },
                              "rel": {
                                "type": "string",
                                "pattern": "^[A-Z]{3}$"
                              }
                            },
                            "required": [
                              "identification",
                              "rel"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "document"
                        ],
                        "additionalProperties": false
                      },
                      "businessEntity": {
                        "type": "object",
                        "properties": {
                          "document": {
                            "type": "object",
                            "properties": {
                              "identification": {
                                "$ref": "#/components/schemas/OfbCnpj"
                              },
                              "rel": {
                                "type": "string",
                                "pattern": "^[A-Z]{4}$"
                              }
                            },
                            "required": [
                              "identification",
                              "rel"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "document"
                        ],
                        "additionalProperties": false
                      },
                      "permissions": {
                        "type": "array",
                        "prefixItems": [
                          {
                            "type": "string",
                            "enum": [
                              "ACCOUNTS_READ",
                              "ACCOUNTS_BALANCES_READ",
                              "ACCOUNTS_TRANSACTIONS_READ",
                              "ACCOUNTS_OVERDRAFT_LIMITS_READ",
                              "CREDIT_CARDS_ACCOUNTS_READ",
                              "CREDIT_CARDS_ACCOUNTS_BILLS_READ",
                              "CREDIT_CARDS_ACCOUNTS_BILLS_TRANSACTIONS_READ",
                              "CREDIT_CARDS_ACCOUNTS_LIMITS_READ",
                              "CREDIT_CARDS_ACCOUNTS_TRANSACTIONS_READ",
                              "CUSTOMERS_PERSONAL_IDENTIFICATIONS_READ",
                              "CUSTOMERS_PERSONAL_ADITTIONALINFO_READ",
                              "CUSTOMERS_BUSINESS_IDENTIFICATIONS_READ",
                              "CUSTOMERS_BUSINESS_ADITTIONALINFO_READ",
                              "FINANCINGS_READ",
                              "FINANCINGS_SCHEDULED_INSTALMENTS_READ",
                              "FINANCINGS_PAYMENTS_READ",
                              "FINANCINGS_WARRANTIES_READ",
                              "INVOICE_FINANCINGS_READ",
                              "INVOICE_FINANCINGS_SCHEDULED_INSTALMENTS_READ",
                              "INVOICE_FINANCINGS_PAYMENTS_READ",
                              "INVOICE_FINANCINGS_WARRANTIES_READ",
                              "LOANS_READ",
                              "LOANS_SCHEDULED_INSTALMENTS_READ",
                              "LOANS_PAYMENTS_READ",
                              "LOANS_WARRANTIES_READ",
                              "UNARRANGED_ACCOUNTS_OVERDRAFT_READ",
                              "UNARRANGED_ACCOUNTS_OVERDRAFT_SCHEDULED_INSTALMENTS_READ",
                              "UNARRANGED_ACCOUNTS_OVERDRAFT_PAYMENTS_READ",
                              "UNARRANGED_ACCOUNTS_OVERDRAFT_WARRANTIES_READ",
                              "RESOURCES_READ",
                              "BANK_FIXED_INCOMES_READ",
                              "CREDIT_FIXED_INCOMES_READ",
                              "FUNDS_READ",
                              "VARIABLE_INCOMES_READ",
                              "TREASURE_TITLES_READ",
                              "EXCHANGES_READ"
                            ]
                          }
                        ],
                        "minItems": 1,
                        "items": {
                          "type": "string",
                          "enum": [
                            "ACCOUNTS_READ",
                            "ACCOUNTS_BALANCES_READ",
                            "ACCOUNTS_TRANSACTIONS_READ",
                            "ACCOUNTS_OVERDRAFT_LIMITS_READ",
                            "CREDIT_CARDS_ACCOUNTS_READ",
                            "CREDIT_CARDS_ACCOUNTS_BILLS_READ",
                            "CREDIT_CARDS_ACCOUNTS_BILLS_TRANSACTIONS_READ",
                            "CREDIT_CARDS_ACCOUNTS_LIMITS_READ",
                            "CREDIT_CARDS_ACCOUNTS_TRANSACTIONS_READ",
                            "CUSTOMERS_PERSONAL_IDENTIFICATIONS_READ",
                            "CUSTOMERS_PERSONAL_ADITTIONALINFO_READ",
                            "CUSTOMERS_BUSINESS_IDENTIFICATIONS_READ",
                            "CUSTOMERS_BUSINESS_ADITTIONALINFO_READ",
                            "FINANCINGS_READ",
                            "FINANCINGS_SCHEDULED_INSTALMENTS_READ",
                            "FINANCINGS_PAYMENTS_READ",
                            "FINANCINGS_WARRANTIES_READ",
                            "INVOICE_FINANCINGS_READ",
                            "INVOICE_FINANCINGS_SCHEDULED_INSTALMENTS_READ",
                            "INVOICE_FINANCINGS_PAYMENTS_READ",
                            "INVOICE_FINANCINGS_WARRANTIES_READ",
                            "LOANS_READ",
                            "LOANS_SCHEDULED_INSTALMENTS_READ",
                            "LOANS_PAYMENTS_READ",
                            "LOANS_WARRANTIES_READ",
                            "UNARRANGED_ACCOUNTS_OVERDRAFT_READ",
                            "UNARRANGED_ACCOUNTS_OVERDRAFT_SCHEDULED_INSTALMENTS_READ",
                            "UNARRANGED_ACCOUNTS_OVERDRAFT_PAYMENTS_READ",
                            "UNARRANGED_ACCOUNTS_OVERDRAFT_WARRANTIES_READ",
                            "RESOURCES_READ",
                            "BANK_FIXED_INCOMES_READ",
                            "CREDIT_FIXED_INCOMES_READ",
                            "FUNDS_READ",
                            "VARIABLE_INCOMES_READ",
                            "TREASURE_TITLES_READ",
                            "EXCHANGES_READ"
                          ]
                        }
                      },
                      "expirationDateTime": {
                        "type": "string",
                        "allOf": [
                          {
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$",
                            "format": "date-time"
                          }
                        ]
                      }
                    },
                    "required": [
                      "authorisationServerId",
                      "redirectUri",
                      "loggedUser",
                      "permissions"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "data"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      },
      "get": {
        "tags": [
          "banking.receiver.consents"
        ],
        "operationId": "banking.receiver.consents.listReceiverConsents",
        "parameters": [],
        "security": [
          {
            "oauth2": [
              "ofb:receiver:consents"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "$ref": "#/components/schemas/ReceiverConnectionId"
                          },
                          "clientId": {
                            "$ref": "#/components/schemas/ReceiverClientId"
                          },
                          "authorisationServerId": {
                            "$ref": "#/components/schemas/AuthorisationServerId"
                          },
                          "authorisationServerName": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 256
                          },
                          "resourceEndpoint": {
                            "type": "string"
                          },
                          "authorizationEndpoint": {
                            "type": "string"
                          },
                          "tokenEndpoint": {
                            "type": "string"
                          },
                          "parEndpoint": {
                            "type": "string"
                          },
                          "jwksUri": {
                            "type": "string"
                          },
                          "issuer": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "redirectUri": {
                            "type": "string"
                          },
                          "redirectUrl": {
                            "type": "string"
                          },
                          "providerConsentId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 256
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "awaiting_authorisation",
                              "active",
                              "error",
                              "revoked"
                            ]
                          },
                          "permissions": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "enum": [
                                "ACCOUNTS_READ",
                                "ACCOUNTS_BALANCES_READ",
                                "ACCOUNTS_TRANSACTIONS_READ",
                                "ACCOUNTS_OVERDRAFT_LIMITS_READ",
                                "CREDIT_CARDS_ACCOUNTS_READ",
                                "CREDIT_CARDS_ACCOUNTS_BILLS_READ",
                                "CREDIT_CARDS_ACCOUNTS_BILLS_TRANSACTIONS_READ",
                                "CREDIT_CARDS_ACCOUNTS_LIMITS_READ",
                                "CREDIT_CARDS_ACCOUNTS_TRANSACTIONS_READ",
                                "CUSTOMERS_PERSONAL_IDENTIFICATIONS_READ",
                                "CUSTOMERS_PERSONAL_ADITTIONALINFO_READ",
                                "CUSTOMERS_BUSINESS_IDENTIFICATIONS_READ",
                                "CUSTOMERS_BUSINESS_ADITTIONALINFO_READ",
                                "FINANCINGS_READ",
                                "FINANCINGS_SCHEDULED_INSTALMENTS_READ",
                                "FINANCINGS_PAYMENTS_READ",
                                "FINANCINGS_WARRANTIES_READ",
                                "INVOICE_FINANCINGS_READ",
                                "INVOICE_FINANCINGS_SCHEDULED_INSTALMENTS_READ",
                                "INVOICE_FINANCINGS_PAYMENTS_READ",
                                "INVOICE_FINANCINGS_WARRANTIES_READ",
                                "LOANS_READ",
                                "LOANS_SCHEDULED_INSTALMENTS_READ",
                                "LOANS_PAYMENTS_READ",
                                "LOANS_WARRANTIES_READ",
                                "UNARRANGED_ACCOUNTS_OVERDRAFT_READ",
                                "UNARRANGED_ACCOUNTS_OVERDRAFT_SCHEDULED_INSTALMENTS_READ",
                                "UNARRANGED_ACCOUNTS_OVERDRAFT_PAYMENTS_READ",
                                "UNARRANGED_ACCOUNTS_OVERDRAFT_WARRANTIES_READ",
                                "RESOURCES_READ",
                                "BANK_FIXED_INCOMES_READ",
                                "CREDIT_FIXED_INCOMES_READ",
                                "FUNDS_READ",
                                "VARIABLE_INCOMES_READ",
                                "TREASURE_TITLES_READ",
                                "EXCHANGES_READ"
                              ]
                            }
                          },
                          "errorMessage": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 1000
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "lastSyncAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "allOf": [
                                  {
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$",
                                    "format": "date-time"
                                  }
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "createdAt": {
                            "type": "string",
                            "allOf": [
                              {
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$",
                                "format": "date-time"
                              }
                            ]
                          },
                          "updatedAt": {
                            "type": "string",
                            "allOf": [
                              {
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$",
                                "format": "date-time"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "clientId",
                          "authorisationServerId",
                          "authorisationServerName",
                          "resourceEndpoint",
                          "authorizationEndpoint",
                          "tokenEndpoint",
                          "parEndpoint",
                          "jwksUri",
                          "issuer",
                          "redirectUri",
                          "redirectUrl",
                          "providerConsentId",
                          "status",
                          "permissions",
                          "errorMessage",
                          "lastSyncAt",
                          "createdAt",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "links": {
                      "type": "object",
                      "properties": {
                        "self": {
                          "type": "string",
                          "format": "uri"
                        }
                      },
                      "required": [
                        "self"
                      ],
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "totalRecords": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "totalPages": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "traceId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "requestDateTime",
                        "totalRecords",
                        "totalPages"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "links",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "502": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "503": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          }
        },
        "summary": "List the platform client's consent connections"
      }
    },
    "/banking-receiver/consents/v1/consents/{connectionId}": {
      "get": {
        "tags": [
          "banking.receiver.consents"
        ],
        "operationId": "banking.receiver.consents.getReceiverConsent",
        "parameters": [
          {
            "name": "connectionId",
            "in": "path",
            "schema": {
              "$ref": "#/components/schemas/ReceiverConnectionId"
            },
            "required": true
          }
        ],
        "security": [
          {
            "oauth2": [
              "ofb:receiver:consents"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "$ref": "#/components/schemas/ReceiverConnectionId"
                        },
                        "clientId": {
                          "$ref": "#/components/schemas/ReceiverClientId"
                        },
                        "authorisationServerId": {
                          "$ref": "#/components/schemas/AuthorisationServerId"
                        },
                        "authorisationServerName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "resourceEndpoint": {
                          "type": "string"
                        },
                        "authorizationEndpoint": {
                          "type": "string"
                        },
                        "tokenEndpoint": {
                          "type": "string"
                        },
                        "parEndpoint": {
                          "type": "string"
                        },
                        "jwksUri": {
                          "type": "string"
                        },
                        "issuer": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "redirectUri": {
                          "type": "string"
                        },
                        "redirectUrl": {
                          "type": "string"
                        },
                        "providerConsentId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "awaiting_authorisation",
                            "active",
                            "error",
                            "revoked"
                          ]
                        },
                        "permissions": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "ACCOUNTS_READ",
                              "ACCOUNTS_BALANCES_READ",
                              "ACCOUNTS_TRANSACTIONS_READ",
                              "ACCOUNTS_OVERDRAFT_LIMITS_READ",
                              "CREDIT_CARDS_ACCOUNTS_READ",
                              "CREDIT_CARDS_ACCOUNTS_BILLS_READ",
                              "CREDIT_CARDS_ACCOUNTS_BILLS_TRANSACTIONS_READ",
                              "CREDIT_CARDS_ACCOUNTS_LIMITS_READ",
                              "CREDIT_CARDS_ACCOUNTS_TRANSACTIONS_READ",
                              "CUSTOMERS_PERSONAL_IDENTIFICATIONS_READ",
                              "CUSTOMERS_PERSONAL_ADITTIONALINFO_READ",
                              "CUSTOMERS_BUSINESS_IDENTIFICATIONS_READ",
                              "CUSTOMERS_BUSINESS_ADITTIONALINFO_READ",
                              "FINANCINGS_READ",
                              "FINANCINGS_SCHEDULED_INSTALMENTS_READ",
                              "FINANCINGS_PAYMENTS_READ",
                              "FINANCINGS_WARRANTIES_READ",
                              "INVOICE_FINANCINGS_READ",
                              "INVOICE_FINANCINGS_SCHEDULED_INSTALMENTS_READ",
                              "INVOICE_FINANCINGS_PAYMENTS_READ",
                              "INVOICE_FINANCINGS_WARRANTIES_READ",
                              "LOANS_READ",
                              "LOANS_SCHEDULED_INSTALMENTS_READ",
                              "LOANS_PAYMENTS_READ",
                              "LOANS_WARRANTIES_READ",
                              "UNARRANGED_ACCOUNTS_OVERDRAFT_READ",
                              "UNARRANGED_ACCOUNTS_OVERDRAFT_SCHEDULED_INSTALMENTS_READ",
                              "UNARRANGED_ACCOUNTS_OVERDRAFT_PAYMENTS_READ",
                              "UNARRANGED_ACCOUNTS_OVERDRAFT_WARRANTIES_READ",
                              "RESOURCES_READ",
                              "BANK_FIXED_INCOMES_READ",
                              "CREDIT_FIXED_INCOMES_READ",
                              "FUNDS_READ",
                              "VARIABLE_INCOMES_READ",
                              "TREASURE_TITLES_READ",
                              "EXCHANGES_READ"
                            ]
                          }
                        },
                        "errorMessage": {
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 1000
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "lastSyncAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "allOf": [
                                {
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$",
                                  "format": "date-time"
                                }
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "allOf": [
                            {
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$",
                              "format": "date-time"
                            }
                          ]
                        },
                        "updatedAt": {
                          "type": "string",
                          "allOf": [
                            {
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$",
                              "format": "date-time"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "clientId",
                        "authorisationServerId",
                        "authorisationServerName",
                        "resourceEndpoint",
                        "authorizationEndpoint",
                        "tokenEndpoint",
                        "parEndpoint",
                        "jwksUri",
                        "issuer",
                        "redirectUri",
                        "redirectUrl",
                        "providerConsentId",
                        "status",
                        "permissions",
                        "errorMessage",
                        "lastSyncAt",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    },
                    "links": {
                      "type": "object",
                      "properties": {
                        "self": {
                          "type": "string",
                          "format": "uri"
                        }
                      },
                      "required": [
                        "self"
                      ],
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "totalRecords": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "totalPages": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "traceId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "requestDateTime",
                        "totalRecords",
                        "totalPages"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "links",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "502": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "503": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          }
        },
        "summary": "Read a consent connection"
      }
    },
    "/banking-receiver/v1/connections/{connectionId}/sync": {
      "post": {
        "tags": [
          "banking.receiver.customer-data"
        ],
        "operationId": "banking.receiver.customer-data.syncConnection",
        "parameters": [
          {
            "name": "connectionId",
            "in": "path",
            "schema": {
              "$ref": "#/components/schemas/ReceiverConnectionId"
            },
            "required": true
          }
        ],
        "security": [
          {
            "oauth2": [
              "ofb:receiver:customers"
            ]
          },
          {
            "oauth2": [
              "ofb:receiver:accounts"
            ]
          },
          {
            "oauth2": [
              "ofb:receiver:credit-cards"
            ]
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/BankingReceiverDataAggregation"
                      }
                    },
                    "links": {
                      "type": "object",
                      "properties": {
                        "self": {
                          "type": "string",
                          "format": "uri"
                        }
                      },
                      "required": [
                        "self"
                      ],
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "totalRecords": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "totalPages": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "traceId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "requestDateTime",
                        "totalRecords",
                        "totalPages"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "links",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "502": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "503": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          }
        },
        "summary": "Fetch and store every data family of a connection"
      }
    },
    "/banking-receiver/v1/aggregations": {
      "post": {
        "tags": [
          "banking.receiver.customer-data"
        ],
        "operationId": "banking.receiver.customer-data.createAggregation",
        "parameters": [],
        "security": [
          {
            "oauth2": [
              "ofb:receiver:customers"
            ]
          },
          {
            "oauth2": [
              "ofb:receiver:accounts"
            ]
          },
          {
            "oauth2": [
              "ofb:receiver:credit-cards"
            ]
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/BankingReceiverDataAggregation"
                    },
                    "links": {
                      "type": "object",
                      "properties": {
                        "self": {
                          "type": "string",
                          "format": "uri"
                        }
                      },
                      "required": [
                        "self"
                      ],
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "totalRecords": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "totalPages": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "traceId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "requestDateTime",
                        "totalRecords",
                        "totalPages"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "links",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "502": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "503": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          }
        },
        "summary": "Fetch and store one data family from a consent connection",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "data": {
                    "$ref": "#/components/schemas/CreateBankingReceiverDataAggregation"
                  }
                },
                "required": [
                  "data"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      },
      "get": {
        "tags": [
          "banking.receiver.customer-data"
        ],
        "operationId": "banking.receiver.customer-data.listAggregations",
        "parameters": [],
        "security": [
          {
            "oauth2": [
              "ofb:receiver:customers"
            ]
          },
          {
            "oauth2": [
              "ofb:receiver:accounts"
            ]
          },
          {
            "oauth2": [
              "ofb:receiver:credit-cards"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/BankingReceiverDataAggregation"
                      }
                    },
                    "links": {
                      "type": "object",
                      "properties": {
                        "self": {
                          "type": "string",
                          "format": "uri"
                        }
                      },
                      "required": [
                        "self"
                      ],
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "totalRecords": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "totalPages": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "traceId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "requestDateTime",
                        "totalRecords",
                        "totalPages"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "links",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "502": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "503": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          }
        },
        "summary": "List the stored data aggregations"
      }
    },
    "/banking-receiver/v1/aggregations/{id}": {
      "get": {
        "tags": [
          "banking.receiver.customer-data"
        ],
        "operationId": "banking.receiver.customer-data.getAggregation",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "schema": {
              "type": "string",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
              "format": "uuid"
            },
            "required": true
          }
        ],
        "security": [
          {
            "oauth2": [
              "ofb:receiver:customers"
            ]
          },
          {
            "oauth2": [
              "ofb:receiver:accounts"
            ]
          },
          {
            "oauth2": [
              "ofb:receiver:credit-cards"
            ]
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/BankingReceiverDataAggregation"
                    },
                    "links": {
                      "type": "object",
                      "properties": {
                        "self": {
                          "type": "string",
                          "format": "uri"
                        }
                      },
                      "required": [
                        "self"
                      ],
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "totalRecords": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "totalPages": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "traceId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "requestDateTime",
                        "totalRecords",
                        "totalPages"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "links",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "502": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "503": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          }
        },
        "summary": "Read a stored data aggregation"
      }
    },
    "/banking-receiver/optimized-journeys/v1/smart-transfers": {
      "post": {
        "tags": [
          "banking.receiver.optimized-journeys"
        ],
        "operationId": "banking.receiver.optimized-journeys.createSmartTransfer",
        "parameters": [
          {
            "name": "x-idempotency-key",
            "in": "header",
            "schema": {
              "$ref": "#/components/schemas/IdempotencyKey"
            },
            "required": true
          }
        ],
        "security": [
          {
            "oauth2": [
              "ofb:receiver:consents"
            ]
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "journey": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "clientId": {
                              "$ref": "#/components/schemas/ReceiverClientId"
                            },
                            "authorisationServerId": {
                              "$ref": "#/components/schemas/AuthorisationServerId"
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "smart_transfer",
                                "jsr"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "created",
                                "awaiting_authorisation",
                                "active",
                                "failed",
                                "revoked"
                              ]
                            },
                            "dataConnectionId": {
                              "$ref": "#/components/schemas/ReceiverConnectionId"
                            },
                            "providerDataConsentId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            "primaryConsentId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            "primaryConsentType": {
                              "type": "string",
                              "enum": [
                                "recurring_consent",
                                "enrollment"
                              ]
                            },
                            "tokenScope": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2048
                            },
                            "requestHash": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "evidenceSummary": {
                              "type": "object",
                              "properties": {
                                "level": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                },
                                "status": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                }
                              },
                              "required": [
                                "level",
                                "status"
                              ],
                              "allOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                }
                              ]
                            },
                            "errorMessage": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 1000
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "activatedAt": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "allOf": [
                                    {
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$",
                                      "format": "date-time"
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "failedAt": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "allOf": [
                                    {
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$",
                                      "format": "date-time"
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "revokedAt": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "allOf": [
                                    {
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$",
                                      "format": "date-time"
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "createdAt": {
                              "type": "string",
                              "allOf": [
                                {
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$",
                                  "format": "date-time"
                                }
                              ]
                            },
                            "updatedAt": {
                              "type": "string",
                              "allOf": [
                                {
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$",
                                  "format": "date-time"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "clientId",
                            "authorisationServerId",
                            "kind",
                            "status",
                            "dataConnectionId",
                            "providerDataConsentId",
                            "primaryConsentId",
                            "primaryConsentType",
                            "tokenScope",
                            "requestHash",
                            "evidenceSummary",
                            "errorMessage",
                            "activatedAt",
                            "failedAt",
                            "revokedAt",
                            "createdAt",
                            "updatedAt"
                          ],
                          "additionalProperties": false
                        },
                        "redirectUrl": {
                          "type": "string"
                        },
                        "idempotent": {
                          "type": "boolean",
                          "enum": [
                            true
                          ]
                        }
                      },
                      "required": [
                        "journey",
                        "redirectUrl"
                      ],
                      "additionalProperties": false
                    },
                    "links": {
                      "type": "object",
                      "properties": {
                        "self": {
                          "type": "string",
                          "format": "uri"
                        }
                      },
                      "required": [
                        "self"
                      ],
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "totalRecords": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "totalPages": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "traceId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "requestDateTime",
                        "totalRecords",
                        "totalPages"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "links",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "502": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "503": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          }
        },
        "summary": "Start a Smart Transfer with its sweeping recurring consent",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "authorisationServerId": {
                        "$ref": "#/components/schemas/AuthorisationServerId"
                      },
                      "redirectUri": {
                        "type": "string"
                      },
                      "loggedUser": {
                        "type": "object",
                        "properties": {
                          "document": {
                            "type": "object",
                            "properties": {
                              "identification": {
                                "$ref": "#/components/schemas/OfbCpf"
                              },
                              "rel": {
                                "type": "string",
                                "pattern": "^[A-Z]{3}$"
                              }
                            },
                            "required": [
                              "identification",
                              "rel"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "document"
                        ],
                        "additionalProperties": false
                      },
                      "businessEntity": {
                        "type": "object",
                        "properties": {
                          "document": {
                            "type": "object",
                            "properties": {
                              "identification": {
                                "$ref": "#/components/schemas/OfbCnpj"
                              },
                              "rel": {
                                "type": "string",
                                "pattern": "^[A-Z]{4}$"
                              }
                            },
                            "required": [
                              "identification",
                              "rel"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "document"
                        ],
                        "additionalProperties": false
                      },
                      "permissions": {
                        "type": "array",
                        "prefixItems": [
                          {
                            "type": "string",
                            "enum": [
                              "ACCOUNTS_READ",
                              "ACCOUNTS_BALANCES_READ",
                              "ACCOUNTS_TRANSACTIONS_READ",
                              "ACCOUNTS_OVERDRAFT_LIMITS_READ",
                              "CREDIT_CARDS_ACCOUNTS_READ",
                              "CREDIT_CARDS_ACCOUNTS_BILLS_READ",
                              "CREDIT_CARDS_ACCOUNTS_BILLS_TRANSACTIONS_READ",
                              "CREDIT_CARDS_ACCOUNTS_LIMITS_READ",
                              "CREDIT_CARDS_ACCOUNTS_TRANSACTIONS_READ",
                              "CUSTOMERS_PERSONAL_IDENTIFICATIONS_READ",
                              "CUSTOMERS_PERSONAL_ADITTIONALINFO_READ",
                              "CUSTOMERS_BUSINESS_IDENTIFICATIONS_READ",
                              "CUSTOMERS_BUSINESS_ADITTIONALINFO_READ",
                              "FINANCINGS_READ",
                              "FINANCINGS_SCHEDULED_INSTALMENTS_READ",
                              "FINANCINGS_PAYMENTS_READ",
                              "FINANCINGS_WARRANTIES_READ",
                              "INVOICE_FINANCINGS_READ",
                              "INVOICE_FINANCINGS_SCHEDULED_INSTALMENTS_READ",
                              "INVOICE_FINANCINGS_PAYMENTS_READ",
                              "INVOICE_FINANCINGS_WARRANTIES_READ",
                              "LOANS_READ",
                              "LOANS_SCHEDULED_INSTALMENTS_READ",
                              "LOANS_PAYMENTS_READ",
                              "LOANS_WARRANTIES_READ",
                              "UNARRANGED_ACCOUNTS_OVERDRAFT_READ",
                              "UNARRANGED_ACCOUNTS_OVERDRAFT_SCHEDULED_INSTALMENTS_READ",
                              "UNARRANGED_ACCOUNTS_OVERDRAFT_PAYMENTS_READ",
                              "UNARRANGED_ACCOUNTS_OVERDRAFT_WARRANTIES_READ",
                              "RESOURCES_READ",
                              "BANK_FIXED_INCOMES_READ",
                              "CREDIT_FIXED_INCOMES_READ",
                              "FUNDS_READ",
                              "VARIABLE_INCOMES_READ",
                              "TREASURE_TITLES_READ",
                              "EXCHANGES_READ"
                            ]
                          }
                        ],
                        "minItems": 1,
                        "items": {
                          "type": "string",
                          "enum": [
                            "ACCOUNTS_READ",
                            "ACCOUNTS_BALANCES_READ",
                            "ACCOUNTS_TRANSACTIONS_READ",
                            "ACCOUNTS_OVERDRAFT_LIMITS_READ",
                            "CREDIT_CARDS_ACCOUNTS_READ",
                            "CREDIT_CARDS_ACCOUNTS_BILLS_READ",
                            "CREDIT_CARDS_ACCOUNTS_BILLS_TRANSACTIONS_READ",
                            "CREDIT_CARDS_ACCOUNTS_LIMITS_READ",
                            "CREDIT_CARDS_ACCOUNTS_TRANSACTIONS_READ",
                            "CUSTOMERS_PERSONAL_IDENTIFICATIONS_READ",
                            "CUSTOMERS_PERSONAL_ADITTIONALINFO_READ",
                            "CUSTOMERS_BUSINESS_IDENTIFICATIONS_READ",
                            "CUSTOMERS_BUSINESS_ADITTIONALINFO_READ",
                            "FINANCINGS_READ",
                            "FINANCINGS_SCHEDULED_INSTALMENTS_READ",
                            "FINANCINGS_PAYMENTS_READ",
                            "FINANCINGS_WARRANTIES_READ",
                            "INVOICE_FINANCINGS_READ",
                            "INVOICE_FINANCINGS_SCHEDULED_INSTALMENTS_READ",
                            "INVOICE_FINANCINGS_PAYMENTS_READ",
                            "INVOICE_FINANCINGS_WARRANTIES_READ",
                            "LOANS_READ",
                            "LOANS_SCHEDULED_INSTALMENTS_READ",
                            "LOANS_PAYMENTS_READ",
                            "LOANS_WARRANTIES_READ",
                            "UNARRANGED_ACCOUNTS_OVERDRAFT_READ",
                            "UNARRANGED_ACCOUNTS_OVERDRAFT_SCHEDULED_INSTALMENTS_READ",
                            "UNARRANGED_ACCOUNTS_OVERDRAFT_PAYMENTS_READ",
                            "UNARRANGED_ACCOUNTS_OVERDRAFT_WARRANTIES_READ",
                            "RESOURCES_READ",
                            "BANK_FIXED_INCOMES_READ",
                            "CREDIT_FIXED_INCOMES_READ",
                            "FUNDS_READ",
                            "VARIABLE_INCOMES_READ",
                            "TREASURE_TITLES_READ",
                            "EXCHANGES_READ"
                          ]
                        }
                      },
                      "expirationDateTime": {
                        "type": "string",
                        "allOf": [
                          {
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$",
                            "format": "date-time"
                          }
                        ]
                      },
                      "recurringConsent": {
                        "type": "object",
                        "properties": {
                          "recurringConfiguration": {
                            "$ref": "#/components/schemas/banking.payment-initiation.automatic-payments-v2.recurring-configuration"
                          },
                          "creditors": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "personType": {
                                  "type": "string",
                                  "enum": [
                                    "PESSOA_NATURAL",
                                    "PESSOA_JURIDICA"
                                  ]
                                },
                                "cpfCnpj": {
                                  "type": "string",
                                  "pattern": "^\\d{11}$|^\\d{14}$"
                                },
                                "name": {
                                  "type": "string",
                                  "pattern": "^([A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u00FF,.@:&*+_<>()!?/\\\\$%\\d' -]+)$",
                                  "minLength": 1,
                                  "maxLength": 120
                                }
                              },
                              "required": [
                                "personType",
                                "cpfCnpj",
                                "name"
                              ],
                              "additionalProperties": false
                            },
                            "minItems": 1
                          },
                          "loggedUser": {
                            "type": "object",
                            "properties": {
                              "document": {
                                "type": "object",
                                "properties": {
                                  "identification": {
                                    "type": "string",
                                    "pattern": "^\\d{11}$"
                                  },
                                  "rel": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{3}$"
                                  }
                                },
                                "required": [
                                  "identification",
                                  "rel"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "document"
                            ],
                            "additionalProperties": false
                          },
                          "businessEntity": {
                            "type": "object",
                            "properties": {
                              "document": {
                                "type": "object",
                                "properties": {
                                  "identification": {
                                    "type": "string",
                                    "pattern": "^\\d{14}$"
                                  },
                                  "rel": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{4}$"
                                  }
                                },
                                "required": [
                                  "identification",
                                  "rel"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "document"
                            ],
                            "additionalProperties": false
                          },
                          "debtorAccount": {
                            "type": "object",
                            "properties": {
                              "ispb": {
                                "type": "string",
                                "pattern": "^[0-9]{8}$"
                              },
                              "issuer": {
                                "type": "string",
                                "pattern": "^[0-9]{1,4}$"
                              },
                              "number": {
                                "type": "string",
                                "pattern": "^[0-9]{1,20}$"
                              },
                              "accountType": {
                                "type": "string",
                                "enum": [
                                  "CACC",
                                  "SVGS",
                                  "TRAN"
                                ]
                              }
                            },
                            "required": [
                              "ispb",
                              "number",
                              "accountType"
                            ],
                            "additionalProperties": false
                          },
                          "expirationDateTime": {
                            "type": "string",
                            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T(?:[01]\\d|2[0123]):(?:[012345]\\d):(?:[012345]\\d)Z$"
                          },
                          "additionalInformation": {
                            "type": "string",
                            "maxLength": 140
                          },
                          "journey": {
                            "$ref": "#/components/schemas/banking.payment-initiation.optimized-journey"
                          }
                        },
                        "required": [
                          "recurringConfiguration",
                          "creditors",
                          "loggedUser"
                        ],
                        "additionalProperties": false,
                        "title": "CreateRecurringConsentDataV2",
                        "description": "OFB Automatic Payments v2 POST /recurring-consents request data object."
                      }
                    },
                    "required": [
                      "authorisationServerId",
                      "redirectUri",
                      "loggedUser",
                      "permissions",
                      "recurringConsent"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "data"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    },
    "/banking-receiver/optimized-journeys/v1/jsr-enrollments": {
      "post": {
        "tags": [
          "banking.receiver.optimized-journeys"
        ],
        "operationId": "banking.receiver.optimized-journeys.createJsrEnrollment",
        "parameters": [
          {
            "name": "x-idempotency-key",
            "in": "header",
            "schema": {
              "$ref": "#/components/schemas/IdempotencyKey"
            },
            "required": true
          }
        ],
        "security": [
          {
            "oauth2": [
              "ofb:receiver:consents"
            ]
          }
        ],
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "journey": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$",
                              "format": "uuid"
                            },
                            "clientId": {
                              "$ref": "#/components/schemas/ReceiverClientId"
                            },
                            "authorisationServerId": {
                              "$ref": "#/components/schemas/AuthorisationServerId"
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "smart_transfer",
                                "jsr"
                              ]
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "created",
                                "awaiting_authorisation",
                                "active",
                                "failed",
                                "revoked"
                              ]
                            },
                            "dataConnectionId": {
                              "$ref": "#/components/schemas/ReceiverConnectionId"
                            },
                            "providerDataConsentId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            "primaryConsentId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            },
                            "primaryConsentType": {
                              "type": "string",
                              "enum": [
                                "recurring_consent",
                                "enrollment"
                              ]
                            },
                            "tokenScope": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2048
                            },
                            "requestHash": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "evidenceSummary": {
                              "type": "object",
                              "properties": {
                                "level": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                },
                                "status": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                }
                              },
                              "required": [
                                "level",
                                "status"
                              ],
                              "allOf": [
                                {
                                  "type": "object",
                                  "additionalProperties": {}
                                }
                              ]
                            },
                            "errorMessage": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 1000
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "activatedAt": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "allOf": [
                                    {
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$",
                                      "format": "date-time"
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "failedAt": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "allOf": [
                                    {
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$",
                                      "format": "date-time"
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "revokedAt": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "allOf": [
                                    {
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$",
                                      "format": "date-time"
                                    }
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "createdAt": {
                              "type": "string",
                              "allOf": [
                                {
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$",
                                  "format": "date-time"
                                }
                              ]
                            },
                            "updatedAt": {
                              "type": "string",
                              "allOf": [
                                {
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$",
                                  "format": "date-time"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "clientId",
                            "authorisationServerId",
                            "kind",
                            "status",
                            "dataConnectionId",
                            "providerDataConsentId",
                            "primaryConsentId",
                            "primaryConsentType",
                            "tokenScope",
                            "requestHash",
                            "evidenceSummary",
                            "errorMessage",
                            "activatedAt",
                            "failedAt",
                            "revokedAt",
                            "createdAt",
                            "updatedAt"
                          ],
                          "additionalProperties": false
                        },
                        "redirectUrl": {
                          "type": "string"
                        },
                        "idempotent": {
                          "type": "boolean",
                          "enum": [
                            true
                          ]
                        }
                      },
                      "required": [
                        "journey",
                        "redirectUrl"
                      ],
                      "additionalProperties": false
                    },
                    "links": {
                      "type": "object",
                      "properties": {
                        "self": {
                          "type": "string",
                          "format": "uri"
                        }
                      },
                      "required": [
                        "self"
                      ],
                      "additionalProperties": false
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "totalRecords": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "totalPages": {
                          "type": "integer",
                          "minimum": 0
                        },
                        "traceId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "requestDateTime",
                        "totalRecords",
                        "totalPages"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "data",
                    "links",
                    "meta"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "500": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "502": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          },
          "503": {
            "description": "Error",
            "content": {
              "application/json; charset=utf-8": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "detail": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 2048
                          }
                        },
                        "required": [
                          "code",
                          "title",
                          "detail"
                        ],
                        "allOf": [
                          {
                            "type": "object",
                            "additionalProperties": {}
                          }
                        ]
                      },
                      "minItems": 1,
                      "maxItems": 13
                    },
                    "meta": {
                      "type": "object",
                      "properties": {
                        "requestDateTime": {
                          "type": "string",
                          "format": "date-time"
                        }
                      },
                      "required": [
                        "requestDateTime"
                      ],
                      "allOf": [
                        {
                          "type": "object",
                          "additionalProperties": {}
                        }
                      ]
                    }
                  },
                  "required": [
                    "errors"
                  ],
                  "allOf": [
                    {
                      "type": "object",
                      "additionalProperties": {}
                    }
                  ]
                }
              }
            }
          }
        },
        "summary": "Start a JSR enrollment journey with its data consent",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "data": {
                    "type": "object",
                    "properties": {
                      "authorisationServerId": {
                        "$ref": "#/components/schemas/AuthorisationServerId"
                      },
                      "redirectUri": {
                        "type": "string"
                      },
                      "loggedUser": {
                        "type": "object",
                        "properties": {
                          "document": {
                            "type": "object",
                            "properties": {
                              "identification": {
                                "$ref": "#/components/schemas/OfbCpf"
                              },
                              "rel": {
                                "type": "string",
                                "pattern": "^[A-Z]{3}$"
                              }
                            },
                            "required": [
                              "identification",
                              "rel"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "document"
                        ],
                        "additionalProperties": false
                      },
                      "businessEntity": {
                        "type": "object",
                        "properties": {
                          "document": {
                            "type": "object",
                            "properties": {
                              "identification": {
                                "$ref": "#/components/schemas/OfbCnpj"
                              },
                              "rel": {
                                "type": "string",
                                "pattern": "^[A-Z]{4}$"
                              }
                            },
                            "required": [
                              "identification",
                              "rel"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "document"
                        ],
                        "additionalProperties": false
                      },
                      "permissions": {
                        "type": "array",
                        "prefixItems": [
                          {
                            "type": "string",
                            "enum": [
                              "ACCOUNTS_READ",
                              "ACCOUNTS_BALANCES_READ",
                              "ACCOUNTS_TRANSACTIONS_READ",
                              "ACCOUNTS_OVERDRAFT_LIMITS_READ",
                              "CREDIT_CARDS_ACCOUNTS_READ",
                              "CREDIT_CARDS_ACCOUNTS_BILLS_READ",
                              "CREDIT_CARDS_ACCOUNTS_BILLS_TRANSACTIONS_READ",
                              "CREDIT_CARDS_ACCOUNTS_LIMITS_READ",
                              "CREDIT_CARDS_ACCOUNTS_TRANSACTIONS_READ",
                              "CUSTOMERS_PERSONAL_IDENTIFICATIONS_READ",
                              "CUSTOMERS_PERSONAL_ADITTIONALINFO_READ",
                              "CUSTOMERS_BUSINESS_IDENTIFICATIONS_READ",
                              "CUSTOMERS_BUSINESS_ADITTIONALINFO_READ",
                              "FINANCINGS_READ",
                              "FINANCINGS_SCHEDULED_INSTALMENTS_READ",
                              "FINANCINGS_PAYMENTS_READ",
                              "FINANCINGS_WARRANTIES_READ",
                              "INVOICE_FINANCINGS_READ",
                              "INVOICE_FINANCINGS_SCHEDULED_INSTALMENTS_READ",
                              "INVOICE_FINANCINGS_PAYMENTS_READ",
                              "INVOICE_FINANCINGS_WARRANTIES_READ",
                              "LOANS_READ",
                              "LOANS_SCHEDULED_INSTALMENTS_READ",
                              "LOANS_PAYMENTS_READ",
                              "LOANS_WARRANTIES_READ",
                              "UNARRANGED_ACCOUNTS_OVERDRAFT_READ",
                              "UNARRANGED_ACCOUNTS_OVERDRAFT_SCHEDULED_INSTALMENTS_READ",
                              "UNARRANGED_ACCOUNTS_OVERDRAFT_PAYMENTS_READ",
                              "UNARRANGED_ACCOUNTS_OVERDRAFT_WARRANTIES_READ",
                              "RESOURCES_READ",
                              "BANK_FIXED_INCOMES_READ",
                              "CREDIT_FIXED_INCOMES_READ",
                              "FUNDS_READ",
                              "VARIABLE_INCOMES_READ",
                              "TREASURE_TITLES_READ",
                              "EXCHANGES_READ"
                            ]
                          }
                        ],
                        "minItems": 1,
                        "items": {
                          "type": "string",
                          "enum": [
                            "ACCOUNTS_READ",
                            "ACCOUNTS_BALANCES_READ",
                            "ACCOUNTS_TRANSACTIONS_READ",
                            "ACCOUNTS_OVERDRAFT_LIMITS_READ",
                            "CREDIT_CARDS_ACCOUNTS_READ",
                            "CREDIT_CARDS_ACCOUNTS_BILLS_READ",
                            "CREDIT_CARDS_ACCOUNTS_BILLS_TRANSACTIONS_READ",
                            "CREDIT_CARDS_ACCOUNTS_LIMITS_READ",
                            "CREDIT_CARDS_ACCOUNTS_TRANSACTIONS_READ",
                            "CUSTOMERS_PERSONAL_IDENTIFICATIONS_READ",
                            "CUSTOMERS_PERSONAL_ADITTIONALINFO_READ",
                            "CUSTOMERS_BUSINESS_IDENTIFICATIONS_READ",
                            "CUSTOMERS_BUSINESS_ADITTIONALINFO_READ",
                            "FINANCINGS_READ",
                            "FINANCINGS_SCHEDULED_INSTALMENTS_READ",
                            "FINANCINGS_PAYMENTS_READ",
                            "FINANCINGS_WARRANTIES_READ",
                            "INVOICE_FINANCINGS_READ",
                            "INVOICE_FINANCINGS_SCHEDULED_INSTALMENTS_READ",
                            "INVOICE_FINANCINGS_PAYMENTS_READ",
                            "INVOICE_FINANCINGS_WARRANTIES_READ",
                            "LOANS_READ",
                            "LOANS_SCHEDULED_INSTALMENTS_READ",
                            "LOANS_PAYMENTS_READ",
                            "LOANS_WARRANTIES_READ",
                            "UNARRANGED_ACCOUNTS_OVERDRAFT_READ",
                            "UNARRANGED_ACCOUNTS_OVERDRAFT_SCHEDULED_INSTALMENTS_READ",
                            "UNARRANGED_ACCOUNTS_OVERDRAFT_PAYMENTS_READ",
                            "UNARRANGED_ACCOUNTS_OVERDRAFT_WARRANTIES_READ",
                            "RESOURCES_READ",
                            "BANK_FIXED_INCOMES_READ",
                            "CREDIT_FIXED_INCOMES_READ",
                            "FUNDS_READ",
                            "VARIABLE_INCOMES_READ",
                            "TREASURE_TITLES_READ",
                            "EXCHANGES_READ"
                          ]
                        }
                      },
                      "expirationDateTime": {
                        "type": "string",
                        "allOf": [
                          {
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$",
                            "format": "date-time"
                          }
                        ]
                      }
                    },
                    "required": [
                      "authorisationServerId",
                      "redirectUri",
                      "loggedUser",
                      "permissions"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "data"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": true
        }
      }
    }
  }
}
