Skip to content

Latest commit

 

History

History
executable file
·
129 lines (88 loc) · 4.03 KB

SalesTaxesApi.md

File metadata and controls

executable file
·
129 lines (88 loc) · 4.03 KB

KoronacloudApiV3.SalesTaxesApi

All URIs are relative to https://www.koronacloud.com/web/api/v3

Method HTTP request Description
getSalesTax GET /accounts/{koronaAccountId}/salesTaxes/{salesTaxId} returns the single sales tax
getSalesTaxes GET /accounts/{koronaAccountId}/salesTaxes lists all sales taxes

getSalesTax

SalesTax getSalesTax(salesTaxId, koronaAccountId)

returns the single sales tax

Example

var KoronacloudApiV3 = require('cloud-api-v3-js-client');
var defaultClient = KoronacloudApiV3.ApiClient.instance;

// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME';
basicAuth.password = 'YOUR PASSWORD';

var apiInstance = new KoronacloudApiV3.SalesTaxesApi();

var salesTaxId = "salesTaxId_example"; // String | id of the related object (important: id should match the uuid-format)

var koronaAccountId = "koronaAccountId_example"; // String | account id of the korona.cloud account


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getSalesTax(salesTaxId, koronaAccountId, callback);

Parameters

Name Type Description Notes
salesTaxId String id of the related object (important: id should match the uuid-format)
koronaAccountId String account id of the korona.cloud account

Return type

SalesTax

Authorization

basicAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

getSalesTaxes

ResultListSalesTax getSalesTaxes(koronaAccountId, opts)

lists all sales taxes

Example

var KoronacloudApiV3 = require('cloud-api-v3-js-client');
var defaultClient = KoronacloudApiV3.ApiClient.instance;

// Configure HTTP basic authorization: basicAuth
var basicAuth = defaultClient.authentications['basicAuth'];
basicAuth.username = 'YOUR USERNAME';
basicAuth.password = 'YOUR PASSWORD';

var apiInstance = new KoronacloudApiV3.SalesTaxesApi();

var koronaAccountId = "koronaAccountId_example"; // String | account id of the korona.cloud account

var opts = { 
  'page': 56, // Number | number of the page to fetch
  'size': 56, // Number | amount of objects to return per page
  'sort': "sort_example", // String | attribute to sort by (multiple separated by comma; max. 5)
  'revision': 789, // Number | last revision number, objects with a greater revision than this will be returned
  'includeDeleted': true // Boolean | indicates deleted objects should be loaded or not (default: false)
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getSalesTaxes(koronaAccountId, opts, callback);

Parameters

Name Type Description Notes
koronaAccountId String account id of the korona.cloud account
page Number number of the page to fetch [optional]
size Number amount of objects to return per page [optional]
sort String attribute to sort by (multiple separated by comma; max. 5) [optional]
revision Number last revision number, objects with a greater revision than this will be returned [optional]
includeDeleted Boolean indicates deleted objects should be loaded or not (default: false) [optional]

Return type

ResultListSalesTax

Authorization

basicAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json