node package manager


fetch bills from the docparse scraper api server

Docparse Fetch Bills

get all existing bill numbers for a given supplier code from the database


npm install -S docparse-fetch-bills-node


var fetchBills = require('docparse-fetch-bills-node')
var fetchData = {
  db: db, // a cradle db connection 
  supplierCode: 'NGE' // Ngrid Electric Supplier Code 
fetchBills(fetchData, function (err, reply) {
  if (err) {

The reply will be an array of bill numbers. This array might be empty if there are no bills in the database for the input supplier code