In this tutorial, we will show you how to extract bank statements in PHP using our REST Web API.

  1. Source Code
  2. Start Apache Server
  3. Run Program
  4. Parsing Result
  5. Parser Demo

Here’s the sample Bank Statement and the extracted JSON output.

Sample Bank Statement and JSON Output
Sample Bank Statement and JSON Output

How to extract bank statements to JSON using Web API in PHP:

Step 1: Source Code

  • First, copy the PHP and the HTML source code here. Next, save the files in a folder inside the /www or /htdocs directory depending on whether you are using XAMPP or WampServer.

PHP and HTML Source Code

Step 2: Start Apache Server

  • Start the Apache server so we can run the program on our local machine.

Start Apache Server

Step 3: Run Program

Now, let’s run the program.

  • First, type in localhost/Folder name/HTML file on your browser.
  • Next, add the API Key. You can get the API key in your dashboard here.
  • Then, input the source file.
  • Now, add the template in YML format. You can create a new template in Document Parser Template Editor here. To learn more about Document Parser, please visit this page.
  • Finally, click on the Proceed button to send a request.

Run Program

Step 4: Parsing Result

  • Once the program runs successfully. Click on the URL to view the output.

Parsing Result

Step 5: Parser Demo

  • Here’s the Bank Statement Parser in action.
Bank Statement Parser Demo
Bank Statement Parser Demo

In this tutorial, you learned how to extract bank statements using PHP. You learned how to set up the code samples to run the program. You also learned how to use the Document Parser Template Editor and create a template in YML format.

Come back for more tutorials on extraction of banking statements.

Similar Pages: