Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to create JSON format without saving to the in-memory store #1115

Open
yordis opened this issue Oct 25, 2022 · 2 comments
Open

Allow to create JSON format without saving to the in-memory store #1115

yordis opened this issue Oct 25, 2022 · 2 comments

Comments

@yordis
Copy link
Contributor

yordis commented Oct 25, 2022

ACH Version

v1.22.0

What were you trying to do?

We are using the ACH to analyze a lot of files from our back-office admin tools; therefore, we create the same ACH file multiple times (because we do not have UUIDs, neither we want to deal with it) to read the JSON format of it.

That will cause a memory increase in the ACH server when we don't want to save the file anywhere, so a request-response style to parse the content

What did you expect to see?

An endpoint returns the JSON payload without saving the NACHA file in the in-memory store.

@adamdecaf adamdecaf added this to the v1.23.0 milestone Oct 26, 2022
@adamdecaf
Copy link
Member

adamdecaf commented Nov 16, 2022

I know this issue is requesting an HTTP endpoint, but would the achcli tool work?

$ achcli -reformat json ./test/testdata/ppd-debit.ach | jq .  
{
  "id": "",
  "fileHeader": {
    "id": "",
    "immediateDestination": "231380104",
    "immediateOrigin": "121042882",
    "fileCreationDate": "190624",
    "fileCreationTime": "0000",
    "fileIDModifier": "A",
    "immediateDestinationName": "Federal Reserve Bank",
    "immediateOriginName": "My Bank Name"
  },
  "batches": [
    {
      "batchHeader": {
        "id": "",
        "serviceClassCode": 225,
        "companyName": "Name on Account",
        "companyIdentification": "121042882",
        "standardEntryClassCode": "PPD",
        "companyEntryDescription": "REG.SALARY",
        "effectiveEntryDate": "190625",
        "settlementDate": "   ",
        "originatorStatusCode": 1,
        "ODFIIdentification": "12104288",
        "batchNumber": 1
      },
      "entryDetails": [
        {
          "id": "",
          "transactionCode": 27,
          "RDFIIdentification": "23138010",
          "checkDigit": "4",
          "DFIAccountNumber": "12345678         ",
          "amount": 100000000,
          "identificationNumber": "               ",
          "individualName": "Receiver Account Name ",
          "discretionaryData": "  ",
          "traceNumber": "121042880000001",
          "category": "Forward"
        }
      ],
      "batchControl": {
        "id": "",
        "serviceClassCode": 225,
        "entryAddendaCount": 1,
        "entryHash": 23138010,
        "totalDebit": 100000000,
        "totalCredit": 0,
        "companyIdentification": "121042882",
        "ODFIIdentification": "12104288",
        "batchNumber": 1
      },
      "offset": null
    }
  ],
  "IATBatches": null,
  "fileControl": {
    "id": "",
    "batchCount": 1,
    "blockCount": 1,
    "entryAddendaCount": 1,
    "entryHash": 23138010,
    "totalDebit": 100000000,
    "totalCredit": 0
  },
  "fileADVControl": {
    "id": "",
    "batchCount": 0,
    "entryAddendaCount": 0,
    "entryHash": 0,
    "totalDebit": 0,
    "totalCredit": 0
  },
  "NotificationOfChange": null,
  "ReturnEntries": null,
  "validateOpts": null
}

@yordis
Copy link
Contributor Author

yordis commented Nov 16, 2022

It would work for us, we are leveraging the ACH from Retool App and other systems that don't have access to the CLI

@adamdecaf adamdecaf modified the milestones: v1.24.0, v1.25.0 Nov 21, 2022
@adamdecaf adamdecaf removed this from the v1.26.0 milestone Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants