Closed eduardev closed 5 years ago
The rules and guidelines we based that off of mention a blank space. We'll check the more updated rules.
Edit: From the doc you linked I see the following
10-digit company number assigned by bank (typically 9-digit tax ID preceded by "1")
Our code should at least be 10-digit aware and not truncate the last digit. Yea, if you can submit a PR that'd be appreciated!
I'm running into a similar problem and wanted to check why this was reverted in https://github.com/moov-io/ach/pull/652?
From what I understand, "1" + FID (9 digit Federal ID Number)
is also a valid immediate origin.
The moov-io/ach library targets the latest Nacha specification for its default support. If you need a non-standard value in there you may have success with BypassOriginValidation
https://github.com/moov-io/ach/blob/3609aa1ebe346a992170f545eee138d82d6df1a3/fileHeader.go#L37
In the field Godoc it says:
Where does it actually say this has to start with a blank space? I'm integrating with a bank and I was asked to change a bug I had in my files as the Immediate Origin (given by my ODFI) was missing the last digit and also had a "funny" blank space.
Indeed when looking at their spec, and also at NACHA the only thing I see for this File Header field format is:
As we're on a tight schedule I'm forking the project for quick fixing, and will submit a PR if you want, after discussing here.