{
  "openapi": "3.0.1",
  "info": {
    "title": "CoreWave Provider Callbacks",
    "description": "Endpoints that receive provider events. Authenticate with the callback secret configured by the bank. A bank-client access token cannot authorize these requests.",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.staging.ibanks.corewavecba.com",
      "description": "Staging \u2014 confirm with your bank"
    },
    {
      "url": "https://api.ibanks.corewavecba.com",
      "description": "Production \u2014 confirm with your bank"
    }
  ],
  "paths": {
    "/api/card/v1/webhooks/{provider}/{eventType}": {
      "post": {
        "tags": [
          "Card"
        ],
        "summary": "Receive card event",
        "description": "Receive card events from the gateway using X-API-KEY. Transaction events need a successful provider result and a stable original reference. Lifecycle events update card status without debiting the account.",
        "operationId": "Card_CardWebhook_POST_api_card_v1_webhooks__provider___eventType_",
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "description": "Card provider: providus or interswitch. Use the provider that delivered the event.",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "string"
            },
            "example": "providus"
          },
          {
            "name": "eventType",
            "in": "path",
            "description": "Original provider event type, such as transaction_feedback or card_blocked. Match the payload to the transaction or lifecycle event.",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "string"
            },
            "example": "transaction_feedback"
          },
          {
            "name": "request-reference",
            "in": "header",
            "description": "Unique correlation reference for this HTTP attempt. Echoed in the response. Does not prevent duplicate financial operations.",
            "style": "simple",
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CardWebhookRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CardWebhookRequest"
              }
            },
            "application/*\u002Bjson": {
              "schema": {
                "$ref": "#/components/schemas/CardWebhookRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The callback was received. Read status and message to confirm what was processed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message",
                        "data"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "data": {
                          "required": [
                            "id",
                            "status"
                          ],
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "cardId": {
                              "type": "string",
                              "nullable": true
                            },
                            "status": {
                              "type": "string"
                            }
                          },
                          "additionalProperties": false
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request has invalid or missing fields, or the bank cannot accept it. Read the error message for details.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message",
                        "data"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "data": {
                          "required": [
                            "statusCode",
                            "amlHold"
                          ],
                          "type": "object",
                          "properties": {
                            "statusCode": {
                              "anyOf": [
                                {
                                  "enum": [
                                    "AML_HOLD"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "enum": [
                                    "AML_RELEASE_INVALID"
                                  ],
                                  "type": "string"
                                }
                              ]
                            },
                            "amlHold": {
                              "type": "boolean"
                            },
                            "approvalId": {
                              "type": "integer",
                              "format": "int64",
                              "nullable": true
                            },
                            "amlApprovalReference": {
                              "type": "string",
                              "nullable": true
                            },
                            "reason": {
                              "type": "string",
                              "nullable": true
                            }
                          },
                          "additionalProperties": false
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The callback secret is missing, incorrect or not configured. Use the bank\u2019s provider secret, not a bank-client access token.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "required": [
                            "status",
                            "message"
                          ],
                          "type": "object",
                          "properties": {
                            "status": {
                              "enum": [
                                false
                              ],
                              "type": "boolean"
                            },
                            "message": {
                              "type": "string"
                            },
                            "reason": {
                              "type": "string",
                              "nullable": true
                            },
                            "nextStep": {
                              "type": "string",
                              "nullable": true
                            },
                            "summary": {
                              "type": "object"
                            },
                            "errors": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "required": [
                            "status",
                            "message"
                          ],
                          "type": "object",
                          "properties": {
                            "status": {
                              "enum": [
                                false
                              ],
                              "type": "boolean"
                            },
                            "message": {
                              "type": "string"
                            },
                            "reason": {
                              "type": "string",
                              "nullable": true
                            },
                            "nextStep": {
                              "type": "string",
                              "nullable": true
                            },
                            "summary": {
                              "type": "object"
                            },
                            "errors": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "additionalProperties": false
                        }
                      ]
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "403": {
            "description": "These credentials do not allow access to this API.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "404": {
            "description": "The requested record was not found at your bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Wait for the number of seconds in Retry-After before trying again.",
            "headers": {
              "Retry-After": {
                "description": "Seconds before retry",
                "schema": {
                  "type": "integer"
                }
              },
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "code",
                    "message",
                    "retryAfterSeconds"
                  ],
                  "type": "object",
                  "properties": {
                    "code": {
                      "enum": [
                        "RATE_LIMIT_EXCEEDED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "retryAfterSeconds": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The server could not finish the request. If it was a payment, check its status before sending it again.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "409": {
            "description": "The request conflicts with an existing record or its current status. Read the message before trying again.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "503": {
            "description": "A provider service or the bank\u2019s settlement setup is unavailable. Keep the original reference and contact the bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "202": {
            "description": "The bank must review this request. Save the approval reference and wait for its decision.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message",
                    "data"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "required": [
                        "statusCode",
                        "amlHold"
                      ],
                      "type": "object",
                      "properties": {
                        "statusCode": {
                          "anyOf": [
                            {
                              "enum": [
                                "AML_HOLD"
                              ],
                              "type": "string"
                            },
                            {
                              "enum": [
                                "AML_RELEASE_INVALID"
                              ],
                              "type": "string"
                            }
                          ]
                        },
                        "amlHold": {
                          "type": "boolean"
                        },
                        "approvalId": {
                          "type": "integer",
                          "format": "int64",
                          "nullable": true
                        },
                        "amlApprovalReference": {
                          "type": "string",
                          "nullable": true
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        }
                      },
                      "additionalProperties": false
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "The server rejected the request before it could be completed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "cardGatewayKey": []
          }
        ]
      }
    },
    "/cba/cards/interswitch/transaction-feedback": {
      "post": {
        "tags": [
          "Card"
        ],
        "summary": "Interswitch Transaction Feedback",
        "description": "Receive an Interswitch transaction event using X-API-KEY. Reuse the original provider transaction reference on retries so the same debit is not posted twice.",
        "operationId": "Card_InterswitchTransactionFeedback_POST_cba_cards_interswitch_transaction_feedback",
        "parameters": [
          {
            "name": "request-reference",
            "in": "header",
            "description": "Unique correlation reference for this HTTP attempt. Echoed in the response. Does not prevent duplicate financial operations.",
            "style": "simple",
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CardWebhookRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CardWebhookRequest"
              }
            },
            "application/*\u002Bjson": {
              "schema": {
                "$ref": "#/components/schemas/CardWebhookRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The callback was received. Read status and message to confirm what was processed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message",
                        "data"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "data": {
                          "required": [
                            "id",
                            "status"
                          ],
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "cardId": {
                              "type": "string",
                              "nullable": true
                            },
                            "status": {
                              "type": "string"
                            }
                          },
                          "additionalProperties": false
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request has invalid or missing fields, or the bank cannot accept it. Read the error message for details.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message",
                        "data"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "data": {
                          "required": [
                            "statusCode",
                            "amlHold"
                          ],
                          "type": "object",
                          "properties": {
                            "statusCode": {
                              "anyOf": [
                                {
                                  "enum": [
                                    "AML_HOLD"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "enum": [
                                    "AML_RELEASE_INVALID"
                                  ],
                                  "type": "string"
                                }
                              ]
                            },
                            "amlHold": {
                              "type": "boolean"
                            },
                            "approvalId": {
                              "type": "integer",
                              "format": "int64",
                              "nullable": true
                            },
                            "amlApprovalReference": {
                              "type": "string",
                              "nullable": true
                            },
                            "reason": {
                              "type": "string",
                              "nullable": true
                            }
                          },
                          "additionalProperties": false
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The callback secret is missing, incorrect or not configured. Use the bank\u2019s provider secret, not a bank-client access token.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "required": [
                            "status",
                            "message"
                          ],
                          "type": "object",
                          "properties": {
                            "status": {
                              "enum": [
                                false
                              ],
                              "type": "boolean"
                            },
                            "message": {
                              "type": "string"
                            },
                            "reason": {
                              "type": "string",
                              "nullable": true
                            },
                            "nextStep": {
                              "type": "string",
                              "nullable": true
                            },
                            "summary": {
                              "type": "object"
                            },
                            "errors": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "required": [
                            "status",
                            "message"
                          ],
                          "type": "object",
                          "properties": {
                            "status": {
                              "enum": [
                                false
                              ],
                              "type": "boolean"
                            },
                            "message": {
                              "type": "string"
                            },
                            "reason": {
                              "type": "string",
                              "nullable": true
                            },
                            "nextStep": {
                              "type": "string",
                              "nullable": true
                            },
                            "summary": {
                              "type": "object"
                            },
                            "errors": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "additionalProperties": false
                        }
                      ]
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "403": {
            "description": "These credentials do not allow access to this API.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "404": {
            "description": "The requested record was not found at your bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Wait for the number of seconds in Retry-After before trying again.",
            "headers": {
              "Retry-After": {
                "description": "Seconds before retry",
                "schema": {
                  "type": "integer"
                }
              },
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "code",
                    "message",
                    "retryAfterSeconds"
                  ],
                  "type": "object",
                  "properties": {
                    "code": {
                      "enum": [
                        "RATE_LIMIT_EXCEEDED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "retryAfterSeconds": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The server could not finish the request. If it was a payment, check its status before sending it again.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "409": {
            "description": "The request conflicts with an existing record or its current status. Read the message before trying again.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "503": {
            "description": "A provider service or the bank\u2019s settlement setup is unavailable. Keep the original reference and contact the bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "202": {
            "description": "The bank must review this request. Save the approval reference and wait for its decision.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message",
                    "data"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "required": [
                        "statusCode",
                        "amlHold"
                      ],
                      "type": "object",
                      "properties": {
                        "statusCode": {
                          "anyOf": [
                            {
                              "enum": [
                                "AML_HOLD"
                              ],
                              "type": "string"
                            },
                            {
                              "enum": [
                                "AML_RELEASE_INVALID"
                              ],
                              "type": "string"
                            }
                          ]
                        },
                        "amlHold": {
                          "type": "boolean"
                        },
                        "approvalId": {
                          "type": "integer",
                          "format": "int64",
                          "nullable": true
                        },
                        "amlApprovalReference": {
                          "type": "string",
                          "nullable": true
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        }
                      },
                      "additionalProperties": false
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "The server rejected the request before it could be completed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "cardGatewayKey": []
          }
        ]
      }
    },
    "/cba/cards/interswitch/lifecycle-feedback": {
      "post": {
        "tags": [
          "Card"
        ],
        "summary": "Interswitch Lifecycle Feedback",
        "description": "Receive an Interswitch card-status event using X-API-KEY. The request updates the linked card\u0027s status without moving money.",
        "operationId": "Card_InterswitchLifecycleFeedback_POST_cba_cards_interswitch_lifecycle_feedback",
        "parameters": [
          {
            "name": "request-reference",
            "in": "header",
            "description": "Unique correlation reference for this HTTP attempt. Echoed in the response. Does not prevent duplicate financial operations.",
            "style": "simple",
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CardWebhookRequest"
              },
              "example": {
                "eventType": "card_blocked",
                "payload": {
                  "institutionId": 1,
                  "cardId": "PROVIDER-CARD-001"
                }
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CardWebhookRequest"
              },
              "example": {
                "eventType": "card_blocked",
                "payload": {
                  "institutionId": 1,
                  "cardId": "PROVIDER-CARD-001"
                }
              }
            },
            "application/*\u002Bjson": {
              "schema": {
                "$ref": "#/components/schemas/CardWebhookRequest"
              },
              "example": {
                "eventType": "card_blocked",
                "payload": {
                  "institutionId": 1,
                  "cardId": "PROVIDER-CARD-001"
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The callback was received. Read status and message to confirm what was processed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message",
                        "data"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "data": {
                          "required": [
                            "id",
                            "status"
                          ],
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "cardId": {
                              "type": "string",
                              "nullable": true
                            },
                            "status": {
                              "type": "string"
                            }
                          },
                          "additionalProperties": false
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request has invalid or missing fields, or the bank cannot accept it. Read the error message for details.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message",
                        "data"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "data": {
                          "required": [
                            "statusCode",
                            "amlHold"
                          ],
                          "type": "object",
                          "properties": {
                            "statusCode": {
                              "anyOf": [
                                {
                                  "enum": [
                                    "AML_HOLD"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "enum": [
                                    "AML_RELEASE_INVALID"
                                  ],
                                  "type": "string"
                                }
                              ]
                            },
                            "amlHold": {
                              "type": "boolean"
                            },
                            "approvalId": {
                              "type": "integer",
                              "format": "int64",
                              "nullable": true
                            },
                            "amlApprovalReference": {
                              "type": "string",
                              "nullable": true
                            },
                            "reason": {
                              "type": "string",
                              "nullable": true
                            }
                          },
                          "additionalProperties": false
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The callback secret is missing, incorrect or not configured. Use the bank\u2019s provider secret, not a bank-client access token.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "required": [
                            "status",
                            "message"
                          ],
                          "type": "object",
                          "properties": {
                            "status": {
                              "enum": [
                                false
                              ],
                              "type": "boolean"
                            },
                            "message": {
                              "type": "string"
                            },
                            "reason": {
                              "type": "string",
                              "nullable": true
                            },
                            "nextStep": {
                              "type": "string",
                              "nullable": true
                            },
                            "summary": {
                              "type": "object"
                            },
                            "errors": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "required": [
                            "status",
                            "message"
                          ],
                          "type": "object",
                          "properties": {
                            "status": {
                              "enum": [
                                false
                              ],
                              "type": "boolean"
                            },
                            "message": {
                              "type": "string"
                            },
                            "reason": {
                              "type": "string",
                              "nullable": true
                            },
                            "nextStep": {
                              "type": "string",
                              "nullable": true
                            },
                            "summary": {
                              "type": "object"
                            },
                            "errors": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "additionalProperties": false
                        }
                      ]
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "403": {
            "description": "These credentials do not allow access to this API.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "404": {
            "description": "The requested record was not found at your bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Wait for the number of seconds in Retry-After before trying again.",
            "headers": {
              "Retry-After": {
                "description": "Seconds before retry",
                "schema": {
                  "type": "integer"
                }
              },
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "code",
                    "message",
                    "retryAfterSeconds"
                  ],
                  "type": "object",
                  "properties": {
                    "code": {
                      "enum": [
                        "RATE_LIMIT_EXCEEDED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "retryAfterSeconds": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The server could not finish the request. If it was a payment, check its status before sending it again.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "409": {
            "description": "The request conflicts with an existing record or its current status. Read the message before trying again.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "503": {
            "description": "A provider service or the bank\u2019s settlement setup is unavailable. Keep the original reference and contact the bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "202": {
            "description": "The bank must review this request. Save the approval reference and wait for its decision.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message",
                    "data"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "required": [
                        "statusCode",
                        "amlHold"
                      ],
                      "type": "object",
                      "properties": {
                        "statusCode": {
                          "anyOf": [
                            {
                              "enum": [
                                "AML_HOLD"
                              ],
                              "type": "string"
                            },
                            {
                              "enum": [
                                "AML_RELEASE_INVALID"
                              ],
                              "type": "string"
                            }
                          ]
                        },
                        "amlHold": {
                          "type": "boolean"
                        },
                        "approvalId": {
                          "type": "integer",
                          "format": "int64",
                          "nullable": true
                        },
                        "amlApprovalReference": {
                          "type": "string",
                          "nullable": true
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        }
                      },
                      "additionalProperties": false
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "The server rejected the request before it could be completed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "cardGatewayKey": []
          }
        ]
      }
    },
    "/cba/cards/providus/transaction-feedback": {
      "post": {
        "tags": [
          "Card"
        ],
        "summary": "Providus Transaction Feedback",
        "description": "Receive a Providus transaction event using X-API-KEY. Reuse the original provider transaction reference on retries so the same debit is not posted twice.",
        "operationId": "Card_ProvidusTransactionFeedback_POST_cba_cards_providus_transaction_feedback",
        "parameters": [
          {
            "name": "request-reference",
            "in": "header",
            "description": "Unique correlation reference for this HTTP attempt. Echoed in the response. Does not prevent duplicate financial operations.",
            "style": "simple",
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CardWebhookRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CardWebhookRequest"
              }
            },
            "application/*\u002Bjson": {
              "schema": {
                "$ref": "#/components/schemas/CardWebhookRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The callback was received. Read status and message to confirm what was processed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message",
                        "data"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "data": {
                          "required": [
                            "id",
                            "status"
                          ],
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "cardId": {
                              "type": "string",
                              "nullable": true
                            },
                            "status": {
                              "type": "string"
                            }
                          },
                          "additionalProperties": false
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request has invalid or missing fields, or the bank cannot accept it. Read the error message for details.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message",
                        "data"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "data": {
                          "required": [
                            "statusCode",
                            "amlHold"
                          ],
                          "type": "object",
                          "properties": {
                            "statusCode": {
                              "anyOf": [
                                {
                                  "enum": [
                                    "AML_HOLD"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "enum": [
                                    "AML_RELEASE_INVALID"
                                  ],
                                  "type": "string"
                                }
                              ]
                            },
                            "amlHold": {
                              "type": "boolean"
                            },
                            "approvalId": {
                              "type": "integer",
                              "format": "int64",
                              "nullable": true
                            },
                            "amlApprovalReference": {
                              "type": "string",
                              "nullable": true
                            },
                            "reason": {
                              "type": "string",
                              "nullable": true
                            }
                          },
                          "additionalProperties": false
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The callback secret is missing, incorrect or not configured. Use the bank\u2019s provider secret, not a bank-client access token.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "required": [
                            "status",
                            "message"
                          ],
                          "type": "object",
                          "properties": {
                            "status": {
                              "enum": [
                                false
                              ],
                              "type": "boolean"
                            },
                            "message": {
                              "type": "string"
                            },
                            "reason": {
                              "type": "string",
                              "nullable": true
                            },
                            "nextStep": {
                              "type": "string",
                              "nullable": true
                            },
                            "summary": {
                              "type": "object"
                            },
                            "errors": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "required": [
                            "status",
                            "message"
                          ],
                          "type": "object",
                          "properties": {
                            "status": {
                              "enum": [
                                false
                              ],
                              "type": "boolean"
                            },
                            "message": {
                              "type": "string"
                            },
                            "reason": {
                              "type": "string",
                              "nullable": true
                            },
                            "nextStep": {
                              "type": "string",
                              "nullable": true
                            },
                            "summary": {
                              "type": "object"
                            },
                            "errors": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "additionalProperties": false
                        }
                      ]
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "403": {
            "description": "These credentials do not allow access to this API.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "404": {
            "description": "The requested record was not found at your bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Wait for the number of seconds in Retry-After before trying again.",
            "headers": {
              "Retry-After": {
                "description": "Seconds before retry",
                "schema": {
                  "type": "integer"
                }
              },
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "code",
                    "message",
                    "retryAfterSeconds"
                  ],
                  "type": "object",
                  "properties": {
                    "code": {
                      "enum": [
                        "RATE_LIMIT_EXCEEDED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "retryAfterSeconds": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The server could not finish the request. If it was a payment, check its status before sending it again.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "409": {
            "description": "The request conflicts with an existing record or its current status. Read the message before trying again.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "503": {
            "description": "A provider service or the bank\u2019s settlement setup is unavailable. Keep the original reference and contact the bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "202": {
            "description": "The bank must review this request. Save the approval reference and wait for its decision.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message",
                    "data"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "required": [
                        "statusCode",
                        "amlHold"
                      ],
                      "type": "object",
                      "properties": {
                        "statusCode": {
                          "anyOf": [
                            {
                              "enum": [
                                "AML_HOLD"
                              ],
                              "type": "string"
                            },
                            {
                              "enum": [
                                "AML_RELEASE_INVALID"
                              ],
                              "type": "string"
                            }
                          ]
                        },
                        "amlHold": {
                          "type": "boolean"
                        },
                        "approvalId": {
                          "type": "integer",
                          "format": "int64",
                          "nullable": true
                        },
                        "amlApprovalReference": {
                          "type": "string",
                          "nullable": true
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        }
                      },
                      "additionalProperties": false
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "The server rejected the request before it could be completed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "cardGatewayKey": []
          }
        ]
      }
    },
    "/cba/cards/providus/lifecycle-feedback": {
      "post": {
        "tags": [
          "Card"
        ],
        "summary": "Providus Lifecycle Feedback",
        "description": "Receive a Providus card-status event using X-API-KEY. The request updates the linked card\u0027s status without moving money.",
        "operationId": "Card_ProvidusLifecycleFeedback_POST_cba_cards_providus_lifecycle_feedback",
        "parameters": [
          {
            "name": "request-reference",
            "in": "header",
            "description": "Unique correlation reference for this HTTP attempt. Echoed in the response. Does not prevent duplicate financial operations.",
            "style": "simple",
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CardWebhookRequest"
              },
              "example": {
                "eventType": "card_blocked",
                "payload": {
                  "institutionId": 1,
                  "cardId": "PROVIDER-CARD-001"
                }
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CardWebhookRequest"
              },
              "example": {
                "eventType": "card_blocked",
                "payload": {
                  "institutionId": 1,
                  "cardId": "PROVIDER-CARD-001"
                }
              }
            },
            "application/*\u002Bjson": {
              "schema": {
                "$ref": "#/components/schemas/CardWebhookRequest"
              },
              "example": {
                "eventType": "card_blocked",
                "payload": {
                  "institutionId": 1,
                  "cardId": "PROVIDER-CARD-001"
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The callback was received. Read status and message to confirm what was processed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message",
                        "data"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "data": {
                          "required": [
                            "id",
                            "status"
                          ],
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "cardId": {
                              "type": "string",
                              "nullable": true
                            },
                            "status": {
                              "type": "string"
                            }
                          },
                          "additionalProperties": false
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request has invalid or missing fields, or the bank cannot accept it. Read the error message for details.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message",
                        "data"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "data": {
                          "required": [
                            "statusCode",
                            "amlHold"
                          ],
                          "type": "object",
                          "properties": {
                            "statusCode": {
                              "anyOf": [
                                {
                                  "enum": [
                                    "AML_HOLD"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "enum": [
                                    "AML_RELEASE_INVALID"
                                  ],
                                  "type": "string"
                                }
                              ]
                            },
                            "amlHold": {
                              "type": "boolean"
                            },
                            "approvalId": {
                              "type": "integer",
                              "format": "int64",
                              "nullable": true
                            },
                            "amlApprovalReference": {
                              "type": "string",
                              "nullable": true
                            },
                            "reason": {
                              "type": "string",
                              "nullable": true
                            }
                          },
                          "additionalProperties": false
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The callback secret is missing, incorrect or not configured. Use the bank\u2019s provider secret, not a bank-client access token.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "required": [
                            "status",
                            "message"
                          ],
                          "type": "object",
                          "properties": {
                            "status": {
                              "enum": [
                                false
                              ],
                              "type": "boolean"
                            },
                            "message": {
                              "type": "string"
                            },
                            "reason": {
                              "type": "string",
                              "nullable": true
                            },
                            "nextStep": {
                              "type": "string",
                              "nullable": true
                            },
                            "summary": {
                              "type": "object"
                            },
                            "errors": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "required": [
                            "status",
                            "message"
                          ],
                          "type": "object",
                          "properties": {
                            "status": {
                              "enum": [
                                false
                              ],
                              "type": "boolean"
                            },
                            "message": {
                              "type": "string"
                            },
                            "reason": {
                              "type": "string",
                              "nullable": true
                            },
                            "nextStep": {
                              "type": "string",
                              "nullable": true
                            },
                            "summary": {
                              "type": "object"
                            },
                            "errors": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "additionalProperties": false
                        }
                      ]
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "403": {
            "description": "These credentials do not allow access to this API.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "404": {
            "description": "The requested record was not found at your bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Wait for the number of seconds in Retry-After before trying again.",
            "headers": {
              "Retry-After": {
                "description": "Seconds before retry",
                "schema": {
                  "type": "integer"
                }
              },
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "code",
                    "message",
                    "retryAfterSeconds"
                  ],
                  "type": "object",
                  "properties": {
                    "code": {
                      "enum": [
                        "RATE_LIMIT_EXCEEDED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "retryAfterSeconds": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The server could not finish the request. If it was a payment, check its status before sending it again.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "409": {
            "description": "The request conflicts with an existing record or its current status. Read the message before trying again.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "503": {
            "description": "A provider service or the bank\u2019s settlement setup is unavailable. Keep the original reference and contact the bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "202": {
            "description": "The bank must review this request. Save the approval reference and wait for its decision.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message",
                    "data"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "required": [
                        "statusCode",
                        "amlHold"
                      ],
                      "type": "object",
                      "properties": {
                        "statusCode": {
                          "anyOf": [
                            {
                              "enum": [
                                "AML_HOLD"
                              ],
                              "type": "string"
                            },
                            {
                              "enum": [
                                "AML_RELEASE_INVALID"
                              ],
                              "type": "string"
                            }
                          ]
                        },
                        "amlHold": {
                          "type": "boolean"
                        },
                        "approvalId": {
                          "type": "integer",
                          "format": "int64",
                          "nullable": true
                        },
                        "amlApprovalReference": {
                          "type": "string",
                          "nullable": true
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        }
                      },
                      "additionalProperties": false
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "The server rejected the request before it could be completed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "cardGatewayKey": []
          }
        ]
      }
    },
    "/api/integrations/recova/v1/{institutionId}/SmsAlert": {
      "post": {
        "tags": [
          "Recuva Webhook"
        ],
        "summary": "Sms Alert",
        "description": "Send a Recova SMS notification for the bank identified by institutionId. Supply phoneNumber and message. Use the bank\u0027s callback secret for authentication; an SMS failure returns 503.",
        "operationId": "RecuvaWebhook_SmsAlert_POST_api_integrations_recova_v1__institutionId__SmsAlert",
        "parameters": [
          {
            "name": "institutionId",
            "in": "path",
            "description": "Numeric bank ID supplied by the bank for this callback connection. Use that bank\u0027s callback secret.",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "request-reference",
            "in": "header",
            "description": "Unique correlation reference for this HTTP attempt. Echoed in the response. Does not prevent duplicate financial operations.",
            "style": "simple",
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaSmsAlertWebhookRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaSmsAlertWebhookRequest"
              }
            },
            "application/*\u002Bjson": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaSmsAlertWebhookRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The callback was received. Read status and message to confirm what was processed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        true
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The request has invalid or missing fields, or the bank cannot accept it. Read the error message for details.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The callback secret is missing, incorrect or not configured. Use the bank\u2019s provider secret, not a bank-client access token.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "403": {
            "description": "These credentials do not allow access to this API.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "404": {
            "description": "The requested record was not found at your bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Wait for the number of seconds in Retry-After before trying again.",
            "headers": {
              "Retry-After": {
                "description": "Seconds before retry",
                "schema": {
                  "type": "integer"
                }
              },
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "code",
                    "message",
                    "retryAfterSeconds"
                  ],
                  "type": "object",
                  "properties": {
                    "code": {
                      "enum": [
                        "RATE_LIMIT_EXCEEDED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "retryAfterSeconds": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The server could not finish the request. If it was a payment, check its status before sending it again.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "503": {
            "description": "A provider service or the bank\u2019s settlement setup is unavailable. Keep the original reference and contact the bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "The server rejected the request before it could be completed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "recovaSecret": []
          }
        ]
      }
    },
    "/api/integrations/recova/v1/{institutionId}/sms-alert": {
      "post": {
        "tags": [
          "Recuva Webhook"
        ],
        "summary": "Sms Alert",
        "description": "Send a Recova SMS notification for the bank identified by institutionId. Supply phoneNumber and message. Use the bank\u0027s callback secret for authentication; an SMS failure returns 503.",
        "operationId": "RecuvaWebhook_SmsAlert_POST_api_integrations_recova_v1__institutionId__sms_alert",
        "parameters": [
          {
            "name": "institutionId",
            "in": "path",
            "description": "Numeric bank ID supplied by the bank for this callback connection. Use that bank\u0027s callback secret.",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "request-reference",
            "in": "header",
            "description": "Unique correlation reference for this HTTP attempt. Echoed in the response. Does not prevent duplicate financial operations.",
            "style": "simple",
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaSmsAlertWebhookRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaSmsAlertWebhookRequest"
              }
            },
            "application/*\u002Bjson": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaSmsAlertWebhookRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The callback was received. Read status and message to confirm what was processed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        true
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The request has invalid or missing fields, or the bank cannot accept it. Read the error message for details.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The callback secret is missing, incorrect or not configured. Use the bank\u2019s provider secret, not a bank-client access token.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "403": {
            "description": "These credentials do not allow access to this API.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "404": {
            "description": "The requested record was not found at your bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Wait for the number of seconds in Retry-After before trying again.",
            "headers": {
              "Retry-After": {
                "description": "Seconds before retry",
                "schema": {
                  "type": "integer"
                }
              },
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "code",
                    "message",
                    "retryAfterSeconds"
                  ],
                  "type": "object",
                  "properties": {
                    "code": {
                      "enum": [
                        "RATE_LIMIT_EXCEEDED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "retryAfterSeconds": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The server could not finish the request. If it was a payment, check its status before sending it again.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "503": {
            "description": "A provider service or the bank\u2019s settlement setup is unavailable. Keep the original reference and contact the bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "The server rejected the request before it could be completed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "recovaSecret": []
          }
        ]
      }
    },
    "/api/integrations/recova/v1/{institutionId}/SmsNotification": {
      "post": {
        "tags": [
          "Recuva Webhook"
        ],
        "summary": "Sms Alert",
        "description": "Send a Recova SMS notification for the bank identified by institutionId. Supply phoneNumber and message. Use the bank\u0027s callback secret for authentication; an SMS failure returns 503.",
        "operationId": "RecuvaWebhook_SmsAlert_POST_api_integrations_recova_v1__institutionId__SmsNotification",
        "parameters": [
          {
            "name": "institutionId",
            "in": "path",
            "description": "Numeric bank ID supplied by the bank for this callback connection. Use that bank\u0027s callback secret.",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "request-reference",
            "in": "header",
            "description": "Unique correlation reference for this HTTP attempt. Echoed in the response. Does not prevent duplicate financial operations.",
            "style": "simple",
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaSmsAlertWebhookRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaSmsAlertWebhookRequest"
              }
            },
            "application/*\u002Bjson": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaSmsAlertWebhookRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The callback was received. Read status and message to confirm what was processed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        true
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The request has invalid or missing fields, or the bank cannot accept it. Read the error message for details.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The callback secret is missing, incorrect or not configured. Use the bank\u2019s provider secret, not a bank-client access token.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "403": {
            "description": "These credentials do not allow access to this API.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "404": {
            "description": "The requested record was not found at your bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Wait for the number of seconds in Retry-After before trying again.",
            "headers": {
              "Retry-After": {
                "description": "Seconds before retry",
                "schema": {
                  "type": "integer"
                }
              },
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "code",
                    "message",
                    "retryAfterSeconds"
                  ],
                  "type": "object",
                  "properties": {
                    "code": {
                      "enum": [
                        "RATE_LIMIT_EXCEEDED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "retryAfterSeconds": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The server could not finish the request. If it was a payment, check its status before sending it again.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "503": {
            "description": "A provider service or the bank\u2019s settlement setup is unavailable. Keep the original reference and contact the bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "The server rejected the request before it could be completed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "recovaSecret": []
          }
        ]
      }
    },
    "/api/integrations/recova/v1/{institutionId}/sms-notification": {
      "post": {
        "tags": [
          "Recuva Webhook"
        ],
        "summary": "Sms Alert",
        "description": "Send a Recova SMS notification for the bank identified by institutionId. Supply phoneNumber and message. Use the bank\u0027s callback secret for authentication; an SMS failure returns 503.",
        "operationId": "RecuvaWebhook_SmsAlert_POST_api_integrations_recova_v1__institutionId__sms_notification",
        "parameters": [
          {
            "name": "institutionId",
            "in": "path",
            "description": "Numeric bank ID supplied by the bank for this callback connection. Use that bank\u0027s callback secret.",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "request-reference",
            "in": "header",
            "description": "Unique correlation reference for this HTTP attempt. Echoed in the response. Does not prevent duplicate financial operations.",
            "style": "simple",
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaSmsAlertWebhookRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaSmsAlertWebhookRequest"
              }
            },
            "application/*\u002Bjson": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaSmsAlertWebhookRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The callback was received. Read status and message to confirm what was processed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        true
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The request has invalid or missing fields, or the bank cannot accept it. Read the error message for details.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The callback secret is missing, incorrect or not configured. Use the bank\u2019s provider secret, not a bank-client access token.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "403": {
            "description": "These credentials do not allow access to this API.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "404": {
            "description": "The requested record was not found at your bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Wait for the number of seconds in Retry-After before trying again.",
            "headers": {
              "Retry-After": {
                "description": "Seconds before retry",
                "schema": {
                  "type": "integer"
                }
              },
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "code",
                    "message",
                    "retryAfterSeconds"
                  ],
                  "type": "object",
                  "properties": {
                    "code": {
                      "enum": [
                        "RATE_LIMIT_EXCEEDED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "retryAfterSeconds": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The server could not finish the request. If it was a payment, check its status before sending it again.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "503": {
            "description": "A provider service or the bank\u2019s settlement setup is unavailable. Keep the original reference and contact the bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "The server rejected the request before it could be completed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "recovaSecret": []
          }
        ]
      }
    },
    "/api/integrations/recova/v1/{institutionId}/MandateCreation": {
      "post": {
        "tags": [
          "Recuva Webhook"
        ],
        "summary": "Mandate Creation",
        "description": "Receive a Recova mandate or disbursement update for an existing loanReference. Use the institutionId in the URL and that bank\u0027s callback secret. Check the response for approval or processing errors.",
        "operationId": "RecuvaWebhook_MandateCreation_POST_api_integrations_recova_v1__institutionId__MandateCreation",
        "parameters": [
          {
            "name": "institutionId",
            "in": "path",
            "description": "Numeric bank ID supplied by the bank for this callback connection. Use that bank\u0027s callback secret.",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "request-reference",
            "in": "header",
            "description": "Unique correlation reference for this HTTP attempt. Echoed in the response. Does not prevent duplicate financial operations.",
            "style": "simple",
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaMandateCreationWebhookRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaMandateCreationWebhookRequest"
              }
            },
            "application/*\u002Bjson": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaMandateCreationWebhookRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The callback was received. Read status and message to confirm what was processed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request has invalid or missing fields, or the bank cannot accept it. Read the error message for details.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The callback secret is missing, incorrect or not configured. Use the bank\u2019s provider secret, not a bank-client access token.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "403": {
            "description": "These credentials do not allow access to this API.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "404": {
            "description": "The requested record was not found at your bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Wait for the number of seconds in Retry-After before trying again.",
            "headers": {
              "Retry-After": {
                "description": "Seconds before retry",
                "schema": {
                  "type": "integer"
                }
              },
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "code",
                    "message",
                    "retryAfterSeconds"
                  ],
                  "type": "object",
                  "properties": {
                    "code": {
                      "enum": [
                        "RATE_LIMIT_EXCEEDED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "retryAfterSeconds": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The server could not finish the request. If it was a payment, check its status before sending it again.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "503": {
            "description": "A provider service or the bank\u2019s settlement setup is unavailable. Keep the original reference and contact the bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with an existing record or its current status. Read the message before trying again.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "415": {
            "description": "The server rejected the request before it could be completed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "recovaSecret": []
          }
        ]
      }
    },
    "/api/integrations/recova/v1/{institutionId}/mandate-creation": {
      "post": {
        "tags": [
          "Recuva Webhook"
        ],
        "summary": "Mandate Creation",
        "description": "Receive a Recova mandate or disbursement update for an existing loanReference. Use the institutionId in the URL and that bank\u0027s callback secret. Check the response for approval or processing errors.",
        "operationId": "RecuvaWebhook_MandateCreation_POST_api_integrations_recova_v1__institutionId__mandate_creation",
        "parameters": [
          {
            "name": "institutionId",
            "in": "path",
            "description": "Numeric bank ID supplied by the bank for this callback connection. Use that bank\u0027s callback secret.",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "request-reference",
            "in": "header",
            "description": "Unique correlation reference for this HTTP attempt. Echoed in the response. Does not prevent duplicate financial operations.",
            "style": "simple",
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaMandateCreationWebhookRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaMandateCreationWebhookRequest"
              }
            },
            "application/*\u002Bjson": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaMandateCreationWebhookRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The callback was received. Read status and message to confirm what was processed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request has invalid or missing fields, or the bank cannot accept it. Read the error message for details.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The callback secret is missing, incorrect or not configured. Use the bank\u2019s provider secret, not a bank-client access token.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "403": {
            "description": "These credentials do not allow access to this API.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "404": {
            "description": "The requested record was not found at your bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Wait for the number of seconds in Retry-After before trying again.",
            "headers": {
              "Retry-After": {
                "description": "Seconds before retry",
                "schema": {
                  "type": "integer"
                }
              },
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "code",
                    "message",
                    "retryAfterSeconds"
                  ],
                  "type": "object",
                  "properties": {
                    "code": {
                      "enum": [
                        "RATE_LIMIT_EXCEEDED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "retryAfterSeconds": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The server could not finish the request. If it was a payment, check its status before sending it again.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "503": {
            "description": "A provider service or the bank\u2019s settlement setup is unavailable. Keep the original reference and contact the bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with an existing record or its current status. Read the message before trying again.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "415": {
            "description": "The server rejected the request before it could be completed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "recovaSecret": []
          }
        ]
      }
    },
    "/api/integrations/recova/v1/{institutionId}/DisbursementCallback": {
      "post": {
        "tags": [
          "Recuva Webhook"
        ],
        "summary": "Mandate Creation",
        "description": "Receive a Recova mandate or disbursement update for an existing loanReference. Use the institutionId in the URL and that bank\u0027s callback secret. Check the response for approval or processing errors.",
        "operationId": "RecuvaWebhook_MandateCreation_POST_api_integrations_recova_v1__institutionId__DisbursementCallback",
        "parameters": [
          {
            "name": "institutionId",
            "in": "path",
            "description": "Numeric bank ID supplied by the bank for this callback connection. Use that bank\u0027s callback secret.",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "request-reference",
            "in": "header",
            "description": "Unique correlation reference for this HTTP attempt. Echoed in the response. Does not prevent duplicate financial operations.",
            "style": "simple",
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaMandateCreationWebhookRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaMandateCreationWebhookRequest"
              }
            },
            "application/*\u002Bjson": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaMandateCreationWebhookRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The callback was received. Read status and message to confirm what was processed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request has invalid or missing fields, or the bank cannot accept it. Read the error message for details.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The callback secret is missing, incorrect or not configured. Use the bank\u2019s provider secret, not a bank-client access token.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "403": {
            "description": "These credentials do not allow access to this API.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "404": {
            "description": "The requested record was not found at your bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Wait for the number of seconds in Retry-After before trying again.",
            "headers": {
              "Retry-After": {
                "description": "Seconds before retry",
                "schema": {
                  "type": "integer"
                }
              },
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "code",
                    "message",
                    "retryAfterSeconds"
                  ],
                  "type": "object",
                  "properties": {
                    "code": {
                      "enum": [
                        "RATE_LIMIT_EXCEEDED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "retryAfterSeconds": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The server could not finish the request. If it was a payment, check its status before sending it again.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "503": {
            "description": "A provider service or the bank\u2019s settlement setup is unavailable. Keep the original reference and contact the bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with an existing record or its current status. Read the message before trying again.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "415": {
            "description": "The server rejected the request before it could be completed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "recovaSecret": []
          }
        ]
      }
    },
    "/api/integrations/recova/v1/{institutionId}/disbursement-callback": {
      "post": {
        "tags": [
          "Recuva Webhook"
        ],
        "summary": "Mandate Creation",
        "description": "Receive a Recova mandate or disbursement update for an existing loanReference. Use the institutionId in the URL and that bank\u0027s callback secret. Check the response for approval or processing errors.",
        "operationId": "RecuvaWebhook_MandateCreation_POST_api_integrations_recova_v1__institutionId__disbursement_callback",
        "parameters": [
          {
            "name": "institutionId",
            "in": "path",
            "description": "Numeric bank ID supplied by the bank for this callback connection. Use that bank\u0027s callback secret.",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "request-reference",
            "in": "header",
            "description": "Unique correlation reference for this HTTP attempt. Echoed in the response. Does not prevent duplicate financial operations.",
            "style": "simple",
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaMandateCreationWebhookRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaMandateCreationWebhookRequest"
              }
            },
            "application/*\u002Bjson": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaMandateCreationWebhookRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The callback was received. Read status and message to confirm what was processed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request has invalid or missing fields, or the bank cannot accept it. Read the error message for details.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The callback secret is missing, incorrect or not configured. Use the bank\u2019s provider secret, not a bank-client access token.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "403": {
            "description": "These credentials do not allow access to this API.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "404": {
            "description": "The requested record was not found at your bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Wait for the number of seconds in Retry-After before trying again.",
            "headers": {
              "Retry-After": {
                "description": "Seconds before retry",
                "schema": {
                  "type": "integer"
                }
              },
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "code",
                    "message",
                    "retryAfterSeconds"
                  ],
                  "type": "object",
                  "properties": {
                    "code": {
                      "enum": [
                        "RATE_LIMIT_EXCEEDED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "retryAfterSeconds": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The server could not finish the request. If it was a payment, check its status before sending it again.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "503": {
            "description": "A provider service or the bank\u2019s settlement setup is unavailable. Keep the original reference and contact the bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "409": {
            "description": "The request conflicts with an existing record or its current status. Read the message before trying again.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "415": {
            "description": "The server rejected the request before it could be completed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "recovaSecret": []
          }
        ]
      }
    },
    "/api/integrations/recova/v1/{institutionId}/LoanBalanceUpdate": {
      "post": {
        "tags": [
          "Recuva Webhook"
        ],
        "summary": "Loan Balance Update",
        "description": "Receive a Recova collection or balance update for an existing loanReference. Use the institutionId in the URL and that bank\u0027s callback secret. Check the response before marking the collection as recorded.",
        "operationId": "RecuvaWebhook_LoanBalanceUpdate_POST_api_integrations_recova_v1__institutionId__LoanBalanceUpdate",
        "parameters": [
          {
            "name": "institutionId",
            "in": "path",
            "description": "Numeric bank ID supplied by the bank for this callback connection. Use that bank\u0027s callback secret.",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "request-reference",
            "in": "header",
            "description": "Unique correlation reference for this HTTP attempt. Echoed in the response. Does not prevent duplicate financial operations.",
            "style": "simple",
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaLoanBalanceUpdateWebhookRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaLoanBalanceUpdateWebhookRequest"
              }
            },
            "application/*\u002Bjson": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaLoanBalanceUpdateWebhookRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The callback was received. Read status and message to confirm what was processed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request has invalid or missing fields, or the bank cannot accept it. Read the error message for details.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message",
                        "data"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "data": {
                          "required": [
                            "statusCode",
                            "amlHold"
                          ],
                          "type": "object",
                          "properties": {
                            "statusCode": {
                              "anyOf": [
                                {
                                  "enum": [
                                    "AML_HOLD"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "enum": [
                                    "AML_RELEASE_INVALID"
                                  ],
                                  "type": "string"
                                }
                              ]
                            },
                            "amlHold": {
                              "type": "boolean"
                            },
                            "approvalId": {
                              "type": "integer",
                              "format": "int64",
                              "nullable": true
                            },
                            "amlApprovalReference": {
                              "type": "string",
                              "nullable": true
                            },
                            "reason": {
                              "type": "string",
                              "nullable": true
                            }
                          },
                          "additionalProperties": false
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The callback secret is missing, incorrect or not configured. Use the bank\u2019s provider secret, not a bank-client access token.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "403": {
            "description": "These credentials do not allow access to this API.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "404": {
            "description": "The requested record was not found at your bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Wait for the number of seconds in Retry-After before trying again.",
            "headers": {
              "Retry-After": {
                "description": "Seconds before retry",
                "schema": {
                  "type": "integer"
                }
              },
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "code",
                    "message",
                    "retryAfterSeconds"
                  ],
                  "type": "object",
                  "properties": {
                    "code": {
                      "enum": [
                        "RATE_LIMIT_EXCEEDED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "retryAfterSeconds": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The server could not finish the request. If it was a payment, check its status before sending it again.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "409": {
            "description": "The request conflicts with an existing record or its current status. Read the message before trying again.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "503": {
            "description": "A provider service or the bank\u2019s settlement setup is unavailable. Keep the original reference and contact the bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "202": {
            "description": "The bank must review this request. Save the approval reference and wait for its decision.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message",
                    "data"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "required": [
                        "statusCode",
                        "amlHold"
                      ],
                      "type": "object",
                      "properties": {
                        "statusCode": {
                          "anyOf": [
                            {
                              "enum": [
                                "AML_HOLD"
                              ],
                              "type": "string"
                            },
                            {
                              "enum": [
                                "AML_RELEASE_INVALID"
                              ],
                              "type": "string"
                            }
                          ]
                        },
                        "amlHold": {
                          "type": "boolean"
                        },
                        "approvalId": {
                          "type": "integer",
                          "format": "int64",
                          "nullable": true
                        },
                        "amlApprovalReference": {
                          "type": "string",
                          "nullable": true
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        }
                      },
                      "additionalProperties": false
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "The server rejected the request before it could be completed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "recovaSecret": []
          }
        ]
      }
    },
    "/api/integrations/recova/v1/{institutionId}/loan-balance-update": {
      "post": {
        "tags": [
          "Recuva Webhook"
        ],
        "summary": "Loan Balance Update",
        "description": "Receive a Recova collection or balance update for an existing loanReference. Use the institutionId in the URL and that bank\u0027s callback secret. Check the response before marking the collection as recorded.",
        "operationId": "RecuvaWebhook_LoanBalanceUpdate_POST_api_integrations_recova_v1__institutionId__loan_balance_update",
        "parameters": [
          {
            "name": "institutionId",
            "in": "path",
            "description": "Numeric bank ID supplied by the bank for this callback connection. Use that bank\u0027s callback secret.",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "request-reference",
            "in": "header",
            "description": "Unique correlation reference for this HTTP attempt. Echoed in the response. Does not prevent duplicate financial operations.",
            "style": "simple",
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaLoanBalanceUpdateWebhookRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaLoanBalanceUpdateWebhookRequest"
              }
            },
            "application/*\u002Bjson": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaLoanBalanceUpdateWebhookRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The callback was received. Read status and message to confirm what was processed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request has invalid or missing fields, or the bank cannot accept it. Read the error message for details.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message",
                        "data"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "data": {
                          "required": [
                            "statusCode",
                            "amlHold"
                          ],
                          "type": "object",
                          "properties": {
                            "statusCode": {
                              "anyOf": [
                                {
                                  "enum": [
                                    "AML_HOLD"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "enum": [
                                    "AML_RELEASE_INVALID"
                                  ],
                                  "type": "string"
                                }
                              ]
                            },
                            "amlHold": {
                              "type": "boolean"
                            },
                            "approvalId": {
                              "type": "integer",
                              "format": "int64",
                              "nullable": true
                            },
                            "amlApprovalReference": {
                              "type": "string",
                              "nullable": true
                            },
                            "reason": {
                              "type": "string",
                              "nullable": true
                            }
                          },
                          "additionalProperties": false
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The callback secret is missing, incorrect or not configured. Use the bank\u2019s provider secret, not a bank-client access token.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "403": {
            "description": "These credentials do not allow access to this API.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "404": {
            "description": "The requested record was not found at your bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Wait for the number of seconds in Retry-After before trying again.",
            "headers": {
              "Retry-After": {
                "description": "Seconds before retry",
                "schema": {
                  "type": "integer"
                }
              },
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "code",
                    "message",
                    "retryAfterSeconds"
                  ],
                  "type": "object",
                  "properties": {
                    "code": {
                      "enum": [
                        "RATE_LIMIT_EXCEEDED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "retryAfterSeconds": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The server could not finish the request. If it was a payment, check its status before sending it again.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "409": {
            "description": "The request conflicts with an existing record or its current status. Read the message before trying again.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "503": {
            "description": "A provider service or the bank\u2019s settlement setup is unavailable. Keep the original reference and contact the bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "202": {
            "description": "The bank must review this request. Save the approval reference and wait for its decision.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message",
                    "data"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "required": [
                        "statusCode",
                        "amlHold"
                      ],
                      "type": "object",
                      "properties": {
                        "statusCode": {
                          "anyOf": [
                            {
                              "enum": [
                                "AML_HOLD"
                              ],
                              "type": "string"
                            },
                            {
                              "enum": [
                                "AML_RELEASE_INVALID"
                              ],
                              "type": "string"
                            }
                          ]
                        },
                        "amlHold": {
                          "type": "boolean"
                        },
                        "approvalId": {
                          "type": "integer",
                          "format": "int64",
                          "nullable": true
                        },
                        "amlApprovalReference": {
                          "type": "string",
                          "nullable": true
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        }
                      },
                      "additionalProperties": false
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "The server rejected the request before it could be completed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "recovaSecret": []
          }
        ]
      }
    },
    "/api/integrations/recova/v1/{institutionId}/CollectionUpdate": {
      "post": {
        "tags": [
          "Recuva Webhook"
        ],
        "summary": "Loan Balance Update",
        "description": "Receive a Recova collection or balance update for an existing loanReference. Use the institutionId in the URL and that bank\u0027s callback secret. Check the response before marking the collection as recorded.",
        "operationId": "RecuvaWebhook_LoanBalanceUpdate_POST_api_integrations_recova_v1__institutionId__CollectionUpdate",
        "parameters": [
          {
            "name": "institutionId",
            "in": "path",
            "description": "Numeric bank ID supplied by the bank for this callback connection. Use that bank\u0027s callback secret.",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "request-reference",
            "in": "header",
            "description": "Unique correlation reference for this HTTP attempt. Echoed in the response. Does not prevent duplicate financial operations.",
            "style": "simple",
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaLoanBalanceUpdateWebhookRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaLoanBalanceUpdateWebhookRequest"
              }
            },
            "application/*\u002Bjson": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaLoanBalanceUpdateWebhookRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The callback was received. Read status and message to confirm what was processed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request has invalid or missing fields, or the bank cannot accept it. Read the error message for details.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message",
                        "data"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "data": {
                          "required": [
                            "statusCode",
                            "amlHold"
                          ],
                          "type": "object",
                          "properties": {
                            "statusCode": {
                              "anyOf": [
                                {
                                  "enum": [
                                    "AML_HOLD"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "enum": [
                                    "AML_RELEASE_INVALID"
                                  ],
                                  "type": "string"
                                }
                              ]
                            },
                            "amlHold": {
                              "type": "boolean"
                            },
                            "approvalId": {
                              "type": "integer",
                              "format": "int64",
                              "nullable": true
                            },
                            "amlApprovalReference": {
                              "type": "string",
                              "nullable": true
                            },
                            "reason": {
                              "type": "string",
                              "nullable": true
                            }
                          },
                          "additionalProperties": false
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The callback secret is missing, incorrect or not configured. Use the bank\u2019s provider secret, not a bank-client access token.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "403": {
            "description": "These credentials do not allow access to this API.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "404": {
            "description": "The requested record was not found at your bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Wait for the number of seconds in Retry-After before trying again.",
            "headers": {
              "Retry-After": {
                "description": "Seconds before retry",
                "schema": {
                  "type": "integer"
                }
              },
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "code",
                    "message",
                    "retryAfterSeconds"
                  ],
                  "type": "object",
                  "properties": {
                    "code": {
                      "enum": [
                        "RATE_LIMIT_EXCEEDED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "retryAfterSeconds": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The server could not finish the request. If it was a payment, check its status before sending it again.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "409": {
            "description": "The request conflicts with an existing record or its current status. Read the message before trying again.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "503": {
            "description": "A provider service or the bank\u2019s settlement setup is unavailable. Keep the original reference and contact the bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "202": {
            "description": "The bank must review this request. Save the approval reference and wait for its decision.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message",
                    "data"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "required": [
                        "statusCode",
                        "amlHold"
                      ],
                      "type": "object",
                      "properties": {
                        "statusCode": {
                          "anyOf": [
                            {
                              "enum": [
                                "AML_HOLD"
                              ],
                              "type": "string"
                            },
                            {
                              "enum": [
                                "AML_RELEASE_INVALID"
                              ],
                              "type": "string"
                            }
                          ]
                        },
                        "amlHold": {
                          "type": "boolean"
                        },
                        "approvalId": {
                          "type": "integer",
                          "format": "int64",
                          "nullable": true
                        },
                        "amlApprovalReference": {
                          "type": "string",
                          "nullable": true
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        }
                      },
                      "additionalProperties": false
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "The server rejected the request before it could be completed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "recovaSecret": []
          }
        ]
      }
    },
    "/api/integrations/recova/v1/{institutionId}/collection-update": {
      "post": {
        "tags": [
          "Recuva Webhook"
        ],
        "summary": "Loan Balance Update",
        "description": "Receive a Recova collection or balance update for an existing loanReference. Use the institutionId in the URL and that bank\u0027s callback secret. Check the response before marking the collection as recorded.",
        "operationId": "RecuvaWebhook_LoanBalanceUpdate_POST_api_integrations_recova_v1__institutionId__collection_update",
        "parameters": [
          {
            "name": "institutionId",
            "in": "path",
            "description": "Numeric bank ID supplied by the bank for this callback connection. Use that bank\u0027s callback secret.",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "request-reference",
            "in": "header",
            "description": "Unique correlation reference for this HTTP attempt. Echoed in the response. Does not prevent duplicate financial operations.",
            "style": "simple",
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaLoanBalanceUpdateWebhookRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaLoanBalanceUpdateWebhookRequest"
              }
            },
            "application/*\u002Bjson": {
              "schema": {
                "$ref": "#/components/schemas/RecuvaLoanBalanceUpdateWebhookRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The callback was received. Read status and message to confirm what was processed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            true
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request has invalid or missing fields, or the bank cannot accept it. Read the error message for details.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message",
                        "data"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "data": {
                          "required": [
                            "statusCode",
                            "amlHold"
                          ],
                          "type": "object",
                          "properties": {
                            "statusCode": {
                              "anyOf": [
                                {
                                  "enum": [
                                    "AML_HOLD"
                                  ],
                                  "type": "string"
                                },
                                {
                                  "enum": [
                                    "AML_RELEASE_INVALID"
                                  ],
                                  "type": "string"
                                }
                              ]
                            },
                            "amlHold": {
                              "type": "boolean"
                            },
                            "approvalId": {
                              "type": "integer",
                              "format": "int64",
                              "nullable": true
                            },
                            "amlApprovalReference": {
                              "type": "string",
                              "nullable": true
                            },
                            "reason": {
                              "type": "string",
                              "nullable": true
                            }
                          },
                          "additionalProperties": false
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The callback secret is missing, incorrect or not configured. Use the bank\u2019s provider secret, not a bank-client access token.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "403": {
            "description": "These credentials do not allow access to this API.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "404": {
            "description": "The requested record was not found at your bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Wait for the number of seconds in Retry-After before trying again.",
            "headers": {
              "Retry-After": {
                "description": "Seconds before retry",
                "schema": {
                  "type": "integer"
                }
              },
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "code",
                    "message",
                    "retryAfterSeconds"
                  ],
                  "type": "object",
                  "properties": {
                    "code": {
                      "enum": [
                        "RATE_LIMIT_EXCEEDED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "retryAfterSeconds": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The server could not finish the request. If it was a payment, check its status before sending it again.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "409": {
            "description": "The request conflicts with an existing record or its current status. Read the message before trying again.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "503": {
            "description": "A provider service or the bank\u2019s settlement setup is unavailable. Keep the original reference and contact the bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "202": {
            "description": "The bank must review this request. Save the approval reference and wait for its decision.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message",
                    "data"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "required": [
                        "statusCode",
                        "amlHold"
                      ],
                      "type": "object",
                      "properties": {
                        "statusCode": {
                          "anyOf": [
                            {
                              "enum": [
                                "AML_HOLD"
                              ],
                              "type": "string"
                            },
                            {
                              "enum": [
                                "AML_RELEASE_INVALID"
                              ],
                              "type": "string"
                            }
                          ]
                        },
                        "amlHold": {
                          "type": "boolean"
                        },
                        "approvalId": {
                          "type": "integer",
                          "format": "int64",
                          "nullable": true
                        },
                        "amlApprovalReference": {
                          "type": "string",
                          "nullable": true
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        }
                      },
                      "additionalProperties": false
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "415": {
            "description": "The server rejected the request before it could be completed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "recovaSecret": []
          }
        ]
      }
    },
    "/api/integrations/recova/v1/{institutionId}/LoanDueAmount/{loanReference}": {
      "get": {
        "tags": [
          "Recuva Webhook"
        ],
        "summary": "Loan Due Amount",
        "description": "Get the principal, interest, penalties, default charges and fees due through the bank\u0027s financial date. Supply loanReference in the path or query and authenticate with the bank\u0027s Recova callback secret.",
        "operationId": "RecuvaWebhook_LoanDueAmount_GET_api_integrations_recova_v1__institutionId__LoanDueAmount__loanReference_",
        "parameters": [
          {
            "name": "institutionId",
            "in": "path",
            "description": "Numeric bank ID supplied by the bank for this callback connection. Use that bank\u0027s callback secret.",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "loanReference",
            "in": "path",
            "description": "Original loan reference of an existing loan at the bank identified by institutionId.",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "string"
            },
            "example": "LOAN-001"
          },
          {
            "name": "loanReference",
            "in": "query",
            "description": "Original loan reference. Required on a query-only URL unless queryLoanReference is supplied. Omit when the URL already contains the loan reference.",
            "style": "form",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "queryLoanReference",
            "in": "query",
            "description": "Legacy alias of loanReference. Prefer loanReference and send only one spelling.",
            "style": "form",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "request-reference",
            "in": "header",
            "description": "Unique correlation reference for this HTTP attempt. Echoed in the response. Does not prevent duplicate financial operations.",
            "style": "simple",
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The callback was received. Read status and message to confirm what was processed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message",
                    "data"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        true
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "required": [
                        "loanReference",
                        "amountDue"
                      ],
                      "type": "object",
                      "properties": {
                        "loanReference": {
                          "type": "string"
                        },
                        "amountDue": {
                          "type": "number",
                          "format": "double"
                        }
                      },
                      "additionalProperties": false
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The request has invalid or missing fields, or the bank cannot accept it. Read the error message for details.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The callback secret is missing, incorrect or not configured. Use the bank\u2019s provider secret, not a bank-client access token.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "403": {
            "description": "These credentials do not allow access to this API.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "404": {
            "description": "The requested record was not found at your bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Wait for the number of seconds in Retry-After before trying again.",
            "headers": {
              "Retry-After": {
                "description": "Seconds before retry",
                "schema": {
                  "type": "integer"
                }
              },
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "code",
                    "message",
                    "retryAfterSeconds"
                  ],
                  "type": "object",
                  "properties": {
                    "code": {
                      "enum": [
                        "RATE_LIMIT_EXCEEDED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "retryAfterSeconds": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The server could not finish the request. If it was a payment, check its status before sending it again.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "415": {
            "description": "The server rejected the request before it could be completed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "recovaSecret": []
          }
        ]
      }
    },
    "/api/integrations/recova/v1/{institutionId}/LoanDue/{loanReference}": {
      "get": {
        "tags": [
          "Recuva Webhook"
        ],
        "summary": "Loan Due Amount",
        "description": "Get the principal, interest, penalties, default charges and fees due through the bank\u0027s financial date. Supply loanReference in the path or query and authenticate with the bank\u0027s Recova callback secret.",
        "operationId": "RecuvaWebhook_LoanDueAmount_GET_api_integrations_recova_v1__institutionId__LoanDue__loanReference_",
        "parameters": [
          {
            "name": "institutionId",
            "in": "path",
            "description": "Numeric bank ID supplied by the bank for this callback connection. Use that bank\u0027s callback secret.",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "loanReference",
            "in": "path",
            "description": "Original loan reference of an existing loan at the bank identified by institutionId.",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "string"
            },
            "example": "LOAN-001"
          },
          {
            "name": "loanReference",
            "in": "query",
            "description": "Original loan reference. Required on a query-only URL unless queryLoanReference is supplied. Omit when the URL already contains the loan reference.",
            "style": "form",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "queryLoanReference",
            "in": "query",
            "description": "Legacy alias of loanReference. Prefer loanReference and send only one spelling.",
            "style": "form",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "request-reference",
            "in": "header",
            "description": "Unique correlation reference for this HTTP attempt. Echoed in the response. Does not prevent duplicate financial operations.",
            "style": "simple",
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The callback was received. Read status and message to confirm what was processed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message",
                    "data"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        true
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "required": [
                        "loanReference",
                        "amountDue"
                      ],
                      "type": "object",
                      "properties": {
                        "loanReference": {
                          "type": "string"
                        },
                        "amountDue": {
                          "type": "number",
                          "format": "double"
                        }
                      },
                      "additionalProperties": false
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The request has invalid or missing fields, or the bank cannot accept it. Read the error message for details.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The callback secret is missing, incorrect or not configured. Use the bank\u2019s provider secret, not a bank-client access token.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "403": {
            "description": "These credentials do not allow access to this API.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "404": {
            "description": "The requested record was not found at your bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Wait for the number of seconds in Retry-After before trying again.",
            "headers": {
              "Retry-After": {
                "description": "Seconds before retry",
                "schema": {
                  "type": "integer"
                }
              },
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "code",
                    "message",
                    "retryAfterSeconds"
                  ],
                  "type": "object",
                  "properties": {
                    "code": {
                      "enum": [
                        "RATE_LIMIT_EXCEEDED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "retryAfterSeconds": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The server could not finish the request. If it was a payment, check its status before sending it again.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "415": {
            "description": "The server rejected the request before it could be completed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "recovaSecret": []
          }
        ]
      }
    },
    "/api/integrations/recova/v1/{institutionId}/LoanDueAmount": {
      "get": {
        "tags": [
          "Recuva Webhook"
        ],
        "summary": "Loan Due Amount",
        "description": "Get the principal, interest, penalties, default charges and fees due through the bank\u0027s financial date. Supply loanReference in the path or query and authenticate with the bank\u0027s Recova callback secret.",
        "operationId": "RecuvaWebhook_LoanDueAmount_GET_api_integrations_recova_v1__institutionId__LoanDueAmount",
        "parameters": [
          {
            "name": "institutionId",
            "in": "path",
            "description": "Numeric bank ID supplied by the bank for this callback connection. Use that bank\u0027s callback secret.",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "loanReference",
            "in": "query",
            "description": "Original loan reference. Required on a query-only URL unless queryLoanReference is supplied. Omit when the URL already contains the loan reference.",
            "style": "form",
            "schema": {
              "type": "string"
            },
            "example": "LOAN-001"
          },
          {
            "name": "queryLoanReference",
            "in": "query",
            "description": "Legacy alias of loanReference. Prefer loanReference and send only one spelling.",
            "style": "form",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "request-reference",
            "in": "header",
            "description": "Unique correlation reference for this HTTP attempt. Echoed in the response. Does not prevent duplicate financial operations.",
            "style": "simple",
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The callback was received. Read status and message to confirm what was processed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message",
                    "data"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        true
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "required": [
                        "loanReference",
                        "amountDue"
                      ],
                      "type": "object",
                      "properties": {
                        "loanReference": {
                          "type": "string"
                        },
                        "amountDue": {
                          "type": "number",
                          "format": "double"
                        }
                      },
                      "additionalProperties": false
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The request has invalid or missing fields, or the bank cannot accept it. Read the error message for details.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The callback secret is missing, incorrect or not configured. Use the bank\u2019s provider secret, not a bank-client access token.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "403": {
            "description": "These credentials do not allow access to this API.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "404": {
            "description": "The requested record was not found at your bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Wait for the number of seconds in Retry-After before trying again.",
            "headers": {
              "Retry-After": {
                "description": "Seconds before retry",
                "schema": {
                  "type": "integer"
                }
              },
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "code",
                    "message",
                    "retryAfterSeconds"
                  ],
                  "type": "object",
                  "properties": {
                    "code": {
                      "enum": [
                        "RATE_LIMIT_EXCEEDED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "retryAfterSeconds": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The server could not finish the request. If it was a payment, check its status before sending it again.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "415": {
            "description": "The server rejected the request before it could be completed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "recovaSecret": []
          }
        ]
      }
    },
    "/api/integrations/recova/v1/{institutionId}/loan-due": {
      "get": {
        "tags": [
          "Recuva Webhook"
        ],
        "summary": "Loan Due Amount",
        "description": "Get the principal, interest, penalties, default charges and fees due through the bank\u0027s financial date. Supply loanReference in the path or query and authenticate with the bank\u0027s Recova callback secret.",
        "operationId": "RecuvaWebhook_LoanDueAmount_GET_api_integrations_recova_v1__institutionId__loan_due",
        "parameters": [
          {
            "name": "institutionId",
            "in": "path",
            "description": "Numeric bank ID supplied by the bank for this callback connection. Use that bank\u0027s callback secret.",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "loanReference",
            "in": "query",
            "description": "Original loan reference. Required on a query-only URL unless queryLoanReference is supplied. Omit when the URL already contains the loan reference.",
            "style": "form",
            "schema": {
              "type": "string"
            },
            "example": "LOAN-001"
          },
          {
            "name": "queryLoanReference",
            "in": "query",
            "description": "Legacy alias of loanReference. Prefer loanReference and send only one spelling.",
            "style": "form",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "request-reference",
            "in": "header",
            "description": "Unique correlation reference for this HTTP attempt. Echoed in the response. Does not prevent duplicate financial operations.",
            "style": "simple",
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The callback was received. Read status and message to confirm what was processed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message",
                    "data"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        true
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "required": [
                        "loanReference",
                        "amountDue"
                      ],
                      "type": "object",
                      "properties": {
                        "loanReference": {
                          "type": "string"
                        },
                        "amountDue": {
                          "type": "number",
                          "format": "double"
                        }
                      },
                      "additionalProperties": false
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The request has invalid or missing fields, or the bank cannot accept it. Read the error message for details.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The callback secret is missing, incorrect or not configured. Use the bank\u2019s provider secret, not a bank-client access token.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "403": {
            "description": "These credentials do not allow access to this API.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "404": {
            "description": "The requested record was not found at your bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Wait for the number of seconds in Retry-After before trying again.",
            "headers": {
              "Retry-After": {
                "description": "Seconds before retry",
                "schema": {
                  "type": "integer"
                }
              },
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "code",
                    "message",
                    "retryAfterSeconds"
                  ],
                  "type": "object",
                  "properties": {
                    "code": {
                      "enum": [
                        "RATE_LIMIT_EXCEEDED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "retryAfterSeconds": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The server could not finish the request. If it was a payment, check its status before sending it again.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "415": {
            "description": "The server rejected the request before it could be completed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "recovaSecret": []
          }
        ]
      }
    },
    "/api/integrations/recova/v1/{institutionId}/loan-due-amount": {
      "get": {
        "tags": [
          "Recuva Webhook"
        ],
        "summary": "Loan Due Amount",
        "description": "Get the principal, interest, penalties, default charges and fees due through the bank\u0027s financial date. Supply loanReference in the path or query and authenticate with the bank\u0027s Recova callback secret.",
        "operationId": "RecuvaWebhook_LoanDueAmount_GET_api_integrations_recova_v1__institutionId__loan_due_amount",
        "parameters": [
          {
            "name": "institutionId",
            "in": "path",
            "description": "Numeric bank ID supplied by the bank for this callback connection. Use that bank\u0027s callback secret.",
            "required": true,
            "style": "simple",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "loanReference",
            "in": "query",
            "description": "Original loan reference. Required on a query-only URL unless queryLoanReference is supplied. Omit when the URL already contains the loan reference.",
            "style": "form",
            "schema": {
              "type": "string"
            },
            "example": "LOAN-001"
          },
          {
            "name": "queryLoanReference",
            "in": "query",
            "description": "Legacy alias of loanReference. Prefer loanReference and send only one spelling.",
            "style": "form",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "request-reference",
            "in": "header",
            "description": "Unique correlation reference for this HTTP attempt. Echoed in the response. Does not prevent duplicate financial operations.",
            "style": "simple",
            "schema": {
              "maxLength": 100,
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The callback was received. Read status and message to confirm what was processed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message",
                    "data"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        true
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "data": {
                      "required": [
                        "loanReference",
                        "amountDue"
                      ],
                      "type": "object",
                      "properties": {
                        "loanReference": {
                          "type": "string"
                        },
                        "amountDue": {
                          "type": "number",
                          "format": "double"
                        }
                      },
                      "additionalProperties": false
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "The request has invalid or missing fields, or the bank cannot accept it. Read the error message for details.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "The callback secret is missing, incorrect or not configured. Use the bank\u2019s provider secret, not a bank-client access token.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string",
                          "nullable": true
                        },
                        "nextStep": {
                          "type": "string",
                          "nullable": true
                        },
                        "summary": {
                          "type": "object"
                        },
                        "errors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    {
                      "required": [
                        "status",
                        "message"
                      ],
                      "type": "object",
                      "properties": {
                        "status": {
                          "enum": [
                            false
                          ],
                          "type": "boolean"
                        },
                        "message": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  ]
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "403": {
            "description": "These credentials do not allow access to this API.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "404": {
            "description": "The requested record was not found at your bank.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "status",
                    "message"
                  ],
                  "type": "object",
                  "properties": {
                    "status": {
                      "enum": [
                        false
                      ],
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "reason": {
                      "type": "string",
                      "nullable": true
                    },
                    "nextStep": {
                      "type": "string",
                      "nullable": true
                    },
                    "summary": {
                      "type": "object"
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              }
            }
          },
          "429": {
            "description": "Too many requests. Wait for the number of seconds in Retry-After before trying again.",
            "headers": {
              "Retry-After": {
                "description": "Seconds before retry",
                "schema": {
                  "type": "integer"
                }
              },
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "code",
                    "message",
                    "retryAfterSeconds"
                  ],
                  "type": "object",
                  "properties": {
                    "code": {
                      "enum": [
                        "RATE_LIMIT_EXCEEDED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    },
                    "retryAfterSeconds": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "The server could not finish the request. If it was a payment, check its status before sending it again.. The response body may be empty. Check the HTTP status before parsing JSON.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              }
            },
            "x-empty-body-allowed": true
          },
          "415": {
            "description": "The server rejected the request before it could be completed.",
            "headers": {
              "request-reference": {
                "description": "Correlation reference for this attempt",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean"
                    },
                    "message": {
                      "type": "string"
                    },
                    "code": {
                      "type": "string"
                    }
                  }
                }
              },
              "application/problem\u002Bjson": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "status": {
                      "type": "integer"
                    },
                    "traceId": {
                      "type": "string"
                    },
                    "errors": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "recovaSecret": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "CardWebhookRequest": {
        "required": [
          "payload"
        ],
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "nullable": true
          },
          "eventType": {
            "type": "string",
            "nullable": true
          },
          "sourceTraceId": {
            "type": "string",
            "nullable": true
          },
          "headers": {
            "type": "object",
            "description": "Optional provider context; omit unless required by the bank\u0027s callback mapping."
          },
          "query": {
            "type": "object",
            "description": "Optional provider context; omit unless required by the bank\u0027s callback mapping."
          },
          "payload": {
            "type": "object",
            "description": "Provider event fields. See the callback guide for required transaction and lifecycle fields."
          },
          "amlApprovalReference": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "example": {
          "eventType": "transaction_feedback",
          "payload": {
            "institutionId": 1,
            "accountNumber": "0123456789",
            "transactionReference": "example-card-payment-001",
            "amount": 100,
            "responseCode": "00"
          }
        }
      },
      "RecuvaLoanBalanceUpdateWebhookRequest": {
        "required": [
          "loanReference",
          "transactionReference"
        ],
        "type": "object",
        "anyOf": [
          {
            "required": [
              "settlementAmount"
            ],
            "properties": {
              "settlementAmount": {
                "minimum": 0,
                "type": "number",
                "not": {
                  "enum": [
                    0
                  ]
                }
              }
            }
          },
          {
            "required": [
              "debitedAmount"
            ],
            "properties": {
              "debitedAmount": {
                "minimum": 0,
                "type": "number",
                "not": {
                  "enum": [
                    0
                  ]
                }
              }
            }
          }
        ],
        "properties": {
          "loanReference": {
            "minLength": 1,
            "pattern": "\\S",
            "type": "string",
            "description": "Original reference of an existing loan at the bank selected by institutionId."
          },
          "debitedAmount": {
            "multipleOf": 0.01,
            "minimum": 0,
            "type": "number",
            "format": "double"
          },
          "recoveryFee": {
            "multipleOf": 0.01,
            "minimum": 0,
            "type": "number",
            "format": "double"
          },
          "settlementAmount": {
            "multipleOf": 0.01,
            "minimum": 0,
            "type": "number",
            "format": "double"
          },
          "transactionReference": {
            "maxLength": 100,
            "minLength": 1,
            "pattern": "\\S",
            "type": "string"
          },
          "narration": {
            "type": "string",
            "nullable": true
          },
          "institutionCode": {
            "type": "string",
            "nullable": true
          },
          "amlApprovalReference": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "A collection requires the original loan reference and a stable transactionReference, unique to that collection and unchanged on retries. Changed replays return 409. Funding, repayment and completion commit together. New collections require an open, ready business date and cannot exceed the due balance.",
        "example": {
          "loanReference": "LOAN-001",
          "transactionReference": "example-collection-001",
          "debitedAmount": 100,
          "settlementAmount": 100,
          "recoveryFee": 0,
          "narration": "Example loan collection"
        }
      },
      "RecuvaMandateCreationWebhookRequest": {
        "required": [
          "loanReference"
        ],
        "type": "object",
        "properties": {
          "loanReference": {
            "minLength": 1,
            "pattern": "\\S",
            "type": "string",
            "description": "Original reference of an existing loan at the bank selected by institutionId."
          },
          "institutionCode": {
            "type": "string",
            "nullable": true
          },
          "transaction_reference": {
            "type": "string",
            "nullable": true
          },
          "transactionReference": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Send the original loan reference and a stable transactionReference for each provider event. The API accepts an omitted transactionReference by using loanReference instead, which can treat later events on the same loan as duplicates. Always supply a distinct transactionReference for each new event and preserve it on retries.",
        "example": {
          "loanReference": "LOAN-001",
          "transactionReference": "example-mandate-001"
        }
      },
      "RecuvaSmsAlertWebhookRequest": {
        "type": "object",
        "allOf": [
          {
            "anyOf": [
              {
                "required": [
                  "phoneNumber"
                ],
                "properties": {
                  "phoneNumber": {
                    "minLength": 1,
                    "pattern": "\\S",
                    "type": "string"
                  }
                }
              },
              {
                "required": [
                  "phone"
                ],
                "properties": {
                  "phone": {
                    "minLength": 1,
                    "pattern": "\\S",
                    "type": "string"
                  }
                }
              }
            ]
          },
          {
            "anyOf": [
              {
                "required": [
                  "message"
                ],
                "properties": {
                  "message": {
                    "minLength": 1,
                    "pattern": "\\S",
                    "type": "string"
                  }
                }
              },
              {
                "required": [
                  "smsContent"
                ],
                "properties": {
                  "smsContent": {
                    "minLength": 1,
                    "pattern": "\\S",
                    "type": "string"
                  }
                }
              },
              {
                "required": [
                  "messageText"
                ],
                "properties": {
                  "messageText": {
                    "minLength": 1,
                    "pattern": "\\S",
                    "type": "string"
                  }
                }
              }
            ]
          }
        ],
        "properties": {
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "smsContent": {
            "type": "string",
            "nullable": true
          },
          "messageText": {
            "type": "string",
            "nullable": true
          },
          "institutionCode": {
            "type": "string",
            "nullable": true
          },
          "loanReference": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Supply a nonempty phoneNumber and message. Legacy phone, smsContent and messageText aliases are accepted. Use one spelling per value; a supplied canonical field takes precedence over its aliases.",
        "example": {
          "phoneNumber": "08012345678",
          "message": "Your repayment is due."
        }
      }
    },
    "securitySchemes": {
      "cardGatewayKey": {
        "type": "apiKey",
        "description": "Callback secret supplied by the bank",
        "name": "X-API-KEY",
        "in": "header"
      },
      "recovaSecret": {
        "type": "http",
        "description": "Callback bearer secret supplied by the bank. Use the callback credential for this endpoint.",
        "scheme": "bearer"
      }
    }
  }
}
