All URIs are relative to https://api-v2.fattureincloud.it
Method | HTTP request | Description |
---|---|---|
CreateCashbookEntry | POST /c/{company_id}/cashbook | Create Cashbook Entry |
DeleteCashbookEntry | DELETE /c/{company_id}/cashbook/{document_id} | Delete Cashbook Entry |
GetCashbookEntry | GET /c/{company_id}/cashbook/{document_id} | Get Cashbook Entry |
ListCashbookEntries | GET /c/{company_id}/cashbook | List Cashbook Entries |
ModifyCashbookEntry | PUT /c/{company_id}/cashbook/{document_id} | Modify Cashbook Entry |
CreateCashbookEntryResponse CreateCashbookEntry (int companyId, CreateCashbookEntryRequest createCashbookEntryRequest = null)
Create Cashbook Entry
Creates a new cashbook entry.
using System.Collections.Generic;
using System.Diagnostics;
using It.FattureInCloud.Sdk.Api;
using It.FattureInCloud.Sdk.Client;
using It.FattureInCloud.Sdk.Model;
namespace Example
{
public class CreateCashbookEntryExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api-v2.fattureincloud.it";
// Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
config.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new CashbookApi(config);
var companyId = 12345; // int | The ID of the company.
var createCashbookEntryRequest = new CreateCashbookEntryRequest(); // CreateCashbookEntryRequest | Cashbook entry. (optional)
try
{
// Create Cashbook Entry
CreateCashbookEntryResponse result = apiInstance.CreateCashbookEntry(companyId, createCashbookEntryRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CashbookApi.CreateCashbookEntry: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Create Cashbook Entry
ApiResponse<CreateCashbookEntryResponse> response = apiInstance.CreateCashbookEntryWithHttpInfo(companyId, createCashbookEntryRequest);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CashbookApi.CreateCashbookEntryWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
companyId | int | The ID of the company. | |
createCashbookEntryRequest | CreateCashbookEntryRequest | Cashbook entry. | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | The created Cashbook Entry. | - |
401 | Unauthorized | - |
404 | Not Found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeleteCashbookEntry (int companyId, string documentId)
Delete Cashbook Entry
Deletes the specified cashbook entry.
using System.Collections.Generic;
using System.Diagnostics;
using It.FattureInCloud.Sdk.Api;
using It.FattureInCloud.Sdk.Client;
using It.FattureInCloud.Sdk.Model;
namespace Example
{
public class DeleteCashbookEntryExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api-v2.fattureincloud.it";
// Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
config.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new CashbookApi(config);
var companyId = 12345; // int | The ID of the company.
var documentId = "documentId_example"; // string | The ID of the document.
try
{
// Delete Cashbook Entry
apiInstance.DeleteCashbookEntry(companyId, documentId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CashbookApi.DeleteCashbookEntry: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Delete Cashbook Entry
apiInstance.DeleteCashbookEntryWithHttpInfo(companyId, documentId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CashbookApi.DeleteCashbookEntryWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
companyId | int | The ID of the company. | |
documentId | string | The ID of the document. |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
200 | Document removed. | - |
401 | Unauthorized | - |
404 | Not Found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetCashbookEntryResponse GetCashbookEntry (int companyId, string documentId, string fields = null, string fieldset = null)
Get Cashbook Entry
Gets the specified cashbook entry.
using System.Collections.Generic;
using System.Diagnostics;
using It.FattureInCloud.Sdk.Api;
using It.FattureInCloud.Sdk.Client;
using It.FattureInCloud.Sdk.Model;
namespace Example
{
public class GetCashbookEntryExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api-v2.fattureincloud.it";
// Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
config.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new CashbookApi(config);
var companyId = 12345; // int | The ID of the company.
var documentId = "documentId_example"; // string | The ID of the document.
var fields = "fields_example"; // string | List of comma-separated fields. (optional)
var fieldset = "basic"; // string | Name of the fieldset. (optional)
try
{
// Get Cashbook Entry
GetCashbookEntryResponse result = apiInstance.GetCashbookEntry(companyId, documentId, fields, fieldset);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CashbookApi.GetCashbookEntry: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Get Cashbook Entry
ApiResponse<GetCashbookEntryResponse> response = apiInstance.GetCashbookEntryWithHttpInfo(companyId, documentId, fields, fieldset);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CashbookApi.GetCashbookEntryWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
companyId | int | The ID of the company. | |
documentId | string | The ID of the document. | |
fields | string | List of comma-separated fields. | [optional] |
fieldset | string | Name of the fieldset. | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Cashbook Entry. | - |
401 | Unauthorized | - |
404 | Not Found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListCashbookEntriesResponse ListCashbookEntries (int companyId, string dateFrom, string dateTo, int? year = null, string type = null, int? paymentAccountId = null)
List Cashbook Entries
Lists the cashbook entries.
using System.Collections.Generic;
using System.Diagnostics;
using It.FattureInCloud.Sdk.Api;
using It.FattureInCloud.Sdk.Client;
using It.FattureInCloud.Sdk.Model;
namespace Example
{
public class ListCashbookEntriesExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api-v2.fattureincloud.it";
// Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
config.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new CashbookApi(config);
var companyId = 12345; // int | The ID of the company.
var dateFrom = "dateFrom_example"; // string | Start date.
var dateTo = "dateTo_example"; // string | End date.
var year = 56; // int? | Filter cashbook by year. (optional)
var type = "all"; // string | Filter cashbook by type. (optional)
var paymentAccountId = 56; // int? | Filter by payment account. (optional)
try
{
// List Cashbook Entries
ListCashbookEntriesResponse result = apiInstance.ListCashbookEntries(companyId, dateFrom, dateTo, year, type, paymentAccountId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CashbookApi.ListCashbookEntries: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// List Cashbook Entries
ApiResponse<ListCashbookEntriesResponse> response = apiInstance.ListCashbookEntriesWithHttpInfo(companyId, dateFrom, dateTo, year, type, paymentAccountId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CashbookApi.ListCashbookEntriesWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
companyId | int | The ID of the company. | |
dateFrom | string | Start date. | |
dateTo | string | End date. | |
year | int? | Filter cashbook by year. | [optional] |
type | string | Filter cashbook by type. | [optional] |
paymentAccountId | int? | Filter by payment account. | [optional] |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Results list. | - |
401 | Unauthorized | - |
404 | Not Found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ModifyCashbookEntryResponse ModifyCashbookEntry (int companyId, string documentId, ModifyCashbookEntryRequest modifyCashbookEntryRequest = null)
Modify Cashbook Entry
Modifies the specified cashbook entry.
using System.Collections.Generic;
using System.Diagnostics;
using It.FattureInCloud.Sdk.Api;
using It.FattureInCloud.Sdk.Client;
using It.FattureInCloud.Sdk.Model;
namespace Example
{
public class ModifyCashbookEntryExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api-v2.fattureincloud.it";
// Configure OAuth2 access token for authorization: OAuth2AuthenticationCodeFlow
config.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new CashbookApi(config);
var companyId = 12345; // int | The ID of the company.
var documentId = "documentId_example"; // string | The ID of the document.
var modifyCashbookEntryRequest = new ModifyCashbookEntryRequest(); // ModifyCashbookEntryRequest | Cashbook Entry (optional)
try
{
// Modify Cashbook Entry
ModifyCashbookEntryResponse result = apiInstance.ModifyCashbookEntry(companyId, documentId, modifyCashbookEntryRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CashbookApi.ModifyCashbookEntry: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Modify Cashbook Entry
ApiResponse<ModifyCashbookEntryResponse> response = apiInstance.ModifyCashbookEntryWithHttpInfo(companyId, documentId, modifyCashbookEntryRequest);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling CashbookApi.ModifyCashbookEntryWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Name | Type | Description | Notes |
---|---|---|---|
companyId | int | The ID of the company. | |
documentId | string | The ID of the document. | |
modifyCashbookEntryRequest | ModifyCashbookEntryRequest | Cashbook Entry | [optional] |
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | The modified Cashbook Entry | - |
401 | Unauthorized | - |
404 | Not Found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]