{
  "title": "Accounting Dataset",
  "finraMeta": {
    "detailedDescription": "The Accounting Dataset contains the requesting firm's CRD Accounting transactions for a specified 30 day period."
  },
  "properties": {
    "FirmAccountTransactionResponse": {
      "title": "FirmAccountTransactionResponse",
      "type": "object",
      "properties": {
        "accountTransactions": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/FirmAccountTransaction"
          }
        },
        "controlTotal": {
          "title": "Control Total",
          "type": "number",
          "maxLength": 26,
          "finraMeta": {
            "detailedDescription": "Check Sum of all transactions in data download file. (Note: $8,450 would be represented as 8450.00)."
          }
        }
      }
    },
    "FirmAccountTransaction": {
      "title": "FirmAccountTransaction",
      "type": "object",
      "properties": {
        "accountType": {
          "title": "Firm Account Type",
          "type": "string",
          "enum": [
            "CRDRG"
          ],
          "finraMeta": {
            "detailedDescription": "Account Type CRDRG-Business Unit Flex-Funding."
          }
        },
        "amountInDollars": {
          "title": "Amount in Dollars",
          "type": "number",
          "maxLength": 26,
          "finraMeta": {
            "detailedDescription": "Amount of Transaction. $100 is represented as 100.00."
          }
        },
        "billingCode": {
          "title": "Agent Billing Code",
          "type": "string",
          "maxLength": 160,
          "finraMeta": {
            "detailedDescription": "Agent Billing Code."
          }
        },
        "branchNumber": {
          "type": "string",
          "title": "Branch CRD Number",
          "maxLength": 160,
          "finraMeta": {
            "detailedDescription": "Branch CRD Number."
          }
        },
        "feeType": {
          "title": "Fee Type",
          "type": "string",
          "enum": [
            "BRCH",
            "FIRM",
            "IAFM",
            "IAIN",
            "INDV"
          ],
          "finraMeta": {
            "detailedDescription": "Accounting Transaction Type."
          }
        },
        "individualCRDNumber": {
          "type": "number",
          "title": "Individual CRD Number",
          "maxLength": 26,
          "finraMeta": {
            "detailedDescription": "Individual's CRD number."
          }
        },
        "individualName": {
          "type": "string",
          "title": "Individual Name",
          "maxLength": 160,
          "finraMeta": {
            "detailedDescription": "Individual's name."
          }
        },
        "invoiceDate": {
          "title": "Invoice Date",
          "type": "string",
          "format": "date",
          "finraMeta": {
            "detailedDescription": "Invoice date (YYYY-MM-DD)."
          }
        },
        "name": {
          "$ref": "#/definitions/Name"
        },
        "postingDate": {
          "title": "Posting Date",
          "type": "string",
          "format": "date",
          "finraMeta": {
            "detailedDescription": "Reporting date for processing this feed (YYYY-MM-DD)."
          }
        },
        "recipientOfFunds": {
          "title": "Recipient of Funds",
          "type": "string",
          "maxLength": 160,
          "finraMeta": {
            "detailedDescription": "Recipient of Funds. The name of the regulator whose account was credited, or, the Firm CRD# if a firm."
          }
        },
        "transactionDescription": {
          "title": "Accounting Transaction Description",
          "type": "string",
          "maxLength": 1200,
          "finraMeta": {
            "detailedDescription": "Description of the accounting transaction."
          }
        },
        "transactionNumber": {
          "title": "Accounting Transaction Number",
          "type": "string",
          "maxLength": 160,
          "finraMeta": {
            "detailedDescription": "Transaction identifier."
          }
        },
        "transactionType": {
          "title": "transaction Type",
          "type": "string",
          "enum": [
            "Transaction",
            "Deposit",
            "Transfer"
          ],
          "finraMeta": {
            "detailedDescription": "The AccountTransactions node contains a collection of the firm's CRD Accounting transactions as of the report period."
          }
        }
      }
    },
    "Name": {
      "title": "Name",
      "type": "object",
      "properties": {
        "first": {
          "title": "First Name",
          "type": "string",
          "maxLength": 100,
          "finraMeta": {
            "detailedDescription": "The individual's first name."
          }
        },
        "last": {
          "title": "Last Name",
          "type": "string",
          "maxLength": 100,
          "finraMeta": {
            "detailedDescription": "The individual's last name."
          }
        },
        "middle": {
          "title": "Middle Name",
          "type": "string",
          "maxLength": 80,
          "finraMeta": {
            "detailedDescription": "The individual's middle name."
          }
        },
        "suffix": {
          "title": "Suffix",
          "type": "string",
          "maxLength": 20,
          "finraMeta": {
            "detailedDescription": "The individual's suffix."
          }
        }
      }
    }
  }
}