All URIs are relative to https://api-v2.fattureincloud.it
Method | HTTP request | Description |
---|---|---|
createPaymentAccount | POST /c/{company_id}/settings/payment_accounts | Create Payment Account |
createPaymentMethod | POST /c/{company_id}/settings/payment_methods | Create Payment Method |
createVatType | POST /c/{company_id}/settings/vat_types | Create Vat Type |
deletePaymentAccount | DELETE /c/{company_id}/settings/payment_accounts/{payment_account_id} | Delete Payment Account |
deletePaymentMethod | DELETE /c/{company_id}/settings/payment_methods/{payment_method_id} | Delete Payment Method |
deleteVatType | DELETE /c/{company_id}/settings/vat_types/{vat_type_id} | Delete Vat Type |
getPaymentAccount | GET /c/{company_id}/settings/payment_accounts/{payment_account_id} | Get Payment Account |
getPaymentMethod | GET /c/{company_id}/settings/payment_methods/{payment_method_id} | Get Payment Method |
getTaxProfile | GET /c/{company_id}/settings/tax_profile | Get Tax Profile |
getVatType | GET /c/{company_id}/settings/vat_types/{vat_type_id} | Get Vat Type |
modifyPaymentAccount | PUT /c/{company_id}/settings/payment_accounts/{payment_account_id} | Modify Payment Account |
modifyPaymentMethod | PUT /c/{company_id}/settings/payment_methods/{payment_method_id} | Modify Payment Method |
modifyVatType | PUT /c/{company_id}/settings/vat_types/{vat_type_id} | Modify Vat Type |
CreatePaymentAccountResponse createPaymentAccount(companyId, createPaymentAccountRequest)
Create Payment Account
Creates a new payment account.
// 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.SettingsApi;
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");
SettingsApi apiInstance = new SettingsApi(defaultClient);
Integer companyId = 12345; // Integer | The ID of the company.
CreatePaymentAccountRequest createPaymentAccountRequest = new CreatePaymentAccountRequest(); // CreatePaymentAccountRequest |
try {
CreatePaymentAccountResponse result = apiInstance.createPaymentAccount(companyId, createPaymentAccountRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SettingsApi#createPaymentAccount");
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. | |
createPaymentAccountRequest | CreatePaymentAccountRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Example response | - |
CreatePaymentMethodResponse createPaymentMethod(companyId, createPaymentMethodRequest)
Create Payment Method
Creates a new payment method.
// 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.SettingsApi;
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");
SettingsApi apiInstance = new SettingsApi(defaultClient);
Integer companyId = 12345; // Integer | The ID of the company.
CreatePaymentMethodRequest createPaymentMethodRequest = new CreatePaymentMethodRequest(); // CreatePaymentMethodRequest |
try {
CreatePaymentMethodResponse result = apiInstance.createPaymentMethod(companyId, createPaymentMethodRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SettingsApi#createPaymentMethod");
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. | |
createPaymentMethodRequest | CreatePaymentMethodRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Example response | - |
CreateVatTypeResponse createVatType(companyId, createVatTypeRequest)
Create Vat Type
Creates a vat type.
// 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.SettingsApi;
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");
SettingsApi apiInstance = new SettingsApi(defaultClient);
Integer companyId = 12345; // Integer | The ID of the company.
CreateVatTypeRequest createVatTypeRequest = new CreateVatTypeRequest(); // CreateVatTypeRequest |
try {
CreateVatTypeResponse result = apiInstance.createVatType(companyId, createVatTypeRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SettingsApi#createVatType");
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. | |
createVatTypeRequest | CreateVatTypeRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Example response | - |
deletePaymentAccount(companyId, paymentAccountId)
Delete Payment Account
Deletes the specified payment account.
// 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.SettingsApi;
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");
SettingsApi apiInstance = new SettingsApi(defaultClient);
Integer companyId = 12345; // Integer | The ID of the company.
Integer paymentAccountId = 56; // Integer | The Referred Payment Account Id.
try {
apiInstance.deletePaymentAccount(companyId, paymentAccountId);
} catch (ApiException e) {
System.err.println("Exception when calling SettingsApi#deletePaymentAccount");
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. | |
paymentAccountId | Integer | The Referred Payment Account Id. |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
deletePaymentMethod(companyId, paymentMethodId)
Delete Payment Method
Deletes the specified payment method.
// 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.SettingsApi;
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");
SettingsApi apiInstance = new SettingsApi(defaultClient);
Integer companyId = 12345; // Integer | The ID of the company.
Integer paymentMethodId = 56; // Integer | The Referred Payment Method Id.
try {
apiInstance.deletePaymentMethod(companyId, paymentMethodId);
} catch (ApiException e) {
System.err.println("Exception when calling SettingsApi#deletePaymentMethod");
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. | |
paymentMethodId | Integer | The Referred Payment Method Id. |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
deleteVatType(companyId, vatTypeId)
Delete Vat Type
Deletes the specified vat type.
// 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.SettingsApi;
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");
SettingsApi apiInstance = new SettingsApi(defaultClient);
Integer companyId = 12345; // Integer | The ID of the company.
Integer vatTypeId = 56; // Integer | The Referred Vat Type Id.
try {
apiInstance.deleteVatType(companyId, vatTypeId);
} catch (ApiException e) {
System.err.println("Exception when calling SettingsApi#deleteVatType");
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. | |
vatTypeId | Integer | The Referred Vat Type Id. |
null (empty response body)
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
GetPaymentAccountResponse getPaymentAccount(companyId, paymentAccountId, fields, fieldset)
Get Payment Account
Gets the specified payment account.
// 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.SettingsApi;
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");
SettingsApi apiInstance = new SettingsApi(defaultClient);
Integer companyId = 12345; // Integer | The ID of the company.
Integer paymentAccountId = 56; // Integer | The Referred Payment Account Id.
String fields = "fields_example"; // String | List of comma-separated fields.
String fieldset = "basic"; // String | Name of the fieldset.
try {
GetPaymentAccountResponse result = apiInstance.getPaymentAccount(companyId, paymentAccountId, fields, fieldset);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SettingsApi#getPaymentAccount");
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. | |
paymentAccountId | Integer | The Referred Payment Account Id. | |
fields | String | List of comma-separated fields. | [optional] |
fieldset | String | Name of the fieldset. | [optional] [enum: basic, detailed] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Example response | - |
GetPaymentMethodResponse getPaymentMethod(companyId, paymentMethodId, fields, fieldset)
Get Payment Method
Gets the specified payment method.
// 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.SettingsApi;
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");
SettingsApi apiInstance = new SettingsApi(defaultClient);
Integer companyId = 12345; // Integer | The ID of the company.
Integer paymentMethodId = 56; // Integer | The Referred Payment Method Id.
String fields = "fields_example"; // String | List of comma-separated fields.
String fieldset = "basic"; // String | Name of the fieldset.
try {
GetPaymentMethodResponse result = apiInstance.getPaymentMethod(companyId, paymentMethodId, fields, fieldset);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SettingsApi#getPaymentMethod");
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. | |
paymentMethodId | Integer | The Referred Payment Method Id. | |
fields | String | List of comma-separated fields. | [optional] |
fieldset | String | Name of the fieldset. | [optional] [enum: basic, detailed] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Example response | - |
GetTaxProfileResponse getTaxProfile(companyId)
Get Tax Profile
Gets the Tax Profile
// 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.SettingsApi;
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");
SettingsApi apiInstance = new SettingsApi(defaultClient);
Integer companyId = 12345; // Integer | The ID of the company.
try {
GetTaxProfileResponse result = apiInstance.getTaxProfile(companyId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SettingsApi#getTaxProfile");
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 | Example response | - |
GetVatTypeResponse getVatType(companyId, vatTypeId)
Get Vat Type
Gets the specified vat type.
// 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.SettingsApi;
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");
SettingsApi apiInstance = new SettingsApi(defaultClient);
Integer companyId = 12345; // Integer | The ID of the company.
Integer vatTypeId = 56; // Integer | The Referred Vat Type Id.
try {
GetVatTypeResponse result = apiInstance.getVatType(companyId, vatTypeId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SettingsApi#getVatType");
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. | |
vatTypeId | Integer | The Referred Vat Type Id. |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Example response | - |
ModifyPaymentAccountResponse modifyPaymentAccount(companyId, paymentAccountId, modifyPaymentAccountRequest)
Modify Payment Account
Modifies the specified payment account.
// 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.SettingsApi;
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");
SettingsApi apiInstance = new SettingsApi(defaultClient);
Integer companyId = 12345; // Integer | The ID of the company.
Integer paymentAccountId = 56; // Integer | The Referred Payment Account Id.
ModifyPaymentAccountRequest modifyPaymentAccountRequest = new ModifyPaymentAccountRequest(); // ModifyPaymentAccountRequest |
try {
ModifyPaymentAccountResponse result = apiInstance.modifyPaymentAccount(companyId, paymentAccountId, modifyPaymentAccountRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SettingsApi#modifyPaymentAccount");
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. | |
paymentAccountId | Integer | The Referred Payment Account Id. | |
modifyPaymentAccountRequest | ModifyPaymentAccountRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Example response | - |
ModifyPaymentMethodResponse modifyPaymentMethod(companyId, paymentMethodId, modifyPaymentMethodRequest)
Modify Payment Method
Modifies the specified payment method.
// 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.SettingsApi;
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");
SettingsApi apiInstance = new SettingsApi(defaultClient);
Integer companyId = 12345; // Integer | The ID of the company.
Integer paymentMethodId = 56; // Integer | The Referred Payment Method Id.
ModifyPaymentMethodRequest modifyPaymentMethodRequest = new ModifyPaymentMethodRequest(); // ModifyPaymentMethodRequest |
try {
ModifyPaymentMethodResponse result = apiInstance.modifyPaymentMethod(companyId, paymentMethodId, modifyPaymentMethodRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SettingsApi#modifyPaymentMethod");
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. | |
paymentMethodId | Integer | The Referred Payment Method Id. | |
modifyPaymentMethodRequest | ModifyPaymentMethodRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Example response | - |
ModifyVatTypeResponse modifyVatType(companyId, vatTypeId, modifyVatTypeRequest)
Modify Vat Type
Modifies the specified vat type.
// 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.SettingsApi;
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");
SettingsApi apiInstance = new SettingsApi(defaultClient);
Integer companyId = 12345; // Integer | The ID of the company.
Integer vatTypeId = 56; // Integer | The Referred Vat Type Id.
ModifyVatTypeRequest modifyVatTypeRequest = new ModifyVatTypeRequest(); // ModifyVatTypeRequest |
try {
ModifyVatTypeResponse result = apiInstance.modifyVatType(companyId, vatTypeId, modifyVatTypeRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling SettingsApi#modifyVatType");
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. | |
vatTypeId | Integer | The Referred Vat Type Id. | |
modifyVatTypeRequest | ModifyVatTypeRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Example response | - |