How to Streamline Your Bookkeeping with Veryfi’s Dart SDK

February 23, 2023
3 mins read
How to Streamline Your Bookkeeping with Veryfi’s Dart SDK

    A Guide to Fast Data Extraction from Financial Documents

    Dart is a client-optimized language for fast apps on platforms like the web and mobile. Developed by Google, it is an object-oriented, class-based, garbage-collected language with C-style syntax. This makes Dart a powerful programming language to use with Veryfi APIs for data extraction from financial documents in seconds.

    Like magic, this straightforward process combines two powerful tools into a killer application that automates the tedious tasks of bookkeeping and keeping track of expenses. So let’s jump into the magic of bringing this to life.

    “Potions are not for the impatient, but their effects are usually difficult to undo by any but another skilled potioneer. This branch of magic carries a certain mystique and therefore status” (Hogwarts Book of Potions, Chapter 2 – Potion’s Nature).

    Magical potions are one of the most challenging and dangerous magical arts to master because of the uncertain results; just like putting muggles in the task of doing bookkeeping, you don’t know what the results will be and what to do with them. That’s why Veryfi hired the potioneer masters to help you brew a magic potion with our secret ingredients that will make you forget the task of manually reading documents.

    Automate Data Extraction with Veryfi’s Dart SDK and API

    Here is a secret: One of Veryfi’s ingredients to getting structured data in seconds is its API, which provides its users the ability to cast a simple spell to extract, categorize, and enrich all the details from unstructured documents without the use of traditional limitations like templates or humans-in-the-loop.

    Dart is becoming a significant and used language for mobile app development with the rise of Flutter, which is an excellent and reliable SDK to build applications; that’s why here at Veryfi, we developed a Dart SDK that connects with our magical APIs and we will guide you how to use this powerful SDK as a critical ingredient to brew a unique potion that it’s going to make you save tons of time, remember your time is money.

    That sounds great, right? So now, let’s get into this potion brewing class and ensure you get the following ingredients right to have the best results.

    Integrating Veryfi’s API with Dart SDK for Seamless Document Data Extraction

    Ingredient 1: Add the SDK to your project. Install Veryfi’s Dart SDK in your project by running this command:

    dart pub add veryfi_dart

    Import the SDK where you want to start using it:

    import ‘package:veryfi_dart/veryfi_dart.dart’;

    Ingredient 2: Initialize Veryfi’s client

    Create a client object by providing your credentials. You can setup and find all credentials in our hub ​

    VeryfiDart client = VeryfiDart(‘yourClientId’, ‘yourClientSecret’, ‘yourUsername’, ‘yourApiKey’);

    Ingredient 3: Send a document

    In order to process a document you can either send the file data or use an url, in this case we will initialize it with a simple jpg image.

    String fileName = ‘receipt.jpg’;

    File file = File(fileName);

    Uint8List imageData = file.readAsBytesSync();

    String fileData = base64Encode(imageData);

    Now you can simply use the client to process the document and get all the data you need:

    await client.processDocument(fileName, fileData).then(

      (response) {



    ).catchError((error) {



    Let’s put all these ingredients in our cauldron for a few seconds, and Abracadabra! Now you have the JSON object to use in your specific use case.

    The SDK allows you to customize your request with the ability to specify extra parameters; some more options and functions depend on the needs of your application, so you will be free to use what you want or create new tasks as this is an open-source project.

    And that’s it! With these easy steps, you’re ready to go and start using Veryfi in your project, so you can focus on what’s important to you and leave Veryfi the task of processing your documents.

    Abracadabra! Test drive Veryfi’s magical document data extraction 

    You can also access all your processed documents and account information from our hub ​, sign up for a free trial today!

    Feedback: Any feedback, positive or negative, keeps Veryfi growing and improving! While working with the SDK, you may encounter bugs or issues. If you do, please open an issue on the Veryfi Dart SDK Github Repository ​