All URIs are relative to https://api-v2.fattureincloud.it
Method | HTTP request | Description |
---|---|---|
CreateIssuedDocument | Post /c/{company_id}/issued_documents | Create Issued Document |
DeleteIssuedDocument | Delete /c/{company_id}/issued_documents/{document_id} | Delete Issued Document |
DeleteIssuedDocumentAttachment | Delete /c/{company_id}/issued_documents/{document_id}/attachment | Delete Issued Document Attachment |
GetEmailData | Get /c/{company_id}/issued_documents/{document_id}/email | Get Email Data |
GetExistingIssuedDocumentTotals | Post /c/{company_id}/issued_documents/{document_id}/totals | Get Existing Issued Document Totals |
GetIssuedDocument | Get /c/{company_id}/issued_documents/{document_id} | Get Issued Document |
GetIssuedDocumentPreCreateInfo | Get /c/{company_id}/issued_documents/info | Get Issued Document Pre-Create Info |
GetNewIssuedDocumentTotals | Post /c/{company_id}/issued_documents/totals | Get New Issued Document Totals |
JoinIssuedDocuments | Get /c/{company_id}/issued_documents/join | Join Issued Documents |
ListIssuedDocuments | Get /c/{company_id}/issued_documents | List Issued Documents |
ModifyIssuedDocument | Put /c/{company_id}/issued_documents/{document_id} | Modify Issued Document |
ScheduleEmail | Post /c/{company_id}/issued_documents/{document_id}/email | Schedule Email |
TransformIssuedDocument | Get /c/{company_id}/issued_documents/transform | Transform Issued Document |
UploadIssuedDocumentAttachment | Post /c/{company_id}/issued_documents/attachment | Upload Issued Document Attachment |
CreateIssuedDocumentResponse CreateIssuedDocument(ctx, companyId).CreateIssuedDocumentRequest(createIssuedDocumentRequest).Execute()
Create Issued Document
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.
createIssuedDocumentRequest := *fattureincloud.NewCreateIssuedDocumentRequest() // CreateIssuedDocumentRequest | The Issued Document (optional)
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.IssuedDocumentsAPI.CreateIssuedDocument(auth, companyId).CreateIssuedDocumentRequest(createIssuedDocumentRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IssuedDocumentsAPI.CreateIssuedDocument``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateIssuedDocument`: CreateIssuedDocumentResponse
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 apiCreateIssuedDocumentRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
createIssuedDocumentRequest | CreateIssuedDocumentRequest | The Issued Document |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteIssuedDocument(ctx, companyId, documentId).Execute()
Delete Issued Document
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 := int32(56) // int32 | 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.IssuedDocumentsAPI.DeleteIssuedDocument(auth, companyId, documentId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IssuedDocumentsAPI.DeleteIssuedDocument``: %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 | int32 | The ID of the document. |
Other parameters are passed through a pointer to a apiDeleteIssuedDocumentRequest 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]
DeleteIssuedDocumentAttachment(ctx, companyId, documentId).Execute()
Delete Issued Document Attachment
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 := int32(56) // int32 | 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.IssuedDocumentsAPI.DeleteIssuedDocumentAttachment(auth, companyId, documentId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IssuedDocumentsAPI.DeleteIssuedDocumentAttachment``: %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 | int32 | The ID of the document. |
Other parameters are passed through a pointer to a apiDeleteIssuedDocumentAttachmentRequest 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]
GetEmailDataResponse GetEmailData(ctx, companyId, documentId).Execute()
Get Email Data
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 := int32(56) // int32 | 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.IssuedDocumentsAPI.GetEmailData(auth, companyId, documentId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IssuedDocumentsAPI.GetEmailData``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetEmailData`: GetEmailDataResponse
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 | int32 | The ID of the document. |
Other parameters are passed through a pointer to a apiGetEmailDataRequest 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]
GetExistingIssuedDocumentTotalsResponse GetExistingIssuedDocumentTotals(ctx, companyId, documentId).GetExistingIssuedDocumentTotalsRequest(getExistingIssuedDocumentTotalsRequest).Execute()
Get Existing Issued Document Totals
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 := int32(56) // int32 | The ID of the document.
getExistingIssuedDocumentTotalsRequest := *fattureincloud.NewGetExistingIssuedDocumentTotalsRequest() // GetExistingIssuedDocumentTotalsRequest | (optional)
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.IssuedDocumentsAPI.GetExistingIssuedDocumentTotals(auth, companyId, documentId).GetExistingIssuedDocumentTotalsRequest(getExistingIssuedDocumentTotalsRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IssuedDocumentsAPI.GetExistingIssuedDocumentTotals``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetExistingIssuedDocumentTotals`: GetExistingIssuedDocumentTotalsResponse
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 | int32 | The ID of the document. |
Other parameters are passed through a pointer to a apiGetExistingIssuedDocumentTotalsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
getExistingIssuedDocumentTotalsRequest | GetExistingIssuedDocumentTotalsRequest | |
GetExistingIssuedDocumentTotalsResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetIssuedDocumentResponse GetIssuedDocument(ctx, companyId, documentId).Fields(fields).Fieldset(fieldset).Execute()
Get Issued Document
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 := int32(56) // int32 | 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.IssuedDocumentsAPI.GetIssuedDocument(auth, companyId, documentId).Fields(fields).Fieldset(fieldset).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IssuedDocumentsAPI.GetIssuedDocument``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetIssuedDocument`: GetIssuedDocumentResponse
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 | int32 | The ID of the document. |
Other parameters are passed through a pointer to a apiGetIssuedDocumentRequest 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]
GetIssuedDocumentPreCreateInfoResponse GetIssuedDocumentPreCreateInfo(ctx, companyId).Type_(type_).Execute()
Get Issued Document Pre-Create Info
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.
type_ := "type__example" // string | The type of the issued document.
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.IssuedDocumentsAPI.GetIssuedDocumentPreCreateInfo(auth, companyId).Type_(type_).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IssuedDocumentsAPI.GetIssuedDocumentPreCreateInfo``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetIssuedDocumentPreCreateInfo`: GetIssuedDocumentPreCreateInfoResponse
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 apiGetIssuedDocumentPreCreateInfoRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
type_ | string | The type of the issued document. |
GetIssuedDocumentPreCreateInfoResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetNewIssuedDocumentTotalsResponse GetNewIssuedDocumentTotals(ctx, companyId).GetNewIssuedDocumentTotalsRequest(getNewIssuedDocumentTotalsRequest).Execute()
Get New Issued Document Totals
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.
getNewIssuedDocumentTotalsRequest := *fattureincloud.NewGetNewIssuedDocumentTotalsRequest() // GetNewIssuedDocumentTotalsRequest | (optional)
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.IssuedDocumentsAPI.GetNewIssuedDocumentTotals(auth, companyId).GetNewIssuedDocumentTotalsRequest(getNewIssuedDocumentTotalsRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IssuedDocumentsAPI.GetNewIssuedDocumentTotals``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetNewIssuedDocumentTotals`: GetNewIssuedDocumentTotalsResponse
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 apiGetNewIssuedDocumentTotalsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
getNewIssuedDocumentTotalsRequest | GetNewIssuedDocumentTotalsRequest | |
GetNewIssuedDocumentTotalsResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
JoinIssuedDocumentsResponse JoinIssuedDocuments(ctx, companyId).Ids(ids).Group(group).EInvoice(eInvoice).Execute()
Join Issued Documents
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.
ids := "1,2,3,4" // string | Ids of the documents.
group := int32(56) // int32 | Group items. (optional)
eInvoice := int32(56) // int32 | New document e_invoice. (optional)
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.IssuedDocumentsAPI.JoinIssuedDocuments(auth, companyId).Ids(ids).Group(group).EInvoice(eInvoice).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IssuedDocumentsAPI.JoinIssuedDocuments``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `JoinIssuedDocuments`: JoinIssuedDocumentsResponse
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 apiJoinIssuedDocumentsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
ids | string | Ids of the documents. | group | int32 | Group items. | eInvoice | int32 | New document e_invoice. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListIssuedDocumentsResponse ListIssuedDocuments(ctx, companyId).Type_(type_).Fields(fields).Fieldset(fieldset).Sort(sort).Page(page).PerPage(perPage).Q(q).Inclusive(inclusive).Execute()
List Issued Documents
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.
type_ := "type__example" // string | The type of the issued document.
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)
page := int32(56) // int32 | The page to retrieve. (optional) (default to 1)
perPage := int32(56) // int32 | The size of the page. (optional) (default to 5)
q := "q_example" // string | Query for filtering the results. (optional)
inclusive := int32(56) // int32 | (Only for type = delivery_notes) Include invoices delivery notes. (optional)
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.IssuedDocumentsAPI.ListIssuedDocuments(auth, companyId).Type_(type_).Fields(fields).Fieldset(fieldset).Sort(sort).Page(page).PerPage(perPage).Q(q).Inclusive(inclusive).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IssuedDocumentsAPI.ListIssuedDocuments``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListIssuedDocuments`: ListIssuedDocumentsResponse
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 apiListIssuedDocumentsRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
type_ | string | The type of the issued document. | 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). | page | int32 | The page to retrieve. | [default to 1] perPage | int32 | The size of the page. | [default to 5] q | string | Query for filtering the results. | inclusive | int32 | (Only for type = delivery_notes) Include invoices delivery notes. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ModifyIssuedDocumentResponse ModifyIssuedDocument(ctx, companyId, documentId).ModifyIssuedDocumentRequest(modifyIssuedDocumentRequest).Execute()
Modify Issued Document
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 := int32(56) // int32 | The ID of the document.
modifyIssuedDocumentRequest := *fattureincloud.NewModifyIssuedDocumentRequest() // ModifyIssuedDocumentRequest | The modified document (optional)
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.IssuedDocumentsAPI.ModifyIssuedDocument(auth, companyId, documentId).ModifyIssuedDocumentRequest(modifyIssuedDocumentRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IssuedDocumentsAPI.ModifyIssuedDocument``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ModifyIssuedDocument`: ModifyIssuedDocumentResponse
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 | int32 | The ID of the document. |
Other parameters are passed through a pointer to a apiModifyIssuedDocumentRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
modifyIssuedDocumentRequest | ModifyIssuedDocumentRequest | The modified document |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ScheduleEmail(ctx, companyId, documentId).ScheduleEmailRequest(scheduleEmailRequest).Execute()
Schedule Email
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 := int32(56) // int32 | The ID of the document.
scheduleEmailRequest := *fattureincloud.NewScheduleEmailRequest() // ScheduleEmailRequest | Email Schedule (optional)
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.IssuedDocumentsAPI.ScheduleEmail(auth, companyId, documentId).ScheduleEmailRequest(scheduleEmailRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IssuedDocumentsAPI.ScheduleEmail``: %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 | int32 | The ID of the document. |
Other parameters are passed through a pointer to a apiScheduleEmailRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
scheduleEmailRequest | ScheduleEmailRequest | Email Schedule |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TransformIssuedDocumentResponse TransformIssuedDocument(ctx, companyId).OriginalDocumentId(originalDocumentId).NewType(newType).EInvoice(eInvoice).TransformKeepCopy(transformKeepCopy).Execute()
Transform Issued Document
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.
originalDocumentId := int32(56) // int32 | Original document id.
newType := "newType_example" // string | New document type.
eInvoice := int32(56) // int32 | New document e_invoice. (optional)
transformKeepCopy := int32(56) // int32 | Keep the old document. (optional)
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.IssuedDocumentsAPI.TransformIssuedDocument(auth, companyId).OriginalDocumentId(originalDocumentId).NewType(newType).EInvoice(eInvoice).TransformKeepCopy(transformKeepCopy).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IssuedDocumentsAPI.TransformIssuedDocument``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `TransformIssuedDocument`: TransformIssuedDocumentResponse
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 apiTransformIssuedDocumentRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
originalDocumentId | int32 | Original document id. | newType | string | New document type. | eInvoice | int32 | New document e_invoice. | transformKeepCopy | int32 | Keep the old document. |
TransformIssuedDocumentResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UploadIssuedDocumentAttachmentResponse UploadIssuedDocumentAttachment(ctx, companyId).Filename(filename).Attachment(attachment).Execute()
Upload Issued Document Attachment
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.
filename := "filename_example" // string | Attachment file name (optional)
attachment := os.NewFile(1234, "some_file") // *os.File | Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx] (optional)
auth := context.WithValue(context.Background(), fattureincloudapi.ContextAccessToken, "ACCESS_TOKEN")
configuration := fattureincloudapi.NewConfiguration()
apiClient := fattureincloudapi.NewAPIClient(configuration)
resp, r, err := apiClient.IssuedDocumentsAPI.UploadIssuedDocumentAttachment(auth, companyId).Filename(filename).Attachment(attachment).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IssuedDocumentsAPI.UploadIssuedDocumentAttachment``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UploadIssuedDocumentAttachment`: UploadIssuedDocumentAttachmentResponse
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 apiUploadIssuedDocumentAttachmentRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
filename | string | Attachment file name | attachment | *os.File | Attachment file [.png, .jpg, .gif, .pdf, .zip, .xls, .xlsx, .doc, .docx] |
UploadIssuedDocumentAttachmentResponse
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]