Skip to content

Latest commit

 

History

History
814 lines (502 loc) · 19.7 KB

InfoApi.md

File metadata and controls

814 lines (502 loc) · 19.7 KB

InfoApi

All URIs are relative to https://api-v2.fattureincloud.it

Method HTTP request Description
listArchiveCategories GET /c/{company_id}/info/archive_categories List Archive Categories
listCities GET /info/cities List Cities
listCostCenters GET /c/{company_id}/info/cost_centers List Cost Centers
listCountries GET /info/countries List Countries
listCurrencies GET /info/currencies List Currencies
listDeliveryNotesDefaultCausals GET /info/dn_causals List Delivery Notes Default Causals
listDetailedCountries GET /info/detailed_countries List Detailed Countries
listLanguages GET /info/languages List Languages
listPaymentAccounts GET /c/{company_id}/info/payment_accounts List Payment Accounts
listPaymentMethods GET /c/{company_id}/info/payment_methods List Payment Methods
listProductCategories GET /c/{company_id}/info/product_categories List Product Categories
listReceivedDocumentCategories GET /c/{company_id}/info/received_document_categories List Received Document Categories
listRevenueCenters GET /c/{company_id}/info/revenue_centers List Revenue Centers
listTemplates GET /info/templates List Templates
listUnitsOfMeasure GET /info/measures List Units of Measure
listVatTypes GET /c/{company_id}/info/vat_types List Vat Types

listArchiveCategories

ListArchiveCategoriesResponse listArchiveCategories(companyId)

List Archive Categories

Lists the archive categories.

Example

import { Configuration, InfoApi  } from '@fattureincloud/fattureincloud-ts-sdk';

// Configure OAuth2 access token for authorization: 
const apiConfig = new Configuration({
  accessToken: "YOUR ACCESS TOKEN"
});

let apiInstance = new InfoApi(apiConfig);
let companyId = 12345; // Number | The ID of the company.
apiInstance.listArchiveCategories(companyId).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

Parameters

Name Type Description Notes
companyId Number The ID of the company.

Return type

ListArchiveCategoriesResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

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

listCities

ListCitiesResponse listCities(opts)

List Cities

Lists the Italian cities.

Example

import { Configuration, InfoApi  } from '@fattureincloud/fattureincloud-ts-sdk';

// Configure OAuth2 access token for authorization: 
const apiConfig = new Configuration({
  accessToken: "YOUR ACCESS TOKEN"
});

let apiInstance = new InfoApi(apiConfig);

let postalCode = "postalCode_example", // String | Postal code for filtering.
let city = "city_example" // String | City for filtering (ignored if postal_code is passed).

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

Parameters

Name Type Description Notes
postalCode String Postal code for filtering. [optional]
city String City for filtering (ignored if postal_code is passed). [optional]

Return type

ListCitiesResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

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

listCostCenters

ListCostCentersResponse listCostCenters(companyId)

List Cost Centers

Lists the cost centers.

Example

import { Configuration, InfoApi  } from '@fattureincloud/fattureincloud-ts-sdk';

// Configure OAuth2 access token for authorization: 
const apiConfig = new Configuration({
  accessToken: "YOUR ACCESS TOKEN"
});

let apiInstance = new InfoApi(apiConfig);
let companyId = 12345; // Number | The ID of the company.
apiInstance.listCostCenters(companyId).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

Parameters

Name Type Description Notes
companyId Number The ID of the company.

Return type

ListCostCentersResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

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

listCountries

ListCountriesResponse listCountries()

List Countries

Lists the supported countries.

Example

import { Configuration, InfoApi  } from '@fattureincloud/fattureincloud-ts-sdk';

// Configure OAuth2 access token for authorization: 
const apiConfig = new Configuration({
  accessToken: "YOUR ACCESS TOKEN"
});

let apiInstance = new InfoApi(apiConfig);
apiInstance.listCountries().then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

Parameters

This endpoint does not need any parameter.

Return type

ListCountriesResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

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

listCurrencies

ListCurrenciesResponse listCurrencies()

List Currencies

Lists the supported currencies.

Example

import { Configuration, InfoApi  } from '@fattureincloud/fattureincloud-ts-sdk';

// Configure OAuth2 access token for authorization: 
const apiConfig = new Configuration({
  accessToken: "YOUR ACCESS TOKEN"
});

let apiInstance = new InfoApi(apiConfig);
apiInstance.listCurrencies().then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

Parameters

This endpoint does not need any parameter.

Return type

ListCurrenciesResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

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

listDeliveryNotesDefaultCausals

ListDeliveryNotesDefaultCausalsResponse listDeliveryNotesDefaultCausals()

List Delivery Notes Default Causals

Lists the delivery note default causals.

Example

import { Configuration, InfoApi  } from '@fattureincloud/fattureincloud-ts-sdk';

// Configure OAuth2 access token for authorization: 
const apiConfig = new Configuration({
  accessToken: "YOUR ACCESS TOKEN"
});

let apiInstance = new InfoApi(apiConfig);
apiInstance.listDeliveryNotesDefaultCausals().then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

Parameters

This endpoint does not need any parameter.

Return type

ListDeliveryNotesDefaultCausalsResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

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

listDetailedCountries

ListDetailedCountriesResponse listDetailedCountries()

List Detailed Countries

Lists the supported countries.

Example

import { Configuration, InfoApi  } from '@fattureincloud/fattureincloud-ts-sdk';

// Configure OAuth2 access token for authorization: 
const apiConfig = new Configuration({
  accessToken: "YOUR ACCESS TOKEN"
});

let apiInstance = new InfoApi(apiConfig);
apiInstance.listDetailedCountries().then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

Parameters

This endpoint does not need any parameter.

Return type

ListDetailedCountriesResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

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

listLanguages

ListLanguagesResponse listLanguages()

List Languages

Lists the supported languages.

Example

import { Configuration, InfoApi  } from '@fattureincloud/fattureincloud-ts-sdk';

// Configure OAuth2 access token for authorization: 
const apiConfig = new Configuration({
  accessToken: "YOUR ACCESS TOKEN"
});

let apiInstance = new InfoApi(apiConfig);
apiInstance.listLanguages().then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

Parameters

This endpoint does not need any parameter.

Return type

ListLanguagesResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

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

listPaymentAccounts

ListPaymentAccountsResponse listPaymentAccounts(companyId, opts)

List Payment Accounts

Lists the available payment accounts.

Example

import { Configuration, InfoApi  } from '@fattureincloud/fattureincloud-ts-sdk';

// Configure OAuth2 access token for authorization: 
const apiConfig = new Configuration({
  accessToken: "YOUR ACCESS TOKEN"
});

let apiInstance = new InfoApi(apiConfig);
let companyId = 12345; // Number | The ID of the company.

let fields = "fields_example", // String | List of comma-separated fields.
let fieldset = "fieldset_example", // String | Name of the fieldset.
let sort = "sort_example" // String | List of comma-separated fields for result sorting (minus for desc sorting).

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

Parameters

Name Type Description Notes
companyId Number The ID of the company.
fields String List of comma-separated fields. [optional]
fieldset String Name of the fieldset. [optional]
sort String List of comma-separated fields for result sorting (minus for desc sorting). [optional]

Return type

ListPaymentAccountsResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

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

listPaymentMethods

ListPaymentMethodsResponse listPaymentMethods(companyId, opts)

List Payment Methods

Lists the available payment methods.

Example

import { Configuration, InfoApi  } from '@fattureincloud/fattureincloud-ts-sdk';

// Configure OAuth2 access token for authorization: 
const apiConfig = new Configuration({
  accessToken: "YOUR ACCESS TOKEN"
});

let apiInstance = new InfoApi(apiConfig);
let companyId = 12345; // Number | The ID of the company.

let fields = "fields_example", // String | List of comma-separated fields.
let fieldset = "fieldset_example", // String | Name of the fieldset.
let sort = "sort_example" // String | List of comma-separated fields for result sorting (minus for desc sorting).

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

Parameters

Name Type Description Notes
companyId Number The ID of the company.
fields String List of comma-separated fields. [optional]
fieldset String Name of the fieldset. [optional]
sort String List of comma-separated fields for result sorting (minus for desc sorting). [optional]

Return type

ListPaymentMethodsResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

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

listProductCategories

ListProductCategoriesResponse listProductCategories(companyId, context)

List Product Categories

Lists the product categories.

Example

import { Configuration, InfoApi  } from '@fattureincloud/fattureincloud-ts-sdk';

// Configure OAuth2 access token for authorization: 
const apiConfig = new Configuration({
  accessToken: "YOUR ACCESS TOKEN"
});

let apiInstance = new InfoApi(apiConfig);
let companyId = 12345; // Number | The ID of the company.
let context = "context_example"; // String | Categories resource type.
apiInstance.listProductCategories(companyId, context).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

Parameters

Name Type Description Notes
companyId Number The ID of the company.
context String Categories resource type.

Return type

ListProductCategoriesResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

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

listReceivedDocumentCategories

ListReceivedDocumentCategoriesResponse listReceivedDocumentCategories(companyId)

List Received Document Categories

Lists the received document categories.

Example

import { Configuration, InfoApi  } from '@fattureincloud/fattureincloud-ts-sdk';

// Configure OAuth2 access token for authorization: 
const apiConfig = new Configuration({
  accessToken: "YOUR ACCESS TOKEN"
});

let apiInstance = new InfoApi(apiConfig);
let companyId = 12345; // Number | The ID of the company.
apiInstance.listReceivedDocumentCategories(companyId).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

Parameters

Name Type Description Notes
companyId Number The ID of the company.

Return type

ListReceivedDocumentCategoriesResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

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

listRevenueCenters

ListRevenueCentersResponse listRevenueCenters(companyId)

List Revenue Centers

Lists the revenue centers.

Example

import { Configuration, InfoApi  } from '@fattureincloud/fattureincloud-ts-sdk';

// Configure OAuth2 access token for authorization: 
const apiConfig = new Configuration({
  accessToken: "YOUR ACCESS TOKEN"
});

let apiInstance = new InfoApi(apiConfig);
let companyId = 12345; // Number | The ID of the company.
apiInstance.listRevenueCenters(companyId).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

Parameters

Name Type Description Notes
companyId Number The ID of the company.

Return type

ListRevenueCentersResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

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

listTemplates

ListTemplatesResponse listTemplates(opts)

List Templates

Lists the available templates.

Example

import { Configuration, InfoApi  } from '@fattureincloud/fattureincloud-ts-sdk';

// Configure OAuth2 access token for authorization: 
const apiConfig = new Configuration({
  accessToken: "YOUR ACCESS TOKEN"
});

let apiInstance = new InfoApi(apiConfig);

let type = "'all'", // String | Type of the templates.
let byType = false // Boolean | [Only if type=all] If true, splits the list in objects, grouping templates by type.

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

Parameters

Name Type Description Notes
type String Type of the templates. [optional] [default to 'all']
byType Boolean [Only if type=all] If true, splits the list in objects, grouping templates by type. [optional] [default to false]

Return type

ListTemplatesResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

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

listUnitsOfMeasure

ListUnitsOfMeasureResponse listUnitsOfMeasure()

List Units of Measure

Lists the units of measure.

Example

import { Configuration, InfoApi  } from '@fattureincloud/fattureincloud-ts-sdk';

// Configure OAuth2 access token for authorization: 
const apiConfig = new Configuration({
  accessToken: "YOUR ACCESS TOKEN"
});

let apiInstance = new InfoApi(apiConfig);
apiInstance.listUnitsOfMeasure().then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

Parameters

This endpoint does not need any parameter.

Return type

ListUnitsOfMeasureResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

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

listVatTypes

ListVatTypesResponse listVatTypes(companyId, opts)

List Vat Types

Lists the available vat types.

Example

import { Configuration, InfoApi  } from '@fattureincloud/fattureincloud-ts-sdk';

// Configure OAuth2 access token for authorization: 
const apiConfig = new Configuration({
  accessToken: "YOUR ACCESS TOKEN"
});

let apiInstance = new InfoApi(apiConfig);
let companyId = 12345; // Number | The ID of the company.

let fieldset = "fieldset_example" // String | Name of the fieldset.

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

Parameters

Name Type Description Notes
companyId Number The ID of the company.
fieldset String Name of the fieldset. [optional]

Return type

ListVatTypesResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

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