billingo_api_v3

3.0.14 • Public • Published

billingo_api_v3

BillingoApiV3 - JavaScript client for billingo_api_v3 This is a Billingo API v3 documentation. Our API based on REST software architectural style. API has resource-oriented URLs, accepts JSON-encoded request bodies and returns JSON-encoded responses. To use this API you have to generate a new API key on our site. After that, you can test your API key on this page. This SDK is automatically generated by the Swagger Codegen project:

  • API version: 3.0.14
  • Package version: 3.0.14
  • Build package: io.swagger.codegen.v3.generators.javascript.JavaScriptClientCodegen For more information, please visit https://www.billingo.hu/kapcsolat

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install billingo_api_v3 --save

git

If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var BillingoApiV3 = require('billingo_api_v3');
var defaultClient = BillingoApiV3.ApiClient.instance;

// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix['X-API-KEY'] = "Token"

var api = new BillingoApiV3.BankAccountApi()
var body = new BillingoApiV3.BankAccount(); // {BankAccount} BankAccount object that you would like to store.

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createBankAccount(body, callback);

Documentation for API Endpoints

All URIs are relative to https://api.billingo.hu/v3

Class Method HTTP request Description
BillingoApiV3.BankAccountApi createBankAccount POST /bank-accounts Create a bank account
BillingoApiV3.BankAccountApi deleteBankAccount DELETE /bank-accounts/{id} Delete a bank account
BillingoApiV3.BankAccountApi getBankAccount GET /bank-accounts/{id} Retrieve a bank account
BillingoApiV3.BankAccountApi listBankAccount GET /bank-accounts List all bank account
BillingoApiV3.BankAccountApi updateBankAccount PUT /bank-accounts/{id} Update a bank account
BillingoApiV3.CurrencyApi getConversionRate GET /currencies Get currencies exchange rate.
BillingoApiV3.DocumentApi archiveDocument PUT /documents/{id}/archive Archive a proforma document.
BillingoApiV3.DocumentApi cancelDocument POST /documents/{id}/cancel Cancel a document
BillingoApiV3.DocumentApi createDocument POST /documents Create a document
BillingoApiV3.DocumentApi createDocumentFromDraft PUT /documents/{id} Converts a draft to an invoice.
BillingoApiV3.DocumentApi createDocumentFromProforma POST /documents/{id}/create-from-proforma Create a document from proforma.
BillingoApiV3.DocumentApi createModificationDocument POST /documents/{id}/create-modification-document Create a modification document.
BillingoApiV3.DocumentApi createReceipt POST /documents/receipt Create a receipt
BillingoApiV3.DocumentApi createReceiptFromDraft PUT /documents/receipt/{id} Converts a draft to a receipt.
BillingoApiV3.DocumentApi deleteDocument DELETE /documents/{id} Delete a draft.
BillingoApiV3.DocumentApi deletePayment DELETE /documents/{id}/payments Delete all payment history on document
BillingoApiV3.DocumentApi documentCopy POST /documents/{id}/copy Copy a document
BillingoApiV3.DocumentApi downloadDocument GET /documents/{id}/download Download a document in PDF format.
BillingoApiV3.DocumentApi getDocument GET /documents/{id} Retrieve a document
BillingoApiV3.DocumentApi getDocumentByVendorId GET /documents/vendor/{vendor_id} Retrieve a document by vendor id
BillingoApiV3.DocumentApi getOnlineSzamlaStatus GET /documents/{id}/online-szamla Retrieve a document Online Számla status
BillingoApiV3.DocumentApi getPayment GET /documents/{id}/payments Retrieve a payment histroy
BillingoApiV3.DocumentApi getPublicUrl GET /documents/{id}/public-url Retrieve a document download public url.
BillingoApiV3.DocumentApi listDocument GET /documents List all documents
BillingoApiV3.DocumentApi posPrint GET /documents/{id}/print/pos Returns a printable POS PDF
BillingoApiV3.DocumentApi sendDocument POST /documents/{id}/send Send invoice to given email adresses.
BillingoApiV3.DocumentApi updatePayment PUT /documents/{id}/payments Update payment history
BillingoApiV3.DocumentBlockApi listDocumentBlock GET /document-blocks List all document blocks
BillingoApiV3.DocumentExportApi create POST /document-export Create document export.
BillingoApiV3.DocumentExportApi download GET /document-export/{id}/download Return exported binary file.
BillingoApiV3.DocumentExportApi poll GET /document-export/{id}/poll Retrieve export state.
BillingoApiV3.OrganizationApi getOrganizationData GET /organization Retrieve a organization data.
BillingoApiV3.PartnerApi createPartner POST /partners Create a partner
BillingoApiV3.PartnerApi deletePartner DELETE /partners/{id} Delete a partner
BillingoApiV3.PartnerApi getPartner GET /partners/{id} Retrieve a partner
BillingoApiV3.PartnerApi listPartner GET /partners List all partners
BillingoApiV3.PartnerApi updatePartner PUT /partners/{id} Update a partner
BillingoApiV3.ProductApi createProduct POST /products Create a product
BillingoApiV3.ProductApi deleteProduct DELETE /products/{id} Delete a product
BillingoApiV3.ProductApi getProduct GET /products/{id} Retrieve a product
BillingoApiV3.ProductApi listProduct GET /products List all product
BillingoApiV3.ProductApi updateProduct PUT /products/{id} Update a product
BillingoApiV3.SpendingApi spendingDelete DELETE /spendings/{id} Deletes a spending.
BillingoApiV3.SpendingApi spendingList GET /spendings Lists all spending
BillingoApiV3.SpendingApi spendingSave POST /spendings Creates a new spending.
BillingoApiV3.SpendingApi spendingShow GET /spendings/{id} Retrieves one specific spending.
BillingoApiV3.SpendingApi spendingUpdate PUT /spendings/{id} Updates a spending item.
BillingoApiV3.UtilApi checkTaxNumber GET /utils/check-tax-number/{tax_number} Check tax number.
BillingoApiV3.UtilApi getId GET /utils/convert-legacy-id/{id} Convert legacy ID to v3 ID.
BillingoApiV3.UtilApi getServerTime GET /utils/time Get the server time

Documentation for Models

Documentation for Authorization

api_key

  • Type: API key
  • API key parameter name: X-API-KEY
  • Location: HTTP header

Readme

Keywords

none

Package Sidebar

Install

npm i billingo_api_v3

Weekly Downloads

1

Version

3.0.14

License

Unlicense

Unpacked Size

961 kB

Total Files

323

Last publish

Collaborators

  • szucsdavid