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 |
| GetTemplate | Get /c/{company_id}/settings/templates/{template_id} | Get Template |
| GetVatType | Get /c/{company_id}/settings/vat_types/{vat_type_id} | Get Vat Type |
| ListTemplates | Get /c/{company_id}/settings/templates | List Templates |
| 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(ctx, companyId).CreatePaymentAccountRequest(createPaymentAccountRequest).Execute()
Create Payment Account
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.
createPaymentAccountRequest := *fattureincloud.NewCreatePaymentAccountRequest() // CreatePaymentAccountRequest | (optional)
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.SettingsAPI.CreatePaymentAccount(auth, companyId).CreatePaymentAccountRequest(createPaymentAccountRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SettingsAPI.CreatePaymentAccount``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreatePaymentAccount`: CreatePaymentAccountResponse
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 apiCreatePaymentAccountRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
createPaymentAccountRequest | CreatePaymentAccountRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreatePaymentMethodResponse CreatePaymentMethod(ctx, companyId).CreatePaymentMethodRequest(createPaymentMethodRequest).Execute()
Create Payment Method
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.
createPaymentMethodRequest := *fattureincloud.NewCreatePaymentMethodRequest() // CreatePaymentMethodRequest | (optional)
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.SettingsAPI.CreatePaymentMethod(auth, companyId).CreatePaymentMethodRequest(createPaymentMethodRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SettingsAPI.CreatePaymentMethod``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreatePaymentMethod`: CreatePaymentMethodResponse
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 apiCreatePaymentMethodRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
createPaymentMethodRequest | CreatePaymentMethodRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateVatTypeResponse CreateVatType(ctx, companyId).CreateVatTypeRequest(createVatTypeRequest).Execute()
Create Vat Type
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.
createVatTypeRequest := *fattureincloud.NewCreateVatTypeRequest() // CreateVatTypeRequest | (optional)
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.SettingsAPI.CreateVatType(auth, companyId).CreateVatTypeRequest(createVatTypeRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SettingsAPI.CreateVatType``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateVatType`: CreateVatTypeResponse
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 apiCreateVatTypeRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
createVatTypeRequest | CreateVatTypeRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeletePaymentAccount(ctx, companyId, paymentAccountId).Execute()
Delete Payment Account
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.
paymentAccountId := int32(56) // int32 | The Referred Payment Account Id.
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.SettingsAPI.DeletePaymentAccount(auth, companyId, paymentAccountId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SettingsAPI.DeletePaymentAccount``: %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. | |
| paymentAccountId | int32 | The Referred Payment Account Id. |
Other parameters are passed through a pointer to a apiDeletePaymentAccountRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeletePaymentMethod(ctx, companyId, paymentMethodId).Execute()
Delete Payment Method
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.
paymentMethodId := int32(56) // int32 | The Referred Payment Method Id.
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.SettingsAPI.DeletePaymentMethod(auth, companyId, paymentMethodId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SettingsAPI.DeletePaymentMethod``: %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. | |
| paymentMethodId | int32 | The Referred Payment Method Id. |
Other parameters are passed through a pointer to a apiDeletePaymentMethodRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteVatType(ctx, companyId, vatTypeId).Execute()
Delete Vat Type
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.
vatTypeId := int32(56) // int32 | The Referred Vat Type Id.
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.SettingsAPI.DeleteVatType(auth, companyId, vatTypeId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SettingsAPI.DeleteVatType``: %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. | |
| vatTypeId | int32 | The Referred Vat Type Id. |
Other parameters are passed through a pointer to a apiDeleteVatTypeRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetPaymentAccountResponse GetPaymentAccount(ctx, companyId, paymentAccountId).Fields(fields).Fieldset(fieldset).Execute()
Get Payment Account
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.
paymentAccountId := int32(56) // int32 | The Referred Payment Account Id.
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.SettingsAPI.GetPaymentAccount(auth, companyId, paymentAccountId).Fields(fields).Fieldset(fieldset).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SettingsAPI.GetPaymentAccount``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetPaymentAccount`: GetPaymentAccountResponse
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. | |
| paymentAccountId | int32 | The Referred Payment Account Id. |
Other parameters are passed through a pointer to a apiGetPaymentAccountRequest 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]
GetPaymentMethodResponse GetPaymentMethod(ctx, companyId, paymentMethodId).Fields(fields).Fieldset(fieldset).Execute()
Get Payment Method
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.
paymentMethodId := int32(56) // int32 | The Referred Payment Method Id.
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.SettingsAPI.GetPaymentMethod(auth, companyId, paymentMethodId).Fields(fields).Fieldset(fieldset).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SettingsAPI.GetPaymentMethod``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetPaymentMethod`: GetPaymentMethodResponse
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. | |
| paymentMethodId | int32 | The Referred Payment Method Id. |
Other parameters are passed through a pointer to a apiGetPaymentMethodRequest 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]
GetTaxProfileResponse GetTaxProfile(ctx, companyId).Execute()
Get Tax Profile
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.SettingsAPI.GetTaxProfile(auth, companyId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SettingsAPI.GetTaxProfile``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetTaxProfile`: GetTaxProfileResponse
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 apiGetTaxProfileRequest 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]
GetTemplatesResponse GetTemplate(ctx, companyId, templateId).Fields(fields).Fieldset(fieldset).Execute()
Get Template
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.
templateId := int32(56) // int32 | The Referred Template Id.
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.SettingsAPI.GetTemplate(auth, companyId, templateId).Fields(fields).Fieldset(fieldset).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SettingsAPI.GetTemplate``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetTemplate`: GetTemplatesResponse
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. | |
| templateId | int32 | The Referred Template Id. |
Other parameters are passed through a pointer to a apiGetTemplateRequest 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]
GetVatTypeResponse GetVatType(ctx, companyId, vatTypeId).Execute()
Get Vat Type
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.
vatTypeId := int32(56) // int32 | The Referred Vat Type Id.
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.SettingsAPI.GetVatType(auth, companyId, vatTypeId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SettingsAPI.GetVatType``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetVatType`: GetVatTypeResponse
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. | |
| vatTypeId | int32 | The Referred Vat Type Id. |
Other parameters are passed through a pointer to a apiGetVatTypeRequest 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, companyId).Fields(fields).Fieldset(fieldset).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() {
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)
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.SettingsAPI.ListTemplates(auth, companyId).Fields(fields).Fieldset(fieldset).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SettingsAPI.ListTemplates``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListTemplates`: ListTemplatesResponse
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 apiListTemplatesRequest 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]
ModifyPaymentAccountResponse ModifyPaymentAccount(ctx, companyId, paymentAccountId).ModifyPaymentAccountRequest(modifyPaymentAccountRequest).Execute()
Modify Payment Account
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.
paymentAccountId := int32(56) // int32 | The Referred Payment Account Id.
modifyPaymentAccountRequest := *fattureincloud.NewModifyPaymentAccountRequest() // ModifyPaymentAccountRequest | (optional)
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.SettingsAPI.ModifyPaymentAccount(auth, companyId, paymentAccountId).ModifyPaymentAccountRequest(modifyPaymentAccountRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SettingsAPI.ModifyPaymentAccount``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ModifyPaymentAccount`: ModifyPaymentAccountResponse
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. | |
| paymentAccountId | int32 | The Referred Payment Account Id. |
Other parameters are passed through a pointer to a apiModifyPaymentAccountRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
modifyPaymentAccountRequest | ModifyPaymentAccountRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ModifyPaymentMethodResponse ModifyPaymentMethod(ctx, companyId, paymentMethodId).ModifyPaymentMethodRequest(modifyPaymentMethodRequest).Execute()
Modify Payment Method
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.
paymentMethodId := int32(56) // int32 | The Referred Payment Method Id.
modifyPaymentMethodRequest := *fattureincloud.NewModifyPaymentMethodRequest() // ModifyPaymentMethodRequest | (optional)
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.SettingsAPI.ModifyPaymentMethod(auth, companyId, paymentMethodId).ModifyPaymentMethodRequest(modifyPaymentMethodRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SettingsAPI.ModifyPaymentMethod``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ModifyPaymentMethod`: ModifyPaymentMethodResponse
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. | |
| paymentMethodId | int32 | The Referred Payment Method Id. |
Other parameters are passed through a pointer to a apiModifyPaymentMethodRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
modifyPaymentMethodRequest | ModifyPaymentMethodRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ModifyVatTypeResponse ModifyVatType(ctx, companyId, vatTypeId).ModifyVatTypeRequest(modifyVatTypeRequest).Execute()
Modify Vat Type
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.
vatTypeId := int32(56) // int32 | The Referred Vat Type Id.
modifyVatTypeRequest := *fattureincloud.NewModifyVatTypeRequest() // ModifyVatTypeRequest | (optional)
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.SettingsAPI.ModifyVatType(auth, companyId, vatTypeId).ModifyVatTypeRequest(modifyVatTypeRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SettingsAPI.ModifyVatType``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ModifyVatType`: ModifyVatTypeResponse
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. | |
| vatTypeId | int32 | The Referred Vat Type Id. |
Other parameters are passed through a pointer to a apiModifyVatTypeRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
modifyVatTypeRequest | ModifyVatTypeRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]