Node.js client to integrate the Aruba API for electronic invoicing ("Fatturazione Elettronica") within your project.
- Complete support for Notifications
- Implement MonitorCheck API
- Add any new feature introduces by Aruba last minute
- Aruba API docs: https://fatturazioneelettronica.aruba.it/apidoc/docs_EN.html
- npm: https://www.npmjs.com/package/fatturazione-elettronica-aruba
This module calls the Aruba Fatturazione Elettronica API, therefore you need a valid set of credentials with their service in order to use this module.
npm install fatturazione-elettronica-aruba
const ArubaClient = require('fatturazione-elettronica-aruba');
const arubaClient = new ArubaClient();
await arubaClient.signIn({
username: 'YOUR_ARUBA_USERNAME',
password: 'YOUR_ARUBA_PASSWORD'
});
await arubaClient.uploadInvoice({ dataFile: 'BASE64_ENCODED_XML' });
See the examples page for additional use cases and demos.
ArubaClient constructor
Returns Object Returns an instance of ArubaClient
Calls Aruba to generate a JWT that will be used for future calls
Returns Promise Resolves to an boolean if successful, or an object containing the error message
Calls Aruba to refresh the JWT
Returns Promise Resolves to an boolean if successful, or an object containing the error message
Search an invoice by username, filename, or id
data
(optional, default{}
)
Returns Promise Resolves to an boolean if successful, or an object containing the error message
Get the invoice notifications
data
(optional, default{}
)
Returns Promise Resolves to an boolean if successful, or an object containing the error message
Calls Aruba to upload an invoice
data
Object (optional, default{}
)
Returns Promise Resolves with the uploadFileName if successfull
This is a community driven open-source module.
node-fattura-elettronica-aruba
is MIT licensed.
Hey dude! Help me out for a couple of 🍻!