All URIs are relative to https://api-v2.fattureincloud.it
| Method | HTTP request | Description |
|---|---|---|
| CreateWebhooksSubscription | Post /c/{company_id}/subscriptions | Create a Webhook Subscription |
| DeleteWebhooksSubscription | Delete /c/{company_id}/subscriptions/{subscription_id} | Delete Webhooks Subscription |
| GetWebhooksSubscription | Get /c/{company_id}/subscriptions/{subscription_id} | Get Webhooks Subscription |
| ListWebhooksSubscriptions | Get /c/{company_id}/subscriptions | List Webhooks Subscriptions |
| ModifyWebhooksSubscription | Put /c/{company_id}/subscriptions/{subscription_id} | Modify Webhooks Subscription |
| VerifyWebhooksSubscription | Post /c/{company_id}/subscriptions/{subscription_id}/verify | Verify Webhooks Subscription |
CreateWebhooksSubscriptionResponse CreateWebhooksSubscription(ctx, companyId).CreateWebhooksSubscriptionRequest(createWebhooksSubscriptionRequest).Execute()
Create a Webhook Subscription
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.
createWebhooksSubscriptionRequest := *fattureincloud.NewCreateWebhooksSubscriptionRequest() // CreateWebhooksSubscriptionRequest | (optional)
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.WebhooksAPI.CreateWebhooksSubscription(auth, companyId).CreateWebhooksSubscriptionRequest(createWebhooksSubscriptionRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WebhooksAPI.CreateWebhooksSubscription``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateWebhooksSubscription`: CreateWebhooksSubscriptionResponse
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 apiCreateWebhooksSubscriptionRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
createWebhooksSubscriptionRequest | CreateWebhooksSubscriptionRequest | |
CreateWebhooksSubscriptionResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteWebhooksSubscription(ctx, companyId, subscriptionId).Execute()
Delete Webhooks Subscription
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.
subscriptionId := "SUB123" // string | The ID of the subscription.
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.WebhooksAPI.DeleteWebhooksSubscription(auth, companyId, subscriptionId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WebhooksAPI.DeleteWebhooksSubscription``: %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. | |
| subscriptionId | string | The ID of the subscription. |
Other parameters are passed through a pointer to a apiDeleteWebhooksSubscriptionRequest 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]
GetWebhooksSubscriptionResponse GetWebhooksSubscription(ctx, companyId, subscriptionId).Execute()
Get Webhooks Subscription
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.
subscriptionId := "SUB123" // string | The ID of the subscription.
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.WebhooksAPI.GetWebhooksSubscription(auth, companyId, subscriptionId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WebhooksAPI.GetWebhooksSubscription``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetWebhooksSubscription`: GetWebhooksSubscriptionResponse
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. | |
| subscriptionId | string | The ID of the subscription. |
Other parameters are passed through a pointer to a apiGetWebhooksSubscriptionRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
GetWebhooksSubscriptionResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListWebhooksSubscriptionsResponse ListWebhooksSubscriptions(ctx, companyId).Execute()
List Webhooks Subscriptions
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.WebhooksAPI.ListWebhooksSubscriptions(auth, companyId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WebhooksAPI.ListWebhooksSubscriptions``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListWebhooksSubscriptions`: ListWebhooksSubscriptionsResponse
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 apiListWebhooksSubscriptionsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
ListWebhooksSubscriptionsResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ModifyWebhooksSubscriptionResponse ModifyWebhooksSubscription(ctx, companyId, subscriptionId).ModifyWebhooksSubscriptionRequest(modifyWebhooksSubscriptionRequest).Execute()
Modify Webhooks Subscription
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.
subscriptionId := "SUB123" // string | The ID of the subscription.
modifyWebhooksSubscriptionRequest := *fattureincloud.NewModifyWebhooksSubscriptionRequest() // ModifyWebhooksSubscriptionRequest | (optional)
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.WebhooksAPI.ModifyWebhooksSubscription(auth, companyId, subscriptionId).ModifyWebhooksSubscriptionRequest(modifyWebhooksSubscriptionRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WebhooksAPI.ModifyWebhooksSubscription``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ModifyWebhooksSubscription`: ModifyWebhooksSubscriptionResponse
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. | |
| subscriptionId | string | The ID of the subscription. |
Other parameters are passed through a pointer to a apiModifyWebhooksSubscriptionRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
modifyWebhooksSubscriptionRequest | ModifyWebhooksSubscriptionRequest | |
ModifyWebhooksSubscriptionResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
VerifyWebhooksSubscription(ctx, companyId, subscriptionId).VerifyWebhooksSubscriptionRequest(verifyWebhooksSubscriptionRequest).Execute()
Verify Webhooks Subscription
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.
subscriptionId := "SUB123" // string | The ID of the subscription.
verifyWebhooksSubscriptionRequest := *fattureincloud.NewVerifyWebhooksSubscriptionRequest() // VerifyWebhooksSubscriptionRequest | (optional)
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.WebhooksAPI.VerifyWebhooksSubscription(auth, companyId, subscriptionId).VerifyWebhooksSubscriptionRequest(verifyWebhooksSubscriptionRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WebhooksAPI.VerifyWebhooksSubscription``: %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. | |
| subscriptionId | string | The ID of the subscription. |
Other parameters are passed through a pointer to a apiVerifyWebhooksSubscriptionRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
verifyWebhooksSubscriptionRequest | VerifyWebhooksSubscriptionRequest | |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]