📦 keez-invocing
Keez wrapper using Node
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.