{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lemonway/json-schema/lemonway-account-ibans-output-schema.json",
  "title": "AccountIbansOutput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lemonway-moneyouts-api-openapi.yml#/components/schemas/AccountIbansOutput",
  "type": "object",
  "properties": {
    "ibans": {
      "description": "List of documents that changed since the entry date.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Iban"
      }
    },
    "error": {
      "$ref": "#/$defs/Error"
    }
  },
  "$defs": {
    "Error": {
      "type": "object",
      "properties": {
        "code": {
          "format": "int32",
          "type": "integer"
        },
        "message": {
          "type": "string"
        },
        "psp": {
          "$ref": "#/$defs/PSP"
        }
      }
    },
    "Iban": {
      "type": "object",
      "properties": {
        "id": {
          "format": "int64",
          "description": "IBAN ID",
          "type": "integer"
        },
        "status": {
          "format": "int32",
          "description": "Only status 5 allows the use of the IBAN for a Money-Out.<br/>1 = None.<br/>2 = Internal.<br/>3 = Not used.<br/>4 = Waiting to be verified by Lemon Way.<br/>5 = Activated.<br/>6 = Rejected by the bank.<br/>7 = Rejected, no owner.<br/>8 = Deactivated.<br/>9 = Rejected.<br/>",
          "enum": [
            1,
            2,
            3,
            4,
            5,
            6,
            7,
            8,
            9
          ],
          "type": "integer"
        },
        "iban": {
          "description": "IBAN saved",
          "type": "string"
        },
        "swift": {
          "description": "SWIFT BIC code associated with the IBAN",
          "type": "string"
        },
        "holder": {
          "description": "IBAN Holder",
          "type": "string"
        },
        "type": {
          "format": "int32",
          "description": "Indicates if a merchant IBAN or a virtual client IBAN\n1: Merchant IBAN\n2: IBAN virtual client",
          "type": "integer"
        }
      }
    },
    "PSP": {
      "type": "object",
      "properties": {
        "message": {
          "description": "Get the Error Message from PSP",
          "type": "string"
        }
      }
    }
  }
}