{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/citi/json-schema/citi-session-create-request-schema.json",
  "title": "Create Session Request",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/citi-sessions-api-openapi.yml#/components/schemas/Session-Create-Request",
  "type": "object",
  "required": [
    "id"
  ],
  "properties": {
    "id": {
      "description": "Request Id",
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "title": "id"
    },
    "session": {
      "$ref": "#/$defs/Session"
    }
  },
  "$defs": {
    "Session": {
      "title": "Session",
      "type": "object",
      "properties": {
        "authentication_limit": {
          "description": "The number of operations which may be submitted to the gateway using this session id as a password.This field applies when you write a browser or mobile app that issues operations to the gateway from the device, using the session id as a password.In that case, a payer (or a compromised browser), could issue a large number of requests to the gateway on your behalf, and you could incur unnecessary fees as a result.This field lets you limit your exposure to that risk. The value defaulted by the gateway is suitable for typical payments. There is an upper limit (your operation will be rejected if that limit is exceeded).",
          "type": "string",
          "pattern": "^(?:[1-9]|1[0-9]|2[0-5])$",
          "title": "authentication_limit"
        },
        "validity": {
          "description": "Time till which session id can be used within the authentication limit in minutes(min: 1 minute; max: 25 minutes)",
          "type": "string",
          "pattern": "^(?:[1-9]|1[0-9]|2[0-5])$",
          "title": "validity"
        }
      }
    }
  }
}