npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

billiving

v1.0.3

Published

Node.js wrapper for API billiving.com

Downloads

7

Readme

Billiving

Build Status Dependencies NPM version

Node.js wrapper for billiving.com API

Installation

npm install billiving

Usage

// Import a module
const billiving = require('billiving')({
  token: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
});

// or

// Import a module
import Billiving from 'billiving';
// Create an instance with your API credentials
const billiving = Billiving({
  token: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
});

// To obtain your token log into your billiving.com account
// Then go to Settings > API Integration

Examples

Create Client

billiving.client.create({
  "OrganizationName": "BILLIVING",
  "TaxId": "123456ABC",
  "Address1": "847 Washington Blvd.",
  "Address2": "Apt #1",
  "City": "Los Angeles",
  "State": "CA",
  "ZipCode": "90064",
  "Website": "http://www.john-smith.com",
  "ContactName": "John Smith",
  "Email": "[email protected]", //the only mandatory field
  "Telephone1": "555-555-555",
  "Telephone2": "555-555-555",
  "Cell": "555-555-555",
  "Fax": "555-555-555",
  "InternalNotes": "some notes here..",
  "Contacts": [
    {
      "Email": "[email protected]"
    }
  ]
})
.then((output) => {
  console.info(output.data);
})
.catch((error) => {
  console.error(error);
})

Create Invoice

billiving.invoice.create({
  "ClientId": "1", //ClientId returned when creating the client
  "ReferenceNumber": "xyz",
  "Discount": 5.0,
  "Shipping": 150.0,
  "Due": 1,
  "ClientNotes": "Thank you for your payment",
  "InternalNotes": "Some internal notes..",
  "DocItems": [
    {
      "ItemId": "XBR-65X950B",
      "ItemDescription": "Flagship 4K Ultra HD TV",
      "ItemPrice": 6999.0,
      "ItemQuantity": 1.0,
      "TaxId1": 1,
      "DiscountType": 0,
      "DiscountValue": 10.0
    }
  ]
})
.then((output) => {
  console.info(output.data);
})
.catch((error) => {
  console.error(error);
})

Methods

Account

  • create
  • get

Client

  • create
  • delete
  • client
  • list
  • update

Estimate

  • clone
  • create
  • delete
  • get
  • list
  • send
  • update

Invoice

  • clone
  • create
  • delete
  • get
  • list
  • send
  • update

Product

  • create
  • delete
  • get
  • list
  • update

Receipt

  • create
  • delete
  • get
  • list
  • send
  • update

For product information please visit our site at https://www.billiving.com