{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/citi/json-schema/citi-statement-request-schema.json",
  "title": "StatementRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/citi-statement-api-openapi.yml#/components/schemas/StatementRequest",
  "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.  <br><br> If no value is sent the Statements API will send a reject response with an error message.",
      "title": "accountNumber",
      "type": "array",
      "items": {
        "type": "string",
        "title": "items"
      },
      "minItems": 1
    },
    "formatName": {
      "description": "Specifies the format of the statement(s) to be generated. The types of statements available to request are - <br> <br> * SWIFT_MT940      - End of day account statement in Standard SWIFT proprietary format. <br> * CAMT_053_001_02  - Intraday account statement in ISO20022 Standard XML format. <br> * SWIFT_MT942      - Intraday account statement in Standard SWIFT proprietary format. <br> * CAMT_052_001_02  - End of day account statement in ISO20022 Standard XML format. <br><br> **Note:** ``formatName`` will be ignored if ``templateName`` is supplied, but ``formatName`` is still required for completeness.",
      "title": "formatName",
      "type": "string",
      "enum": [
        "SWIFT_MT940",
        "CAMT_053_001_02",
        "SWIFT_MT942",
        "CAMT_052_001_02"
      ]
    },
    "fromDate": {
      "description": "Specifies the beginning date and time for the statement generation request. ``fromDate`` uses _YYYY-MM-DDTHH:MM:SS.sssZ_ format.",
      "title": "fromDate",
      "type": "string",
      "format": "date-time"
    },
    "toDate": {
      "description": " Specifies the ending date for the statement generation request. ``toDate`` uses _YYYY-MM-DDTHH:MM:SS.sssZ_ format.",
      "title": "toDate",
      "type": "string",
      "format": "date-time"
    },
    "strLibrayName": {
      "description": "Specifies the STR Library name created as part of STR profile by the Citi representative, if itemization data is required.",
      "title": "strLibrayName",
      "type": "string"
    },
    "templateName": {
      "description": "The template name, as defined in CitiDirect BE File Services (STR Library Number). Before 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. For help setting up a template contact your Citi representative. <br><br> The template contains the following: <br> <br> * the format standard <br> * the list of transaction codes and descriptions <br> * the display of itemized entries for bulk debits <br> * the list of the date and time stamps <br><br>  You can choose between: <br><br>    * 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. <br><br>    * A single consolidated debit entry - one debit entry that can contain several smaller transactions. These are also known as bulk debit transactions. <br><br>    When 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.",
      "title": "templateName",
      "type": "string"
    },
    "xmlns": {
      "type": "string",
      "title": "xmlns"
    }
  },
  "required": [
    "accountNumber",
    "formatName",
    "fromDate",
    "toDate"
  ]
}