{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lemonway/json-schema/lemonway-account-mandats-output-schema.json",
  "title": "AccountMandatsOutput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lemonway-moneyins-direct-debits-api-openapi.yml#/components/schemas/AccountMandatsOutput",
  "type": "object",
  "properties": {
    "mandates": {
      "description": "List of documents that changed since the entry date.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/SddMandate"
      }
    },
    "error": {
      "$ref": "#/$defs/Error"
    }
  },
  "$defs": {
    "Error": {
      "type": "object",
      "properties": {
        "code": {
          "format": "int32",
          "type": "integer"
        },
        "message": {
          "type": "string"
        },
        "psp": {
          "$ref": "#/$defs/PSP"
        }
      }
    },
    "PSP": {
      "type": "object",
      "properties": {
        "message": {
          "description": "Get the Error Message from PSP",
          "type": "string"
        }
      }
    },
    "SddMandate": {
      "type": "object",
      "properties": {
        "id": {
          "format": "int64",
          "description": "Mandate ID",
          "type": "integer"
        },
        "status": {
          "format": "int32",
          "description": "Mandate Status<br/>0 = Pending validation.<br/>5 = Validated, First SDD to be done.<br/>6 = Enabled.<br/>8 = Disabled.<br/>9 = Rejected.<br/>",
          "enum": [
            0,
            5,
            6,
            8,
            9
          ],
          "type": "integer"
        },
        "IBAN": {
          "description": "IBAN associated to the mandate",
          "type": "string"
        },
        "BIC": {
          "description": "SWIFT code associated to the mandate",
          "type": "string"
        },
        "holder": {
          "description": "IBAN Holder",
          "type": "string"
        },
        "UniqueMandateReference": {
          "description": "Unique mandate reference",
          "type": "string"
        }
      }
    }
  }
}