Skip to main content

SDK Installation

We have official libraries for the following languages:

If you are using any other language, you can still consume the API using your own HTTP client.

Using one of our official libraries​

Start by including the Facturapi client in your project dependencies.

Install the package from NPM.

$> npm install facturapi

Import the library before using it in your code.

Choose the import that matches your project. With ESM or TypeScript:

import Facturapi from 'facturapi';

With CommonJS:

const Facturapi = require('facturapi');

The package includes TypeScript types and requires Node.js 18 or later. Import the constructor, types, and enums from facturapi.

Using your own HTTP client​

If you consume the API directly using your own HTTP client, you don't need to install anything. You can move on to the next section.