moov-io / achgateway

Payment gateway enabling automated ACH operations in a distributed and fault tolerant way.
https://moov-io.github.io/achgateway/
Apache License 2.0
52 stars 19 forks source link

Modify webhook to add number of Debits, Credits, Prenotes, etc.? #187

Open zbruhnke opened 11 months ago

zbruhnke commented 11 months ago

Been thinking about this and the way we use things. It would be nice to modify the webhook to break out some more individual data in the fle.

In reconciliation we often look at things like how many individual debit transactions there are, how many credit transactions there are, etc. Not just the totals

for us that might include something like this as a JSON struct, but its more of a suggestion right now as I think through it.

{
  "Entries": 10,
  "Number of Debits": 5,
  "Debits": "1000.00",
  "Number of Credits": 5,
  "Credits": "2000.00"
  "Number of Prenotes": 0,
  "Number of Credit Offsets": 0,
  "Number of Debit Offsets": 0,
}

Would this be of interest to anyone else?

adamdecaf commented 11 months ago

You're talking about the FileUploaded event which is produced, right? We could offer a file summary that's added on the object. I agree it would be useful to quickly identify what was uploaded.

zbruhnke commented 11 months ago

Yep exactly!