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 |
ListArchiveCategoriesResponse listArchiveCategories(companyId)
List Archive Categories
Lists the archive categories.
// Import classes:
import it.fattureincloud.sdk.ApiClient;
import it.fattureincloud.sdk.ApiException;
import it.fattureincloud.sdk.Configuration;
import it.fattureincloud.sdk.auth.*;
import it.fattureincloud.sdk.models.*;
import it.fattureincloud.sdk.api.InfoApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api-v2.fattureincloud.it");
// Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
OAuth OAuth2AuthenticationCodeFlow = (OAuth) defaultClient.getAuthentication("OAuth2AuthenticationCodeFlow");
OAuth2AuthenticationCodeFlow.setAccessToken("YOUR ACCESS TOKEN");
InfoApi apiInstance = new InfoApi(defaultClient);
Integer companyId = 12345; // Integer | The ID of the company.
try {
ListArchiveCategoriesResponse result = apiInstance.listArchiveCategories(companyId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling InfoApi#listArchiveCategories");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
companyId | Integer | The ID of the company. |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Archive Categories list. | - |
401 | Unauthorized | - |
404 | Not Found | - |
ListCitiesResponse listCities(postalCode, city)
List Cities
Lists the Italian cities.
// Import classes:
import it.fattureincloud.sdk.ApiClient;
import it.fattureincloud.sdk.ApiException;
import it.fattureincloud.sdk.Configuration;
import it.fattureincloud.sdk.auth.*;
import it.fattureincloud.sdk.models.*;
import it.fattureincloud.sdk.api.InfoApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api-v2.fattureincloud.it");
// Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
OAuth OAuth2AuthenticationCodeFlow = (OAuth) defaultClient.getAuthentication("OAuth2AuthenticationCodeFlow");
OAuth2AuthenticationCodeFlow.setAccessToken("YOUR ACCESS TOKEN");
InfoApi apiInstance = new InfoApi(defaultClient);
String postalCode = "postalCode_example"; // String | Postal code for filtering.
String city = "city_example"; // String | City for filtering (ignored if postal_code is passed).
try {
ListCitiesResponse result = apiInstance.listCities(postalCode, city);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling InfoApi#listCities");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
postalCode | String | Postal code for filtering. | [optional] |
city | String | City for filtering (ignored if postal_code is passed). | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Cities List. | - |
ListCostCentersResponse listCostCenters(companyId)
List Cost Centers
Lists the cost centers.
// Import classes:
import it.fattureincloud.sdk.ApiClient;
import it.fattureincloud.sdk.ApiException;
import it.fattureincloud.sdk.Configuration;
import it.fattureincloud.sdk.auth.*;
import it.fattureincloud.sdk.models.*;
import it.fattureincloud.sdk.api.InfoApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api-v2.fattureincloud.it");
// Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
OAuth OAuth2AuthenticationCodeFlow = (OAuth) defaultClient.getAuthentication("OAuth2AuthenticationCodeFlow");
OAuth2AuthenticationCodeFlow.setAccessToken("YOUR ACCESS TOKEN");
InfoApi apiInstance = new InfoApi(defaultClient);
Integer companyId = 12345; // Integer | The ID of the company.
try {
ListCostCentersResponse result = apiInstance.listCostCenters(companyId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling InfoApi#listCostCenters");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
companyId | Integer | The ID of the company. |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | List of Cost Centers | - |
401 | Unauthorized | - |
404 | Not Found | - |
ListCountriesResponse listCountries()
List Countries
Lists the supported countries.
// Import classes:
import it.fattureincloud.sdk.ApiClient;
import it.fattureincloud.sdk.ApiException;
import it.fattureincloud.sdk.Configuration;
import it.fattureincloud.sdk.auth.*;
import it.fattureincloud.sdk.models.*;
import it.fattureincloud.sdk.api.InfoApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api-v2.fattureincloud.it");
// Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
OAuth OAuth2AuthenticationCodeFlow = (OAuth) defaultClient.getAuthentication("OAuth2AuthenticationCodeFlow");
OAuth2AuthenticationCodeFlow.setAccessToken("YOUR ACCESS TOKEN");
InfoApi apiInstance = new InfoApi(defaultClient);
try {
ListCountriesResponse result = apiInstance.listCountries();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling InfoApi#listCountries");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | List of countries | - |
401 | Unauthorized | - |
ListCurrenciesResponse listCurrencies()
List Currencies
Lists the supported currencies.
// Import classes:
import it.fattureincloud.sdk.ApiClient;
import it.fattureincloud.sdk.ApiException;
import it.fattureincloud.sdk.Configuration;
import it.fattureincloud.sdk.auth.*;
import it.fattureincloud.sdk.models.*;
import it.fattureincloud.sdk.api.InfoApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api-v2.fattureincloud.it");
// Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
OAuth OAuth2AuthenticationCodeFlow = (OAuth) defaultClient.getAuthentication("OAuth2AuthenticationCodeFlow");
OAuth2AuthenticationCodeFlow.setAccessToken("YOUR ACCESS TOKEN");
InfoApi apiInstance = new InfoApi(defaultClient);
try {
ListCurrenciesResponse result = apiInstance.listCurrencies();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling InfoApi#listCurrencies");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Currencies List. | - |
401 | Unauthorized | - |
ListDeliveryNotesDefaultCausalsResponse listDeliveryNotesDefaultCausals()
List Delivery Notes Default Causals
Lists the delivery note default causals.
// Import classes:
import it.fattureincloud.sdk.ApiClient;
import it.fattureincloud.sdk.ApiException;
import it.fattureincloud.sdk.Configuration;
import it.fattureincloud.sdk.auth.*;
import it.fattureincloud.sdk.models.*;
import it.fattureincloud.sdk.api.InfoApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api-v2.fattureincloud.it");
// Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
OAuth OAuth2AuthenticationCodeFlow = (OAuth) defaultClient.getAuthentication("OAuth2AuthenticationCodeFlow");
OAuth2AuthenticationCodeFlow.setAccessToken("YOUR ACCESS TOKEN");
InfoApi apiInstance = new InfoApi(defaultClient);
try {
ListDeliveryNotesDefaultCausalsResponse result = apiInstance.listDeliveryNotesDefaultCausals();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling InfoApi#listDeliveryNotesDefaultCausals");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
ListDeliveryNotesDefaultCausalsResponse
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | List of Delivery Notes Default Causals | - |
401 | Unauthorized | - |
ListDetailedCountriesResponse listDetailedCountries()
List Detailed Countries
Lists the supported countries.
// Import classes:
import it.fattureincloud.sdk.ApiClient;
import it.fattureincloud.sdk.ApiException;
import it.fattureincloud.sdk.Configuration;
import it.fattureincloud.sdk.auth.*;
import it.fattureincloud.sdk.models.*;
import it.fattureincloud.sdk.api.InfoApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api-v2.fattureincloud.it");
// Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
OAuth OAuth2AuthenticationCodeFlow = (OAuth) defaultClient.getAuthentication("OAuth2AuthenticationCodeFlow");
OAuth2AuthenticationCodeFlow.setAccessToken("YOUR ACCESS TOKEN");
InfoApi apiInstance = new InfoApi(defaultClient);
try {
ListDetailedCountriesResponse result = apiInstance.listDetailedCountries();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling InfoApi#listDetailedCountries");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | List of detailed countries | - |
401 | Unauthorized | - |
ListLanguagesResponse listLanguages()
List Languages
Lists the supported languages.
// Import classes:
import it.fattureincloud.sdk.ApiClient;
import it.fattureincloud.sdk.ApiException;
import it.fattureincloud.sdk.Configuration;
import it.fattureincloud.sdk.auth.*;
import it.fattureincloud.sdk.models.*;
import it.fattureincloud.sdk.api.InfoApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api-v2.fattureincloud.it");
// Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
OAuth OAuth2AuthenticationCodeFlow = (OAuth) defaultClient.getAuthentication("OAuth2AuthenticationCodeFlow");
OAuth2AuthenticationCodeFlow.setAccessToken("YOUR ACCESS TOKEN");
InfoApi apiInstance = new InfoApi(defaultClient);
try {
ListLanguagesResponse result = apiInstance.listLanguages();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling InfoApi#listLanguages");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | LanguagesList | - |
401 | Unauthorized | - |
ListPaymentAccountsResponse listPaymentAccounts(companyId, fields, fieldset, sort)
List Payment Accounts
Lists the available payment accounts.
// Import classes:
import it.fattureincloud.sdk.ApiClient;
import it.fattureincloud.sdk.ApiException;
import it.fattureincloud.sdk.Configuration;
import it.fattureincloud.sdk.auth.*;
import it.fattureincloud.sdk.models.*;
import it.fattureincloud.sdk.api.InfoApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api-v2.fattureincloud.it");
// Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
OAuth OAuth2AuthenticationCodeFlow = (OAuth) defaultClient.getAuthentication("OAuth2AuthenticationCodeFlow");
OAuth2AuthenticationCodeFlow.setAccessToken("YOUR ACCESS TOKEN");
InfoApi apiInstance = new InfoApi(defaultClient);
Integer companyId = 12345; // Integer | The ID of the company.
String fields = "fields_example"; // String | List of comma-separated fields.
String fieldset = "basic"; // String | Name of the fieldset.
String sort = "sort_example"; // String | List of comma-separated fields for result sorting (minus for desc sorting).
try {
ListPaymentAccountsResponse result = apiInstance.listPaymentAccounts(companyId, fields, fieldset, sort);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling InfoApi#listPaymentAccounts");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
companyId | Integer | The ID of the company. | |
fields | String | List of comma-separated fields. | [optional] |
fieldset | String | Name of the fieldset. | [optional] [enum: basic, detailed] |
sort | String | List of comma-separated fields for result sorting (minus for desc sorting). | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Payment accounts list. | - |
401 | Unauthorized | - |
404 | Not Found | - |
ListPaymentMethodsResponse listPaymentMethods(companyId, fields, fieldset, sort)
List Payment Methods
Lists the available payment methods.
// Import classes:
import it.fattureincloud.sdk.ApiClient;
import it.fattureincloud.sdk.ApiException;
import it.fattureincloud.sdk.Configuration;
import it.fattureincloud.sdk.auth.*;
import it.fattureincloud.sdk.models.*;
import it.fattureincloud.sdk.api.InfoApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api-v2.fattureincloud.it");
// Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
OAuth OAuth2AuthenticationCodeFlow = (OAuth) defaultClient.getAuthentication("OAuth2AuthenticationCodeFlow");
OAuth2AuthenticationCodeFlow.setAccessToken("YOUR ACCESS TOKEN");
InfoApi apiInstance = new InfoApi(defaultClient);
Integer companyId = 12345; // Integer | The ID of the company.
String fields = "fields_example"; // String | List of comma-separated fields.
String fieldset = "basic"; // String | Name of the fieldset.
String sort = "sort_example"; // String | List of comma-separated fields for result sorting (minus for desc sorting).
try {
ListPaymentMethodsResponse result = apiInstance.listPaymentMethods(companyId, fields, fieldset, sort);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling InfoApi#listPaymentMethods");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
companyId | Integer | The ID of the company. | |
fields | String | List of comma-separated fields. | [optional] |
fieldset | String | Name of the fieldset. | [optional] [enum: basic, detailed] |
sort | String | List of comma-separated fields for result sorting (minus for desc sorting). | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Payment methods list. | - |
401 | Unauthorized | - |
404 | Not Found | - |
ListProductCategoriesResponse listProductCategories(companyId, context)
List Product Categories
Lists the product categories.
// Import classes:
import it.fattureincloud.sdk.ApiClient;
import it.fattureincloud.sdk.ApiException;
import it.fattureincloud.sdk.Configuration;
import it.fattureincloud.sdk.auth.*;
import it.fattureincloud.sdk.models.*;
import it.fattureincloud.sdk.api.InfoApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api-v2.fattureincloud.it");
// Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
OAuth OAuth2AuthenticationCodeFlow = (OAuth) defaultClient.getAuthentication("OAuth2AuthenticationCodeFlow");
OAuth2AuthenticationCodeFlow.setAccessToken("YOUR ACCESS TOKEN");
InfoApi apiInstance = new InfoApi(defaultClient);
Integer companyId = 12345; // Integer | The ID of the company.
String context = "products"; // String | Categories resource type.
try {
ListProductCategoriesResponse result = apiInstance.listProductCategories(companyId, context);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling InfoApi#listProductCategories");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
companyId | Integer | The ID of the company. | |
context | String | Categories resource type. | [enum: products, issued_documents, received_documents] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Product Categories List | - |
401 | Unauthorized | - |
404 | Not Found | - |
ListReceivedDocumentCategoriesResponse listReceivedDocumentCategories(companyId)
List Received Document Categories
Lists the received document categories.
// Import classes:
import it.fattureincloud.sdk.ApiClient;
import it.fattureincloud.sdk.ApiException;
import it.fattureincloud.sdk.Configuration;
import it.fattureincloud.sdk.auth.*;
import it.fattureincloud.sdk.models.*;
import it.fattureincloud.sdk.api.InfoApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api-v2.fattureincloud.it");
// Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
OAuth OAuth2AuthenticationCodeFlow = (OAuth) defaultClient.getAuthentication("OAuth2AuthenticationCodeFlow");
OAuth2AuthenticationCodeFlow.setAccessToken("YOUR ACCESS TOKEN");
InfoApi apiInstance = new InfoApi(defaultClient);
Integer companyId = 12345; // Integer | The ID of the company.
try {
ListReceivedDocumentCategoriesResponse result = apiInstance.listReceivedDocumentCategories(companyId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling InfoApi#listReceivedDocumentCategories");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
companyId | Integer | The ID of the company. |
ListReceivedDocumentCategoriesResponse
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Received Document Categories List | - |
ListRevenueCentersResponse listRevenueCenters(companyId)
List Revenue Centers
Lists the revenue centers.
// Import classes:
import it.fattureincloud.sdk.ApiClient;
import it.fattureincloud.sdk.ApiException;
import it.fattureincloud.sdk.Configuration;
import it.fattureincloud.sdk.auth.*;
import it.fattureincloud.sdk.models.*;
import it.fattureincloud.sdk.api.InfoApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api-v2.fattureincloud.it");
// Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
OAuth OAuth2AuthenticationCodeFlow = (OAuth) defaultClient.getAuthentication("OAuth2AuthenticationCodeFlow");
OAuth2AuthenticationCodeFlow.setAccessToken("YOUR ACCESS TOKEN");
InfoApi apiInstance = new InfoApi(defaultClient);
Integer companyId = 12345; // Integer | The ID of the company.
try {
ListRevenueCentersResponse result = apiInstance.listRevenueCenters(companyId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling InfoApi#listRevenueCenters");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
companyId | Integer | The ID of the company. |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | List of Revenue Centers | - |
401 | Unauthorized | - |
404 | Not Found | - |
ListTemplatesResponse listTemplates(type, byType)
List Templates
Lists the available templates.
// Import classes:
import it.fattureincloud.sdk.ApiClient;
import it.fattureincloud.sdk.ApiException;
import it.fattureincloud.sdk.Configuration;
import it.fattureincloud.sdk.auth.*;
import it.fattureincloud.sdk.models.*;
import it.fattureincloud.sdk.api.InfoApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api-v2.fattureincloud.it");
// Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
OAuth OAuth2AuthenticationCodeFlow = (OAuth) defaultClient.getAuthentication("OAuth2AuthenticationCodeFlow");
OAuth2AuthenticationCodeFlow.setAccessToken("YOUR ACCESS TOKEN");
InfoApi apiInstance = new InfoApi(defaultClient);
String type = "all"; // String | Type of the templates.
Boolean byType = false; // Boolean | [Only if type=all] If true, splits the list in objects, grouping templates by type.
try {
ListTemplatesResponse result = apiInstance.listTemplates(type, byType);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling InfoApi#listTemplates");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
type | String | Type of the templates. | [optional] [default to all] [enum: all, standard, delivery_note, accompanying_invoice] |
byType | Boolean | [Only if type=all] If true, splits the list in objects, grouping templates by type. | [optional] [default to false] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Templates list. | - |
401 | Unauthorized | - |
ListUnitsOfMeasureResponse listUnitsOfMeasure()
List Units of Measure
Lists the units of measure.
// Import classes:
import it.fattureincloud.sdk.ApiClient;
import it.fattureincloud.sdk.ApiException;
import it.fattureincloud.sdk.Configuration;
import it.fattureincloud.sdk.auth.*;
import it.fattureincloud.sdk.models.*;
import it.fattureincloud.sdk.api.InfoApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api-v2.fattureincloud.it");
// Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
OAuth OAuth2AuthenticationCodeFlow = (OAuth) defaultClient.getAuthentication("OAuth2AuthenticationCodeFlow");
OAuth2AuthenticationCodeFlow.setAccessToken("YOUR ACCESS TOKEN");
InfoApi apiInstance = new InfoApi(defaultClient);
try {
ListUnitsOfMeasureResponse result = apiInstance.listUnitsOfMeasure();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling InfoApi#listUnitsOfMeasure");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Units of measure. | - |
401 | Unauthorized | - |
ListVatTypesResponse listVatTypes(companyId, fieldset)
List Vat Types
Lists the available vat types.
// Import classes:
import it.fattureincloud.sdk.ApiClient;
import it.fattureincloud.sdk.ApiException;
import it.fattureincloud.sdk.Configuration;
import it.fattureincloud.sdk.auth.*;
import it.fattureincloud.sdk.models.*;
import it.fattureincloud.sdk.api.InfoApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api-v2.fattureincloud.it");
// Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
OAuth OAuth2AuthenticationCodeFlow = (OAuth) defaultClient.getAuthentication("OAuth2AuthenticationCodeFlow");
OAuth2AuthenticationCodeFlow.setAccessToken("YOUR ACCESS TOKEN");
InfoApi apiInstance = new InfoApi(defaultClient);
Integer companyId = 12345; // Integer | The ID of the company.
String fieldset = "basic"; // String | Name of the fieldset.
try {
ListVatTypesResponse result = apiInstance.listVatTypes(companyId, fieldset);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling InfoApi#listVatTypes");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
companyId | Integer | The ID of the company. | |
fieldset | String | Name of the fieldset. | [optional] [enum: basic, detailed] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | List of Vat Types. | - |
401 | Unauthorized | - |
404 | Not Found | - |