Create OFX Response Files via Python

OFX response files creation without needing Microsoft Office installed or any other software.

How to Create OFX Response Files

Follow the steps in code snippet or enhance it as of your application needs after having the creation requirements within your application.

  1. Create OfxResponseDocument class object.
  2. Assign the relevant properties using different classes provided by API like SignonResponse, StatementTransactionResponse, StatementTransaction
  3. Use the ofxVersion V2x or V1x for xml and sgml files respectively from OfxVersionEnum as parameter in save method.
  4. Call the save method by providing the target file and ofxVersion.

Creation Requirement

To proceed for OFX Response file creation, make sure that you have the following prerequisites.

  • Microsoft Windows or Linux based OS.
  • Python 3.5 or later.
  • Aspose.Finance for Python referenced in your project.
 

Python code for OFX response files creation

 

Other Creation Options

OFX Request File (1.03 or 2.2 Format)
XBRL File (Extensible Business Reporting Language)