Skip to content

What's Returned from Baizen

Matthew Boston edited this page Mar 5, 2014 · 4 revisions

When you call baizen/parse the data structure that is returned has the format of:

{:file-header {:record-code "01" ...}
 :file-trailer {:record-code "99" ...}
 :groups
 [{:group-header {:record-code "02" ...}
   :group-trailer {:record-code "98" ...}
   :accounts
   [{:account-identifier {:record-code "03" ...}
     :account-trailer {:record-code "49" ...}
     :transactions
     [{:record-code "16" ...}
      {:record-code "16" ...}]}
    {:account-identifier {:record-code "03" ...}
     :account-trailer {:record-code "49" ...}
     :transactions
     [{:record-code "16" ...}
      {:record-code "16" ...}]}]}
  {:group-header {:record-code "02" ...}
   :group-trailer {:record-code "98" ...}
   :accounts
   [{:account-identifier {:record-code "03" ...}
     :account-trailer {:record-code "49" ...}
     :transactions
     [{:record-code "16" ...}
      {:record-code "16" ...}]}
    {:account-identifier {:record-code "03" ...}
     :account-trailer {:record-code "49" ...}
     :transactions
     [{:record-code "16" ...}
      {:record-code "16" ...}]}]}]}

More details on the format of each of the records can be found on the Wiki

Clone this wiki locally