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(ctx, companyId).CreateCashbookEntryRequest(createCashbookEntryRequest).Execute()
Create Cashbook Entry
package main
import (
"context"
"encoding/json"
"fmt"
"os"
fattureincloudapi "github.com/fattureincloud/fattureincloud-go-sdk/v2/api"
fattureincloud "github.com/fattureincloud/fattureincloud-go-sdk/v2/model"
)
func main() {
companyId := int32(12345) // int32 | The ID of the company.
createCashbookEntryRequest := *fattureincloud.NewCreateCashbookEntryRequest() // CreateCashbookEntryRequest | Cashbook entry. (optional)
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.CashbookAPI.CreateCashbookEntry(auth, companyId).CreateCashbookEntryRequest(createCashbookEntryRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CashbookAPI.CreateCashbookEntry``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateCashbookEntry`: CreateCashbookEntryResponse
json.NewEncoder(os.Stdout).Encode(resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
companyId | int32 | The ID of the company. |
Other parameters are passed through a pointer to a apiCreateCashbookEntryRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
createCashbookEntryRequest | CreateCashbookEntryRequest | Cashbook entry. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteCashbookEntry(ctx, companyId, documentId).Execute()
Delete Cashbook Entry
package main
import (
"context"
"encoding/json"
"fmt"
"os"
fattureincloudapi "github.com/fattureincloud/fattureincloud-go-sdk/v2/api"
fattureincloud "github.com/fattureincloud/fattureincloud-go-sdk/v2/model"
)
func main() {
companyId := int32(12345) // int32 | The ID of the company.
documentId := "documentId_example" // string | The ID of the document.
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.CashbookAPI.DeleteCashbookEntry(auth, companyId, documentId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CashbookAPI.DeleteCashbookEntry``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
companyId | int32 | The ID of the company. | |
documentId | string | The ID of the document. |
Other parameters are passed through a pointer to a apiDeleteCashbookEntryRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetCashbookEntryResponse GetCashbookEntry(ctx, companyId, documentId).Fields(fields).Fieldset(fieldset).Execute()
Get Cashbook Entry
package main
import (
"context"
"encoding/json"
"fmt"
"os"
fattureincloudapi "github.com/fattureincloud/fattureincloud-go-sdk/v2/api"
fattureincloud "github.com/fattureincloud/fattureincloud-go-sdk/v2/model"
)
func main() {
companyId := int32(12345) // int32 | The ID of the company.
documentId := "documentId_example" // string | The ID of the document.
fields := "fields_example" // string | List of comma-separated fields. (optional)
fieldset := "fieldset_example" // string | Name of the fieldset. (optional)
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.CashbookAPI.GetCashbookEntry(auth, companyId, documentId).Fields(fields).Fieldset(fieldset).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CashbookAPI.GetCashbookEntry``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetCashbookEntry`: GetCashbookEntryResponse
json.NewEncoder(os.Stdout).Encode(resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
companyId | int32 | The ID of the company. | |
documentId | string | The ID of the document. |
Other parameters are passed through a pointer to a apiGetCashbookEntryRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
fields | string | List of comma-separated fields. | fieldset | string | Name of the fieldset. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListCashbookEntriesResponse ListCashbookEntries(ctx, companyId).DateFrom(dateFrom).DateTo(dateTo).Year(year).Type_(type_).PaymentAccountId(paymentAccountId).Execute()
List Cashbook Entries
package main
import (
"context"
"encoding/json"
"fmt"
"os"
fattureincloudapi "github.com/fattureincloud/fattureincloud-go-sdk/v2/api"
fattureincloud "github.com/fattureincloud/fattureincloud-go-sdk/v2/model"
)
func main() {
companyId := int32(12345) // int32 | The ID of the company.
dateFrom := "dateFrom_example" // string | Start date.
dateTo := "dateTo_example" // string | End date.
year := int32(56) // int32 | Filter cashbook by year. (optional)
type_ := "type__example" // string | Filter cashbook by type. (optional)
paymentAccountId := int32(56) // int32 | Filter by payment account. (optional)
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.CashbookAPI.ListCashbookEntries(auth, companyId).DateFrom(dateFrom).DateTo(dateTo).Year(year).Type_(type_).PaymentAccountId(paymentAccountId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CashbookAPI.ListCashbookEntries``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListCashbookEntries`: ListCashbookEntriesResponse
json.NewEncoder(os.Stdout).Encode(resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
companyId | int32 | The ID of the company. |
Other parameters are passed through a pointer to a apiListCashbookEntriesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
dateFrom | string | Start date. | dateTo | string | End date. | year | int32 | Filter cashbook by year. | type_ | string | Filter cashbook by type. | paymentAccountId | int32 | Filter by payment account. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ModifyCashbookEntryResponse ModifyCashbookEntry(ctx, companyId, documentId).ModifyCashbookEntryRequest(modifyCashbookEntryRequest).Execute()
Modify Cashbook Entry
package main
import (
"context"
"encoding/json"
"fmt"
"os"
fattureincloudapi "github.com/fattureincloud/fattureincloud-go-sdk/v2/api"
fattureincloud "github.com/fattureincloud/fattureincloud-go-sdk/v2/model"
)
func main() {
companyId := int32(12345) // int32 | The ID of the company.
documentId := "documentId_example" // string | The ID of the document.
modifyCashbookEntryRequest := *fattureincloud.NewModifyCashbookEntryRequest() // ModifyCashbookEntryRequest | Cashbook Entry (optional)
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.CashbookAPI.ModifyCashbookEntry(auth, companyId, documentId).ModifyCashbookEntryRequest(modifyCashbookEntryRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `CashbookAPI.ModifyCashbookEntry``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ModifyCashbookEntry`: ModifyCashbookEntryResponse
json.NewEncoder(os.Stdout).Encode(resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
companyId | int32 | The ID of the company. | |
documentId | string | The ID of the document. |
Other parameters are passed through a pointer to a apiModifyCashbookEntryRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
modifyCashbookEntryRequest | ModifyCashbookEntryRequest | Cashbook Entry |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]