{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gocardlessyc11/json-schema/gocardlessyc11-post-api-v2-agreements-enduser-request-request-schema.json",
  "title": "PostApiV2AgreementsEnduserRequestRequest",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/gocardlessyc11-bank-account-data-openapi-generated.yml#/components/schemas/PostApiV2AgreementsEnduserRequestRequest",
  "type": "object",
  "properties": {
    "institution_id": {
      "type": "string",
      "description": "an Institution ID for this EUA"
    },
    "max_historical_days": {
      "type": "integer",
      "description": "Maximum number of days of transaction data to retrieve."
    },
    "access_valid_for_days": {
      "type": "integer",
      "description": "Number of days from acceptance that the access can be used."
    },
    "access_scope": {
      "type": "array",
      "description": "Array containing one or several values of ['balances', 'details', 'transactions']"
    },
    "reconfirmation": {
      "type": "boolean",
      "description": "if this agreement can be extended. Supported by GB banks only."
    }
  },
  "required": [
    "institution_id"
  ]
}