API to get reports

SUGGESTED

I want to have a program pull transactions (denied direct debits in particular -> VIRTUAL_CHECK_PPD_SALE).

I don't want to give this to a person.  I want a program to perform logging on and retrieving the transactions daily.

Where is the documentation to do this?