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 🙏

© 2025 – Pkg Stats / Ryan Hefner

billwerk

v2.1.2

Published

Node wrapper for the billwerk API: https://developer.billwerk.io/Docs/ApiReference

Downloads

642

Readme

Functions

createOrder(data)

Create a new plan/component subscription or up/downgrade order

Kind: global function

| Param | Type | Description | | --- | --- | --- | | data | * | OrderDTO |

commitOrder(orderId, data)

Process and finalize an order

Kind: global function

| Param | Type | Description | | --- | --- | --- | | orderId | string | Order ID | | data | * | OrderCommitDTO |

approveOrder(orderId)

[FEATURE] Approve an order

Kind: global function

| Param | Type | Description | | --- | --- | --- | | orderId | string | Order ID |

declineOrder(orderId)

[FEATURE] Decline an order

Kind: global function

| Param | Type | Description | | --- | --- | --- | | orderId | string | Order ID |

getCustomers()

Retrieve a list of all customers

Kind: global function

createCustomer(data)

Create a new customer

Kind: global function

| Param | Type | Description | | --- | --- | --- | | data | * | CustomerDTO |

getCustomer(customerId)

Retrieve a single customer

Kind: global function

| Param | Type | Description | | --- | --- | --- | | customerId | string | Customer ID |

putCustomer(customerId, data)

Replaces a customer's data

Kind: global function

| Param | Type | Description | | --- | --- | --- | | customerId | string | Customer ID | | data | * | CustomerDTO |

patchCustomer(customerId, data)

Updates parts of a customer

Kind: global function

| Param | Type | Description | | --- | --- | --- | | customerId | string | Customer ID | | data | * | CustomerDTO |

deleteCustomer(customerId)

Deletes a customer

Kind: global function

| Param | Type | Description | | --- | --- | --- | | customerId | string | Customer ID |

getCustomerContracts(customerId)

Retrieves a list of all contracts for the given customer id

Kind: global function

| Param | Type | Description | | --- | --- | --- | | customerId | string | Customer ID |

getContracts()

Retrieve a list of contracts

Kind: global function

getContract(contractId)

Retrieves a single contract by Id

Kind: global function

| Param | Type | | --- | --- | | contractId | string |

getContractUsage(contractId)

Retrieves a contract's associated usage

Kind: global function

| Param | Type | | --- | --- | | contractId | string |

postContractUsage(contractId, data)

Posts new metered usage data

Kind: global function

| Param | Type | Description | | --- | --- | --- | | contractId | string | Contract ID | | data | * | MeteredUsageDTO |

deleteContractUsage(contractId, usageId)

Remove an unbilled metered usage

Kind: global function

| Param | Type | Description | | --- | --- | --- | | contractId | string | Contract ID | | usageId | string | Metered Usage ID |

getContractComponentSubscriptions(contractId)

Retrieves current subscriptions in the selected contract

Kind: global function

| Param | Type | Description | | --- | --- | --- | | contractId | string | Contract ID |

createContractComponentSubscription(contractId, data)

Create a new component subscription for this contract

Kind: global function

| Param | Type | Description | | --- | --- | --- | | contractId | string | Contract ID | | data | * | ComponentSubscriptionCreateDTO |

getContractSubscriptions(contractId)

component subscriptions and discount subscriptionsding plan variant,

Kind: global function

| Param | Type | Description | | --- | --- | --- | | contractId | string | Contract ID |

getContractSelfServiceToken(contractId)

Retrieve a short-lived selfservice access token

Kind: global function

| Param | Type | Description | | --- | --- | --- | | contractId | string | Contract ID |

getContractCancellationPreview(contractId)

considering contract and notice periods of the booked PlanVariant.ellation,

Kind: global function

| Param | Type | Description | | --- | --- | --- | | contractId | string | Contract ID |

endContract(contractId, data)

Set an enddate for this contract

Kind: global function

| Param | Type | Description | | --- | --- | --- | | contractId | string | Contract ID | | data | * | ContractEndDTO |

createContractRatedItem(contractId, data)

Create a Rated Item for this contract

Kind: global function

| Param | Type | Description | | --- | --- | --- | | contractId | string | Contract ID | | data | * | RatedItemCreateDTO |

getSubscriptions()

Retrieves combined customer and contract data

Kind: global function

getInvoices()

Retrieves a list of all invoices / credit notes

Kind: global function

getInvoiceById(invoiceId)

Retrieves an invoice by id

Kind: global function

| Param | Type | Description | | --- | --- | --- | | invoiceId | string | Invoice ID |

getInvoiceDownloadLink(invoiceId)

Creates a file download token for the given invoice

Kind: global function

| Param | Type | Description | | --- | --- | --- | | invoiceId | string | Invoice ID |

getInvoiceDrafts()

Retrieves a list of all invoice drafts

Kind: global function

getInvoiceDraft(invoiceDraftId)

Retrieves a draft by id

Kind: global function

| Param | Type | Description | | --- | --- | --- | | invoiceDraftId | string | Invoice Draft ID |

sendInvoiceDraft(invoiceDraftId)

Returns the newly created invoice thus converting it to an invoice.

Kind: global function

| Param | Type | Description | | --- | --- | --- | | invoiceDraftId | string | Invoice Draft ID |

getPlanGroups()

Retrieves a list of plan groups

Kind: global function

getPlanGroup(planGroupId)

Retrieves a single Plangroup by ID

Kind: global function

| Param | Type | | --- | --- | | planGroupId | string |

getPlans()

Retrieve a list of available plans

Kind: global function

getPlan(planId)

Retrieves a single plan by ID

Kind: global function

| Param | Type | Description | | --- | --- | --- | | planId | string | Plan ID |

getPlanVariants()

Retrieves a list of available Planvariants

Kind: global function

getPlanVariant(planVariantId)

Retrieves a single Planvariant by ID

Kind: global function

| Param | Type | Description | | --- | --- | --- | | planVariantId | string | PlanVariant ID |

getWebhooks()

Lists all webhooks that you currently have registered

Kind: global function

createWebhook(data)

Create a new webhook subscription

Kind: global function

| Param | Type | Description | | --- | --- | --- | | data | * | HookDTO |

deleteWebhook(webhookId)

Deletes the webhook from the system

Kind: global function

| Param | Type | Description | | --- | --- | --- | | webhookId | string | Webhook ID |