npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

siigo_api

v3.1.0

Published

Siigo Api v1

Readme

siigo_api

SiigoApi - JavaScript client for siigo_api

Installation

Using Node.js

npm install siigo_api --save

Getting Started

Initialization, add only one time in your project setup

import * as SiigoApi from 'siigo_api';

// initial configuration for the SDK  
SiigoApi.initialize({
  basePath: "The base URL for call APIs",  // https://services.siigo.com/alliances/api
  urlSignIn: "The full url sign-in",       // https://services.siigo.com/alliances/api/siigoapi-users/v1/sign-in
});

use the method signIn to generate internally the access token so that the SDK use this in the calls to endpoints of SiigoApi

try {
  await SiigoApi.signIn({ 
    userName: "The user name to sign-in",   // testname
    accessKey: "The access key to sign-in", // euy3423uykwjehqwuywj
  });
} catch (err) {
  // logic when credentials are invalid or present errors in getting token
}

Example of use

- calls with promises

import * as SiigoApi from 'siigo_api';

let apiInstance = new SiigoApi.AccountGroupApi();

apiInstance.getAccountGroups().then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

- calls with async await

import * as SiigoApi from 'siigo_api';

async function main(){
  try {
    let apiInstance = new SiigoApi.AccountGroupApi();
    const data = await apiInstance.getAccountGroups();
    console.log('API called successfully. Returned data: ' + data);
  } catch (error) {
    console.error(error);
  }
}

Documentation for API Endpoints

Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- SiigoApi.AccountGroupApi | getAccountGroups | GET /v1/account-groups | Returns a list of account groups. SiigoApi.AccountsPayableApi | getAccountsPayable | GET /v1/accounts-payable | Returns a list of document types. SiigoApi.CostCenterApi | getCostCenters | GET /v1/cost-centers | Returns a list of cost centers. SiigoApi.CreditNoteApi | createCreditNote | POST /v1/credit-notes | Creates a credit note. SiigoApi.CreditNoteApi | getCreditNote | GET /v1/credit-notes/{id} | Gets the credit note by GUID. SiigoApi.CreditNoteApi | getCreditNotePDF | GET /v1/credit-notes/{id}/pdf | Gets the credit note PDF by GUID. SiigoApi.CreditNoteApi | getCreditNotes | GET /v1/credit-notes | Returns a paginated list of credit notes. SiigoApi.CustomerApi | createCustomer | POST /v1/customers | Creates a customer. SiigoApi.CustomerApi | deleteCustomer | DELETE /v1/customers/{id} | Deletes the customer by GUID. SiigoApi.CustomerApi | getCustomer | GET /v1/customers/{id} | Gets the customer by GUID. SiigoApi.CustomerApi | getCustomers | GET /v1/customers | Returns a paginated list of customers. SiigoApi.CustomerApi | updateCustomer | PUT /v1/customers/{id} | Updates the customer by GUID. SiigoApi.DocumentBalanceApi | getDocumentBalances | GET /v1/available-documents | Returns client document balance. SiigoApi.DocumentTypeApi | getDocumentTypes | GET /v1/document-types | Returns a list of document types. SiigoApi.FixedAssetsApi | getAssetGroups | GET /v1/asset-groups | Returns a list of asset groups. SiigoApi.FixedAssetsApi | getFixedAssets | GET /v1/fixed-assets | Returns a list of fixed assets. SiigoApi.InvoiceApi | annulInvoice | POST /v1/invoices/{id}/annul | Annul the Invoice by GUID. SiigoApi.InvoiceApi | createInvoice | POST /v1/invoices | Creates an invoice. SiigoApi.InvoiceApi | deleteInvoice | DELETE /v1/invoices/{id} | Delete the Invoice by GUID. SiigoApi.InvoiceApi | getElectronicInvoiceErrors | GET /v1/invoices/{id}/stamp/errors | Returns the errors list for a rejected electronic invoice by GUID. SiigoApi.InvoiceApi | getInvoice | GET /v1/invoices/{id} | Gets the invoice by GUID. SiigoApi.InvoiceApi | getInvoicePDF | GET /v1/invoices/{id}/pdf | Gets the invoice PDF by GUID. SiigoApi.InvoiceApi | getInvoices | GET /v1/invoices | Returns a paginated list of invoices. SiigoApi.InvoiceApi | sendElectronicInvoice | POST /v1/invoices/{id}/stamp | Send electronic invoice by GUID. SiigoApi.InvoiceApi | sendInvoiceByEmail | POST /v1/invoices/{id}/mail | Send an invoice by email SiigoApi.InvoiceApi | updateInvoice | PUT /v1/invoices/{id} | Updates the Invoice by GUID. SiigoApi.JournalEntryApi | createJournal | POST /v1/journals | Creates a journal entry. SiigoApi.JournalEntryApi | getJournal | GET /v1/journals/{id} | Gets the journal entry by GUID. SiigoApi.JournalEntryApi | getJournals | GET /v1/journals | Returns a paginated list of journals entries. SiigoApi.PaymentTypeApi | getPaymentTypes | GET /v1/payment-types | Returns a list of payment types. SiigoApi.PriceApi | getPriceList | GET /v1/price-lists | Returns a list of price lists. SiigoApi.ProductApi | createProduct | POST /v1/products | Creates a product. SiigoApi.ProductApi | deleteProduct | DELETE /v1/products/{id} | Deletes the product by GUID. SiigoApi.ProductApi | getProduct | GET /v1/products/{id} | Gets the product by GUID. SiigoApi.ProductApi | getProducts | GET /v1/products | Returns a paginated list of products. SiigoApi.ProductApi | updateProduct | PUT /v1/products/{id} | Updates the product by GUID. SiigoApi.TaxApi | getTaxes | GET /v1/taxes | Returns a list of taxes. SiigoApi.TestBalanceApi | createTestBalance | POST /v1/test-balance-report | Generate a balance report. SiigoApi.TestBalanceApi | createTestBalanceByThirdparty | POST /v1/test-balance-report-by-thirdparty | Generate a balance report by customer. SiigoApi.UserApi | getUsers | GET /v1/users | Returns a paginated list of users. SiigoApi.VoucherApi | createVoucher | POST /v1/vouchers | Creates a voucher. SiigoApi.VoucherApi | getVoucher | GET /v1/vouchers/{id} | Gets the voucher by GUID. SiigoApi.VoucherApi | getVouchers | GET /v1/vouchers | Returns a paginated list of vouchers. SiigoApi.VoucherApi | sendElectronicVoucher | POST /v1/vouchers/{id}/stamp | Send electronic voucher by GUID. SiigoApi.VoucherApi | sendVoucherByEmail | POST /v1/vouchers/{id}/mail | Send an invoice by email SiigoApi.WarehousesApi | getWarehouse | GET /v1/warehouses | Returns a list of warehouse.

Documentation for Models

Documentation for Authorization

Bearer

  • Type: Bearer authentication