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

@roadmate-io/qonto-client

v0.1.7

Published

TypeScript client library for the Qonto Business API

Readme

qonto-client 🚀

A modern, fully-typed TypeScript client library tailored for the Qonto Business API.

This package provides a seamless and intuitive way to integrate Qonto's banking features directly into your Node.js applications, covering everything from fetching bank accounts, managing beneficiaries, interacting with transactions, virtual limits/cards rules, to generating invoices.

Features ✨

  • Fully Typed: Leverage extensive TypeScript definitions to benefit from excellent editor autocompletion and structural confidence.
  • Promise-based API: Utilizes standard JavaScript async/await patterns driven by axios.
  • Comprehensive Coverage: Supports nearly the full spectrum of endpoints available in the Qonto API V2 (Organizations, Transactions, Cards, Invoices, Beneficiaries, etc.).
  • Error Handling: Bundled QontoApiError wrapper cleanly intercepts and details API rejection states.

Installation 📦

Using npm:

npm install @roadmate-io/qonto-client

Using yarn:

yarn add @roadmate-io/qonto-client

Using pnpm:

pnpm add @roadmate-io/qonto-client

Note: Environment strictly requires Node.js >= 20.0.0.

Getting Started 🛠️

To start interacting with Qonto, supply your credentials (login slug and secret key). You can generate these credentials through your Qonto web application in Settings > Integrations > API.

import { QontoClient } from '@roadmate-io/qonto-client';

const client = new QontoClient({
  login: 'your-organization-slug',
  secretKey: 'your-secret-key'
});

// Fetch current organization details
async function getOrgInfo() {
  try {
    const { organization } = await client.organizations.getCurrent();
    // Knowing your organization 
    console.log(`Connected to: ${organization.name}`);
  } catch (error) {
    console.error(error);
  }
}

getOrgInfo();

Usage Examples 💡

List Transactions for a Specific Account

const bank_account_id = organization.bank_accounts[0].id;
// You might want to have this bank_account_id in your environments var so you don't have to query organizations
const { transactions, meta } = await client.transactions.list({
  bank_account_id,
  // other filters go here
});

console.log(`Successfully fetched ${transactions.length} transactions!`);

Creating a SEPA Beneficiary

const newBeneficiary = await client.beneficiaries.create({
  beneficiary: {
    name: 'John Doe',
    iban: 'FR7612345678901234567890123',
    bic: 'ABCDEF12'
  }
});
console.log('Beneficiary created:', newBeneficiary);

Locking a Physical/Virtual Card

const suspendedCard = await client.cards.lock('card_uuid_123');
console.log('Card is now temporarily locked.');

Available Resources 📚

The QontoClient exposes numerous specific instance resources directly modeled after the API docs.

| Resource | Accessed via | Purpose | | :--- | :--- | :--- | | Organizations | client.organizations | Organization profiles and details. | | Bank Accounts | client.bankAccounts | Account retrieving and tracking balances. | | Transactions | client.transactions | Fetch bank operations and transaction details. | | Cards | client.cards | Modifying card limits, restrictions, names, pinning, blocking. | | Beneficiaries | client.beneficiaries| Managing trusted payees. | | SEPA Transfers | client.sepaTransfers| Instantiating outward transfers. | | Client Invoices | client.clientInvoices| Generate, fetch, or mark invoices as paid. | | Webhooks | client.webhooks | Handle API event notification configurations. | | Attachments | client.attachments | Document attachment and invoice receipt linking. | | ...and more! | (statements, internalTransfers, etc) | Explore QontoClient intellisense. |

Error Handling 🛡️

All non-200 responses are automatically caught and thrown as a QontoApiError.

import { QontoApiError } from 'qonto-client';

try {
  await client.bankAccounts.retrieve('invalid_id');
} catch (error) {
  if (error instanceof QontoApiError) {
    console.log(`Qonto Error [${error.statusCode}]:`, error.message);
    // Log additional API failure specifics if provided:
    console.log('Details:', error.details); 
  }
}

Contributing 🤝

Contributions, issues, and feature requests are highly welcome! Whether you're adding new API endpoints, fixing bugs, or improving documentation, we appreciate your help in making this library better for everyone.

If you'd like to contribute, please feel free to fork the repository, open an issue, or submit a Pull Request.

Local Development Setup:

  1. Clone the repository.
  2. Ensure you have the right Node version (using nvm use).
  3. Install dependencies: npm install
  4. Run tests powered by vitest: npm run test
  5. Compile TS to JS: npm run build

License

MIT License

GitHub

You can browse the code here

Home Page

Visit our RoadMate home page