keez-invocing
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

:package: keez-node

📦 keez-invocing

🚀 A simple npm package for invoicing that wraps around Keez API.

Keez wrapper using Node

npm dm npm dt

Getting started

Please consult Keez API documentation for more information on how to use the API.

Installation

npm install keez-invocing

Initialization

const keezApi = new KeezApi({
    application_id: 'KEEZ_APPLICATION_ID',
    client_eid: 'KEEZ_CLIENT_ID',
    secret: 'KEEZ_SECRET',
    user: 'KEEZ_USER',
    live: true,
});

Getting all invoices

const result = await keezApi.getAllInvoices();
console.log(result);

Creating an invoice

const result = await keezApi.createInvoice({
    amount: 400,
    currencyCode: 'RON',
    itemId: 'KEEZ_ITEM_ID',
    partner: {
        isLegalPerson: false,
        partnerName: 'John Doe',
        countryName: 'Romania',
        countryCode: 'RO',
        countyCode: 'RO.B',
        countyName: 'Bucuresti',
        addressDetails: 'Str. Comerciala nr. 4',
        cityName: 'Bucharest',
        identificationNumber: '1234',
    },
    paymentType: 10,
    series: 'exampleSeries',
});
console.log(result);

🤝 Contributing

Contributions, issues and feature requests are welcome!

📝 License

Copyright © 2023 TPN LABS - All rights reserved. This project is MIT licensed.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.41latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.41
1.0.30
1.0.20

Package Sidebar

Install

npm i keez-invocing

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

110 kB

Total Files

47

Last publish

Collaborators

  • hopingsteam