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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@debitura/debt-collection

v1.0.0

Published

Official Debitura client for the Debt Collection (Customer) API.

Readme

@debitura/debt-collection

Official TypeScript / JavaScript client for the Debitura Debt Collection (Customer) API.

Debitura connects you with trusted, local debt collection firms in the debtor's country and recovers your overdue B2B/B2C claims on a no-cure-no-pay basis. This SDK lets you upload cases, preview pricing/eligibility, track status, and manage your collection workflow programmatically.

  • Landing page: https://www.debitura.com/integration/debt-collection-api
  • Full docs & guides: https://docs.debitura.com
  • Source: https://github.com/debitura/Debitura.SDK (/typescript)

This package is generated from the OpenAPI spec with openapi-generator (typescript-axios). The package version tracks the spec's info.version. Do not edit the generated files by hand — change the spec and regenerate.

Install

npm install @debitura/debt-collection
# or
yarn add @debitura/debt-collection

Authentication

The Debt Collection API is a gated, commercial API. You authenticate with an API key sent in the XApiKey HTTP header. Get your key from your Debitura account at https://app.debitura.com/CreditorApiKey.

Configure it once via the Configuration object:

import { Configuration, CasesApi } from "@debitura/debt-collection";

const config = new Configuration({
  // Debitura sends the API key in the `XApiKey` header.
  apiKey: process.env.DEBITURA_API_KEY!,
  basePath: "https://api.debitura.com", // your assigned Customer API base URL
});

const cases = new CasesApi(config);

The apiKey option wires up the XApiKey header for you (the spec's ApiKey security scheme). Referral partners using a bearer token should set accessToken instead.

Example — list and preview a case

import { Configuration, CasesApi } from "@debitura/debt-collection";

const config = new Configuration({
  apiKey: process.env.DEBITURA_API_KEY!,
  basePath: "https://api.debitura.com",
});
const cases = new CasesApi(config);

async function main() {
  // List your existing cases. `casesGet` returns a paginated InvoiceListDto:
  //   { page: { totalResults, pageSize, currentPage, ... }, cases: [...] }
  const { data: result } = await cases.casesGet();
  console.log(
    `You have ${result.page?.totalResults ?? result.cases?.length ?? 0} case(s) ` +
      `(page ${result.page?.currentPage ?? 1}).`
  );

  // Preview pricing / eligibility before creating a case.
  // amountToRecover, currencyCode and debtor (type + countryAlpha2) are required.
  const { data: preview } = await cases.casesPreviewPost({
    debituraWebExternalApiContractsV1CasesRequestsPreviewCaseRequestApiViewModel: {
      amountToRecover: 1000,
      currencyCode: "EUR",
      debtor: { type: "Company", countryAlpha2: "DK" },
    },
  });
  console.log("Preview:", preview);
}

main().catch((err) => {
  console.error(err);
  process.exit(1);
});

Always preview for pricing and eligibility before you create a case — creating a case is a legal/financial action.

What's in the box

Generated API classes (one per tag): CasesApi, CoverageApi, ContractsApi, DivisionsApi, PaymentsApi, WebhooksApi, MeApi, UsersApi, and more. All request/response models are exported from the package root and under ./models.

License

MIT