Skip to content

Latest commit

 

History

History
1150 lines (750 loc) · 33 KB

InfoApi.md

File metadata and controls

1150 lines (750 loc) · 33 KB

\InfoApi

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

ListArchiveCategories

ListArchiveCategoriesResponse ListArchiveCategories(ctx, companyId).Execute()

List Archive Categories

Example

package main

import (
    "context"
    "encoding/json"
    "fmt"
    "os"
    fattureincloudapi "github.com/fattureincloud/fattureincloud-go-sdk/api"
    fattureincloud "github.com/fattureincloud/fattureincloud-go-sdk/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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
companyId int32 The ID of the company.

Other Parameters

Other parameters are passed through a pointer to a apiListArchiveCategoriesRequest struct via the builder pattern

Name Type Description Notes

Return type

ListArchiveCategoriesResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListCities

ListCitiesResponse ListCities(ctx).PostalCode(postalCode).City(city).Execute()

List Cities

Example

package main

import (
    "context"
    "encoding/json"
    "fmt"
    "os"
    fattureincloudapi "github.com/fattureincloud/fattureincloud-go-sdk/api"
    fattureincloud "github.com/fattureincloud/fattureincloud-go-sdk/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)
}

Path Parameters

Other Parameters

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).

Return type

ListCitiesResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListCostCenters

ListCostCentersResponse ListCostCenters(ctx, companyId).Execute()

List Cost Centers

Example

package main

import (
    "context"
    "encoding/json"
    "fmt"
    "os"
    fattureincloudapi "github.com/fattureincloud/fattureincloud-go-sdk/api"
    fattureincloud "github.com/fattureincloud/fattureincloud-go-sdk/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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
companyId int32 The ID of the company.

Other Parameters

Other parameters are passed through a pointer to a apiListCostCentersRequest struct via the builder pattern

Name Type Description Notes

Return type

ListCostCentersResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListCountries

ListCountriesResponse ListCountries(ctx).Execute()

List Countries

Example

package main

import (
    "context"
    "encoding/json"
    "fmt"
    "os"
    fattureincloudapi "github.com/fattureincloud/fattureincloud-go-sdk/api"
    fattureincloud "github.com/fattureincloud/fattureincloud-go-sdk/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)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiListCountriesRequest struct via the builder pattern

Return type

ListCountriesResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListCurrencies

ListCurrenciesResponse ListCurrencies(ctx).Execute()

List Currencies

Example

package main

import (
    "context"
    "encoding/json"
    "fmt"
    "os"
    fattureincloudapi "github.com/fattureincloud/fattureincloud-go-sdk/api"
    fattureincloud "github.com/fattureincloud/fattureincloud-go-sdk/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)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiListCurrenciesRequest struct via the builder pattern

Return type

ListCurrenciesResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListDeliveryNotesDefaultCausals

ListDeliveryNotesDefaultCausalsResponse ListDeliveryNotesDefaultCausals(ctx).Execute()

List Delivery Notes Default Causals

Example

package main

import (
    "context"
    "encoding/json"
    "fmt"
    "os"
    fattureincloudapi "github.com/fattureincloud/fattureincloud-go-sdk/api"
    fattureincloud "github.com/fattureincloud/fattureincloud-go-sdk/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)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiListDeliveryNotesDefaultCausalsRequest struct via the builder pattern

Return type

ListDeliveryNotesDefaultCausalsResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListDetailedCountries

ListDetailedCountriesResponse ListDetailedCountries(ctx).Execute()

List Detailed Countries

Example

package main

import (
    "context"
    "encoding/json"
    "fmt"
    "os"
    fattureincloudapi "github.com/fattureincloud/fattureincloud-go-sdk/api"
    fattureincloud "github.com/fattureincloud/fattureincloud-go-sdk/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)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiListDetailedCountriesRequest struct via the builder pattern

Return type

ListDetailedCountriesResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListLanguages

ListLanguagesResponse ListLanguages(ctx).Execute()

List Languages

Example

package main

import (
    "context"
    "encoding/json"
    "fmt"
    "os"
    fattureincloudapi "github.com/fattureincloud/fattureincloud-go-sdk/api"
    fattureincloud "github.com/fattureincloud/fattureincloud-go-sdk/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)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiListLanguagesRequest struct via the builder pattern

Return type

ListLanguagesResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListPaymentAccounts

ListPaymentAccountsResponse ListPaymentAccounts(ctx, companyId).Fields(fields).Fieldset(fieldset).Sort(sort).Execute()

List Payment Accounts

Example

package main

import (
    "context"
    "encoding/json"
    "fmt"
    "os"
    fattureincloudapi "github.com/fattureincloud/fattureincloud-go-sdk/api"
    fattureincloud "github.com/fattureincloud/fattureincloud-go-sdk/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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
companyId int32 The ID of the company.

Other Parameters

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). |

Return type

ListPaymentAccountsResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListPaymentMethods

ListPaymentMethodsResponse ListPaymentMethods(ctx, companyId).Fields(fields).Fieldset(fieldset).Sort(sort).Execute()

List Payment Methods

Example

package main

import (
    "context"
    "encoding/json"
    "fmt"
    "os"
    fattureincloudapi "github.com/fattureincloud/fattureincloud-go-sdk/api"
    fattureincloud "github.com/fattureincloud/fattureincloud-go-sdk/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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
companyId int32 The ID of the company.

Other Parameters

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). |

Return type

ListPaymentMethodsResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListProductCategories

ListProductCategoriesResponse ListProductCategories(ctx, companyId).Context(context).Execute()

List Product Categories

Example

package main

import (
    "context"
    "encoding/json"
    "fmt"
    "os"
    fattureincloudapi "github.com/fattureincloud/fattureincloud-go-sdk/api"
    fattureincloud "github.com/fattureincloud/fattureincloud-go-sdk/model"
)

func main() {
    companyId := int32(12345) // int32 | The ID of the company.
    context := "context_example" // string | 

    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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
companyId int32 The ID of the company.

Other Parameters

Other parameters are passed through a pointer to a apiListProductCategoriesRequest struct via the builder pattern

Name Type Description Notes

context | string | |

Return type

ListProductCategoriesResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListReceivedDocumentCategories

ListReceivedDocumentCategoriesResponse ListReceivedDocumentCategories(ctx, companyId).Execute()

List Received Document Categories

Example

package main

import (
    "context"
    "encoding/json"
    "fmt"
    "os"
    fattureincloudapi "github.com/fattureincloud/fattureincloud-go-sdk/api"
    fattureincloud "github.com/fattureincloud/fattureincloud-go-sdk/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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
companyId int32 The ID of the company.

Other Parameters

Other parameters are passed through a pointer to a apiListReceivedDocumentCategoriesRequest struct via the builder pattern

Name Type Description Notes

Return type

ListReceivedDocumentCategoriesResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListRevenueCenters

ListRevenueCentersResponse ListRevenueCenters(ctx, companyId).Execute()

List Revenue Centers

Example

package main

import (
    "context"
    "encoding/json"
    "fmt"
    "os"
    fattureincloudapi "github.com/fattureincloud/fattureincloud-go-sdk/api"
    fattureincloud "github.com/fattureincloud/fattureincloud-go-sdk/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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
companyId int32 The ID of the company.

Other Parameters

Other parameters are passed through a pointer to a apiListRevenueCentersRequest struct via the builder pattern

Name Type Description Notes

Return type

ListRevenueCentersResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListTemplates

ListTemplatesResponse ListTemplates(ctx).Type_(type_).ByType(byType).Execute()

List Templates

Example

package main

import (
    "context"
    "encoding/json"
    "fmt"
    "os"
    fattureincloudapi "github.com/fattureincloud/fattureincloud-go-sdk/api"
    fattureincloud "github.com/fattureincloud/fattureincloud-go-sdk/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)
}

Path Parameters

Other Parameters

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]

Return type

ListTemplatesResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListUnitsOfMeasure

ListUnitsOfMeasureResponse ListUnitsOfMeasure(ctx).Execute()

List Units of Measure

Example

package main

import (
    "context"
    "encoding/json"
    "fmt"
    "os"
    fattureincloudapi "github.com/fattureincloud/fattureincloud-go-sdk/api"
    fattureincloud "github.com/fattureincloud/fattureincloud-go-sdk/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)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiListUnitsOfMeasureRequest struct via the builder pattern

Return type

ListUnitsOfMeasureResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListVatTypes

ListVatTypesResponse ListVatTypes(ctx, companyId).Fieldset(fieldset).Execute()

List Vat Types

Example

package main

import (
    "context"
    "encoding/json"
    "fmt"
    "os"
    fattureincloudapi "github.com/fattureincloud/fattureincloud-go-sdk/api"
    fattureincloud "github.com/fattureincloud/fattureincloud-go-sdk/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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
companyId int32 The ID of the company.

Other Parameters

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. |

Return type

ListVatTypesResponse

Authorization

OAuth2AuthenticationCodeFlow

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]