1.3.0 • Published 2 years ago

pp_test_braian v1.3.0

Weekly downloads
-
License
Unlicense
Repository
github
Last release
2 years ago

siigo_api

SiigoApi - JavaScript client for siigo_api Siigo Api v1 This SDK is automatically generated by the OpenAPI Generator project:

  • API version: v1
  • Package version: 0.1.0
  • Build package: org.openapitools.codegen.languages.JavascriptClientCodegen

Installation

Using Node.js

npm install siigo_api --save

Getting Started

Initialization, add only one time in your project setup

With this configuration, the SDK will establish communication with the Siigo APIs, internally it is in charge of obtaining the access token for the calls to the APIs
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
  userName: "The user name to sign-in",   // testname
  accessKey: "The access key to sign-in", // euy3423uykwjehqwuywj
});

Example of use

- calls with promises

import * as SiigoApi from 'siigo_api';

let apiInstance = new SiigoApi.AccountGroupsApi();

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.AccountGroupsApi();
    const data = await apiInstance.getAccountGroups();
    console.log('API called successfully. Returned data: ' + data);
  } catch (error) {
    console.error(error);
  }
}

Documentation for API Endpoints

ClassMethodHTTP requestDescription
SiigoApi.AccountGroupsApigetAccountGroupsGET /v1/account-groupsReturns a list of account groups.
SiigoApi.CostCenterApigetCostCentersGET /v1/cost-centersReturns a list of cost centers.
SiigoApi.CreditNoteApicreateCreditNotePOST /v1/credit-notesCreates a credit note.
SiigoApi.CreditNoteApigetCreditNoteGET /v1/credit-notes/{id}Gets the credit note by GUID.
SiigoApi.CreditNoteApigetCreditNotePDFGET /v1/credit-notes/{id}/pdfGets the credit note PDF by GUID.
SiigoApi.CreditNoteApigetCreditNotesGET /v1/credit-notesReturns a paginated list of credit notes.
SiigoApi.CustomerApicreateCustomerPOST /v1/customersCreates a customer.
SiigoApi.CustomerApideleteCustomerDELETE /v1/customers/{id}Deletes the customer by GUID.
SiigoApi.CustomerApigetCustomerGET /v1/customers/{id}Gets the customer by GUID.
SiigoApi.CustomerApigetCustomersGET /v1/customersReturns a paginated list of customers.
SiigoApi.CustomerApiupdateCustomerPUT /v1/customers/{id}Updates the customer by GUID.
SiigoApi.DocumentTypeApigetDocumentTypesGET /v1/document-typesReturns a list of document types.
SiigoApi.FixedAssetsApigetAssetGroupsGET /v1/asset-groupsReturns a list of asset groups.
SiigoApi.FixedAssetsApigetFixedAssetsGET /v1/fixed-assetsReturns a list of fixed assets.
SiigoApi.InvoiceApicreateInvoicePOST /v1/invoicesCreates an invoice.
SiigoApi.InvoiceApigetElectronicInvoiceErrorsGET /v1/invoices/{id}/stamp/errorsReturns the errors list for a rejected electronic invoice by GUID.
SiigoApi.InvoiceApigetInvoiceGET /v1/invoices/{id}Gets the invoice by GUID.
SiigoApi.InvoiceApigetInvoicePDFGET /v1/invoices/{id}/pdfGets the invoice PDF by GUID.
SiigoApi.InvoiceApigetInvoicesGET /v1/invoicesReturns a paginated list of invoices.
SiigoApi.JournalEntryApicreateJournalPOST /v1/journalsCreates a journal entry.
SiigoApi.JournalEntryApigetJournalGET /v1/journals/{id}Gets the journal entry by GUID.
SiigoApi.JournalEntryApigetJournalsGET /v1/journalsReturns a paginated list of journals entries.
SiigoApi.PaymentTypesApigetPaymentTypesGET /v1/payment-typesReturns a list of payment types.
SiigoApi.PriceListsApigetPriceListGET /v1/price-listsReturns a list of price lists.
SiigoApi.ProductApicreateProductPOST /v1/productsCreates a product.
SiigoApi.ProductApideleteProductDELETE /v1/products/{id}Deletes the product by GUID.
SiigoApi.ProductApigetProductGET /v1/products/{id}Gets the product by GUID.
SiigoApi.ProductApigetProductsGET /v1/productsReturns a paginated list of products.
SiigoApi.ProductApiupdateProductPUT /v1/products/{id}Updates the product by GUID.
SiigoApi.TaxesApigetTaxesGET /v1/taxesReturns a list of taxes.
SiigoApi.UsersApigetUsersGET /v1/usersReturns a paginated list of users.
SiigoApi.VoucherApicreateVoucherPOST /v1/vouchersCreates a voucher.
SiigoApi.VoucherApigetVoucherGET /v1/vouchers/{id}Gets the voucher by GUID.
SiigoApi.VoucherApigetVouchersGET /v1/vouchersReturns a paginated list of vouchers.
SiigoApi.WarehousesApigetWarehouseGET /v1/warehousesReturns a list of warehouse.

Documentation for Models

Documentation for Authorization

Bearer

  • Type: Bearer authentication
1.3.0

2 years ago

1.3.0-dev.1

2 years ago

1.2.0

2 years ago

1.0.0-dev.3

2 years ago

1.1.0

2 years ago

1.0.0-dev.2

2 years ago

1.0.0

2 years ago

1.0.0-dev.1

2 years ago