The `node-sellsy` library serves as a JavaScript wrapper for the Sellsy API, designed for both Node.js and browser environments. It provides a promise-based interface to interact with Sellsy's largely PHP-centric API, facilitating automation of tasks within the Sellsy platform. Developers can utilize a generic `sellsy.api({ method, params })` call for direct access to all documented Sellsy API methods, alongside higher-level abstractions for common operations on customer and document entities, such as `sellsy.customers.create` or `sellsy.documents.getList`. The latest stable version is 1.5.5, with the last update released in November 2021. A key differentiator is enabling JavaScript developers to integrate with Sellsy without relying on PHP, offering features like OAuth private app authentication. It handles the underlying HTTP requests and response parsing, returning data in a structured JavaScript object format.
npm install node-sellsyVerified import paths — ran on the pinned version, not inferred.
Initializes the Sellsy API client with credentials from environment variables and fetches a list of clients matching a 'test' search term using the generic API method.
Deploy and configure a proxy server (e.g., `revolunet/sellsy-proxy` from GitHub) and specify its endpoint in the `Sellsy` client configuration using the `endPoint` option.
Run in an environment with an older Node.js version compatible with the library, or consider migrating to an actively maintained alternative if available. Proceed with caution on modern Node.js.
Evaluate the ongoing need for Sellsy API integration and investigate alternative, actively maintained libraries or consider building direct API integrations if maintenance is critical.
Use CommonJS `require()` syntax. For ES modules, consider dynamic `import()` or configuring your build system (e.g., Webpack, Rollup) to handle CommonJS modules.
Always store API credentials securely using environment variables (e.g., `process.env.SELLSY_CONSUMER_KEY`), a secrets management service, or a dedicated configuration system, injecting them at runtime.
Either convert your module to CommonJS (`.js` file without `"type": "module"` in `package.json` or `.cjs` extension) or use dynamic `import()`: `const Sellsy = (await import('node-sellsy')).default;`Ensure you are using the correct CommonJS `require` syntax: `const Sellsy = require('node-sellsy');`Deploy a CORS proxy (e.g., `revolunet/sellsy-proxy`) and configure the `endPoint` option when initializing the `Sellsy` client.
Double-check all four OAuth credentials for typos or ensure they are up-to-date and valid in your Sellsy API application settings.
No dependency data recorded yet.