{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/citi/json-schema/citi-statement-initiation-request-schema.json",
  "title": "StatementInitiationRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/citi-statement-services-v1-api-openapi.yml#/components/schemas/StatementInitiationRequest",
  "properties": {
    "accountNumber": {
      "description": "The account number(s) for which the account statement is to be retrieved. You can specify multiple accounts by using multiple account objects.  If no value is sent the Statements API will send a reject response with an error message. ",
      "type": "array",
      "title": "accountNumber",
      "items": {
        "type": "string"
      },
      "minItems": 1
    },
    "formatName": {
      "description": "Specifies the format of the statement(s) to be generated. Valid values include:\n\n* SWIFT_MT940 \n* CAMT_053_001_02\n* SWIFT MT942\n* CAMT_052_001_02\n\n**Note:** ``formatName`` will be ignored if ``templateName`` is supplied, but ``formatName`` is still required for completeness.",
      "type": "string",
      "title": "formatName",
      "enum": [
        "SWIFT_MT940",
        "CAMT_053_001_02",
        "SWIFT MT942",
        "CAMT_052_001_02"
      ]
    },
    "fromDate": {
      "description": " Specifies the beginning date for the statement request. ``fromDate`` uses  _YYYY-MM-DD_ format.",
      "type": "string",
      "title": "fromDate",
      "format": "YYYY-MM-DD"
    },
    "toDate": {
      "description": " Specifies the ending date for the statement request. ``fromDate`` uses _YYYY-MM-DD_ format.",
      "type": "string",
      "format": "YYYY-MM-DD",
      "title": "toDate"
    },
    "templateName": {
      "description": "The template name, as defined in CitiDirect BE File Services (STR Library Number). \n\nBefore you make your first statement API request, make sure that the correct template (also known as an \"export profile\") has been set up using CitiDirect BE. \n\nFor help setting up a template contact your Citi representative. \n\nThe template contains the following:\n\n* the format standard\n* the list of transaction codes and descriptions\n* the display of itemized entries for bulk debits\n* the list of the date and time stamps\n\nYou can choose between:\n\n* Detailed itemized entries - list all transactions on the statement. If you would like an itemized Statement Retrieval (STR), please contact your Citi representative to perform the setup on your behalf. You must then use the STR library Name in your statement initiation request.\n* A single consolidated debit entry - one debit entry that can contain several smaller transactions. These are also known as bulk debit transactions.\n\nWhen creating the template, the time zone where the template is initially set up will be used when generating the account statement as well as the frequency and interval specified. ",
      "type": "string",
      "title": "templateName"
    },
    "strLibrayName": {
      "description": "Specifies the STR Library name created as part of STR profile by the Citi representative, if itemization data is required.",
      "type": "string",
      "title": "strLibrayName"
    },
    "baiCode": {
      "description": "Transaction classification code indicating the type of financial transaction.",
      "type": "string",
      "title": "baiCode"
    }
  },
  "required": [
    "accountNumber",
    "formatName",
    "fromDate",
    "toDate"
  ]
}