Link Search Menu Expand Document

Statement from Bank of America - TEMPLATES-SAMPLES

Document Parser sample in TEMPLATES-SAMPLES demonstrating ‘Statement from Bank of America’

template.json
{
  "templateVersion": 4,
  "templatePriority": 8790,
  "culture": "en-US",
  "objects": [
    {
      "id": 1657269535358,
      "objectType": "field",
      "name": "Account Number",
      "fieldProperties": {
        "fieldType": "macros",
        "expression": "Account Number:{{Spaces}}(?<value>{{Digits}} {{Digits}} {{Digits}})",
        "dataType": "string",
        "regex": true
      }
    },
    {
      "id": 1657269764311,
      "objectType": "field",
      "name": "Name",
      "fieldProperties": {
        "fieldType": "rectangle",
        "rectangle": [
          59.13965087281795,
          351.7456647398844,
          215.95511221945137,
          28.231213872832367
        ],
        "pageIndex": 0
      }
    },
    {
      "id": 1657269576925,
      "objectType": "field",
      "name": "Period",
      "fieldProperties": {
        "fieldType": "macros",
        "expression": "for{{Spaces}}(?<value>{{SmartDate}} to {{SmartDate}})",
        "dataType": "string",
        "regex": true
      }
    },
    {
      "id": 1657269955995,
      "objectType": "field",
      "name": "Beginning Balance",
      "fieldProperties": {
        "fieldType": "macros",
        "expression": "Beginning balance on {{SmartDate}}{{Spaces}}{{Dollar}}(?<value>{{Number}})",
        "dataType": "string",
        "regex": true
      }
    },
    {
      "id": 1657270026447,
      "objectType": "field",
      "name": "Deposits and other additions",
      "fieldProperties": {
        "fieldType": "macros",
        "expression": "Deposits and other additions{{Spaces}}(?<value>{{Number}})",
        "dataType": "string",
        "regex": true
      }
    },
    {
      "id": 1657270065950,
      "objectType": "field",
      "name": "ATM and debit card subtractions",
      "fieldProperties": {
        "fieldType": "macros",
        "expression": "ATM and debit card subtractions{{Spaces}}(?<value>(-)?{{Number}})",
        "dataType": "string",
        "regex": true
      }
    },
    {
      "id": 1657270163709,
      "objectType": "field",
      "name": "Other subtractions",
      "fieldProperties": {
        "fieldType": "macros",
        "expression": "Other subtractions{{Spaces}}(?<value>(-)?{{Number}})",
        "dataType": "string",
        "regex": true
      }
    },
    {
      "id": 1657270195420,
      "objectType": "field",
      "name": "Checks",
      "fieldProperties": {
        "fieldType": "macros",
        "expression": "Checks{{Spaces}}(?<value>(-)?{{Number}})",
        "dataType": "string",
        "regex": true
      }
    },
    {
      "id": 1657270218615,
      "objectType": "field",
      "name": "Service fees",
      "fieldProperties": {
        "fieldType": "macros",
        "expression": "Service fees{{Spaces}}(?<value>(-)?{{Number}})",
        "dataType": "string",
        "regex": true
      }
    },
    {
      "id": 1657270246237,
      "objectType": "field",
      "name": "Ending Balance",
      "fieldProperties": {
        "fieldType": "macros",
        "expression": "Ending balance on {{SmartDate}}{{Spaces}}{{Dollar}}(?<value>{{Number}})",
        "dataType": "string",
        "regex": true
      }
    }
  ],
  "oldObjects": [
    {
      "id": 1657269535358,
      "objectType": "field",
      "name": "Account Number",
      "fieldProperties": {
        "fieldType": "macros",
        "expression": "Account Number:{{Spaces}}(?<value>{{Digits}} {{Digits}} {{Digits}})",
        "dataType": "string",
        "regex": true
      }
    },
    {
      "id": 1657269576925,
      "objectType": "field",
      "name": "Period",
      "fieldProperties": {
        "fieldType": "macros",
        "expression": "for{{Spaces}}(?<value>{{SmartDate}} to {{SmartDate}})",
        "dataType": "string",
        "regex": true
      }
    },
    {
      "id": 1657269764311,
      "objectType": "field",
      "name": "Name",
      "fieldProperties": {
        "fieldType": "rectangle",
        "rectangle": [
          59.13965087281795,
          351.7456647398844,
          215.95511221945137,
          28.231213872832367
        ],
        "pageIndex": 0
      }
    },
    {
      "id": 1657269955995,
      "objectType": "field",
      "name": "Beginning Balance",
      "fieldProperties": {
        "fieldType": "macros",
        "expression": "Beginning balance on {{SmartDate}}{{Spaces}}{{Dollar}}(?<value>{{Number}})",
        "dataType": "string",
        "regex": true
      }
    },
    {
      "id": 1657270026447,
      "objectType": "field",
      "name": "Deposits and other additions",
      "fieldProperties": {
        "fieldType": "macros",
        "expression": "Deposits and other additions{{Spaces}}(?<value>{{Number}})",
        "dataType": "string",
        "regex": true
      }
    },
    {
      "id": 1657270065950,
      "objectType": "field",
      "name": "ATM and debit card subtractions",
      "fieldProperties": {
        "fieldType": "macros",
        "expression": "ATM and debit card subtractions{{Spaces}}(?<value>(-)?{{Number}})",
        "dataType": "string",
        "regex": true
      }
    },
    {
      "id": 1657270163709,
      "objectType": "field",
      "name": "Other subtractions",
      "fieldProperties": {
        "fieldType": "macros",
        "expression": "Other subtractions{{Spaces}}(?<value>(-)?{{Number}})",
        "dataType": "string",
        "regex": true
      }
    },
    {
      "id": 1657270195420,
      "objectType": "field",
      "name": "Checks",
      "fieldProperties": {
        "fieldType": "macros",
        "expression": "Checks{{Spaces}}(?<value>(-)?{{Number}})",
        "dataType": "string",
        "regex": true
      }
    },
    {
      "id": 1657270218615,
      "objectType": "field",
      "name": "Service fees",
      "fieldProperties": {
        "fieldType": "macros",
        "expression": "Service fees{{Spaces}}(?<value>(-)?{{Number}})",
        "dataType": "string",
        "regex": true
      }
    },
    {
      "id": 1657270246237,
      "objectType": "field",
      "name": "Ending Balance",
      "fieldProperties": {
        "fieldType": "macros",
        "expression": "Ending balance on {{SmartDate}}{{Spaces}}{{Dollar}}(?<value>{{Number}})",
        "dataType": "string"
      }
    }
  ],
  "templateName": "Bank of America Core Checking Template",
  "description": "",
  "options": {
    "ocrMode": "auto",
    "ocrLanguage": "eng",
    "ocrResolution": 300,
    "ocrImageFilters": "",
    "ocrWhiteList": "",
    "ocrBlackList": ""
  }
}

PDF.co Web API: the Web API with a set of tools for documents manipulation, data conversion, data extraction, splitting and merging of documents. Includes image recognition, built-in OCR, barcode generation and barcode decoders to decode bar codes from scans, pictures and pdf.

Get your PDF.co API key here!

Download Source Code (.zip)

return to the previous page explore Document Parser endpoint