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(ctx, companyId).Execute()
List Archive Categories
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.
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.InfoAPI.ListArchiveCategories(auth, companyId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `InfoAPI.ListArchiveCategories``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListArchiveCategories`: ListArchiveCategoriesResponse
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 apiListArchiveCategoriesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListCitiesResponse ListCities(ctx).PostalCode(postalCode).City(city).Execute()
List Cities
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() {
postalCode := "postalCode_example" // string | Postal code for filtering. (optional)
city := "city_example" // string | City for filtering (ignored if postal_code is passed). (optional)
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.InfoAPI.ListCities(auth).PostalCode(postalCode).City(city).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `InfoAPI.ListCities``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListCities`: ListCitiesResponse
json.NewEncoder(os.Stdout).Encode(resp)
}
Other parameters are passed through a pointer to a apiListCitiesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
postalCode | string | Postal code for filtering. | |
city | string | City for filtering (ignored if postal_code is passed). |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListCostCentersResponse ListCostCenters(ctx, companyId).Execute()
List Cost Centers
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.
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.InfoAPI.ListCostCenters(auth, companyId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `InfoAPI.ListCostCenters``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListCostCenters`: ListCostCentersResponse
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 apiListCostCentersRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListCountriesResponse ListCountries(ctx).Execute()
List Countries
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() {
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.InfoAPI.ListCountries(auth).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `InfoAPI.ListCountries``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListCountries`: ListCountriesResponse
json.NewEncoder(os.Stdout).Encode(resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiListCountriesRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListCurrenciesResponse ListCurrencies(ctx).Execute()
List Currencies
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() {
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.InfoAPI.ListCurrencies(auth).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `InfoAPI.ListCurrencies``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListCurrencies`: ListCurrenciesResponse
json.NewEncoder(os.Stdout).Encode(resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiListCurrenciesRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListDeliveryNotesDefaultCausalsResponse ListDeliveryNotesDefaultCausals(ctx).Execute()
List Delivery Notes Default Causals
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() {
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.InfoAPI.ListDeliveryNotesDefaultCausals(auth).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `InfoAPI.ListDeliveryNotesDefaultCausals``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListDeliveryNotesDefaultCausals`: ListDeliveryNotesDefaultCausalsResponse
json.NewEncoder(os.Stdout).Encode(resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiListDeliveryNotesDefaultCausalsRequest struct via the builder pattern
ListDeliveryNotesDefaultCausalsResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListDetailedCountriesResponse ListDetailedCountries(ctx).Execute()
List Detailed Countries
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() {
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.InfoAPI.ListDetailedCountries(auth).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `InfoAPI.ListDetailedCountries``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListDetailedCountries`: ListDetailedCountriesResponse
json.NewEncoder(os.Stdout).Encode(resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiListDetailedCountriesRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListLanguagesResponse ListLanguages(ctx).Execute()
List Languages
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() {
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.InfoAPI.ListLanguages(auth).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `InfoAPI.ListLanguages``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListLanguages`: ListLanguagesResponse
json.NewEncoder(os.Stdout).Encode(resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiListLanguagesRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListPaymentAccountsResponse ListPaymentAccounts(ctx, companyId).Fields(fields).Fieldset(fieldset).Sort(sort).Execute()
List Payment Accounts
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.
fields := "fields_example" // string | List of comma-separated fields. (optional)
fieldset := "fieldset_example" // string | Name of the fieldset. (optional)
sort := "sort_example" // string | List of comma-separated fields for result sorting (minus for desc sorting). (optional)
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.InfoAPI.ListPaymentAccounts(auth, companyId).Fields(fields).Fieldset(fieldset).Sort(sort).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `InfoAPI.ListPaymentAccounts``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListPaymentAccounts`: ListPaymentAccountsResponse
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 apiListPaymentAccountsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
fields | string | List of comma-separated fields. | fieldset | string | Name of the fieldset. | sort | string | List of comma-separated fields for result sorting (minus for desc sorting). |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListPaymentMethodsResponse ListPaymentMethods(ctx, companyId).Fields(fields).Fieldset(fieldset).Sort(sort).Execute()
List Payment Methods
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.
fields := "fields_example" // string | List of comma-separated fields. (optional)
fieldset := "fieldset_example" // string | Name of the fieldset. (optional)
sort := "sort_example" // string | List of comma-separated fields for result sorting (minus for desc sorting). (optional)
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.InfoAPI.ListPaymentMethods(auth, companyId).Fields(fields).Fieldset(fieldset).Sort(sort).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `InfoAPI.ListPaymentMethods``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListPaymentMethods`: ListPaymentMethodsResponse
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 apiListPaymentMethodsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
fields | string | List of comma-separated fields. | fieldset | string | Name of the fieldset. | sort | string | List of comma-separated fields for result sorting (minus for desc sorting). |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListProductCategoriesResponse ListProductCategories(ctx, companyId).Context(context).Execute()
List Product Categories
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.
context := "context_example" // string | Categories resource type.
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.InfoAPI.ListProductCategories(auth, companyId).Context(context).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `InfoAPI.ListProductCategories``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListProductCategories`: ListProductCategoriesResponse
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 apiListProductCategoriesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
context | string | Categories resource type. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListReceivedDocumentCategoriesResponse ListReceivedDocumentCategories(ctx, companyId).Execute()
List Received Document Categories
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.
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.InfoAPI.ListReceivedDocumentCategories(auth, companyId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `InfoAPI.ListReceivedDocumentCategories``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListReceivedDocumentCategories`: ListReceivedDocumentCategoriesResponse
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 apiListReceivedDocumentCategoriesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
ListReceivedDocumentCategoriesResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListRevenueCentersResponse ListRevenueCenters(ctx, companyId).Execute()
List Revenue Centers
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.
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.InfoAPI.ListRevenueCenters(auth, companyId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `InfoAPI.ListRevenueCenters``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListRevenueCenters`: ListRevenueCentersResponse
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 apiListRevenueCentersRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListTemplatesResponse ListTemplates(ctx).Type_(type_).ByType(byType).Execute()
List Templates
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() {
type_ := "type__example" // string | Type of the templates. (optional) (default to "all")
byType := true // bool | [Only if type=all] If true, splits the list in objects, grouping templates by type. (optional) (default to false)
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.InfoAPI.ListTemplates(auth).Type_(type_).ByType(byType).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `InfoAPI.ListTemplates``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListTemplates`: ListTemplatesResponse
json.NewEncoder(os.Stdout).Encode(resp)
}
Other parameters are passed through a pointer to a apiListTemplatesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
type_ | string | Type of the templates. | [default to "all"] |
byType | bool | [Only if type=all] If true, splits the list in objects, grouping templates by type. | [default to false] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListUnitsOfMeasureResponse ListUnitsOfMeasure(ctx).Execute()
List Units of Measure
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() {
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.InfoAPI.ListUnitsOfMeasure(auth).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `InfoAPI.ListUnitsOfMeasure``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListUnitsOfMeasure`: ListUnitsOfMeasureResponse
json.NewEncoder(os.Stdout).Encode(resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiListUnitsOfMeasureRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListVatTypesResponse ListVatTypes(ctx, companyId).Fieldset(fieldset).Execute()
List Vat Types
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.
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.InfoAPI.ListVatTypes(auth, companyId).Fieldset(fieldset).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `InfoAPI.ListVatTypes``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListVatTypes`: ListVatTypesResponse
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 apiListVatTypesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
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]