InvoicesApi
Method
HTTP request
Description
InvoicesFindById
var result Invoice = InvoicesFindById(ctx, contract, id)
.Dateformat(dateformat)
.Execute()Example
package main
import (
"context"
"fmt"
"os"
billing "github.com/ionos-cloud/sdk-go-bundle/products/billing"
"github.com/ionos-cloud/sdk-go-bundle/shared"
)
func main() {
contract := int32(56) // int32 | Contract number
id := "id_example" // string | Invoice ID
dateformat := "dateformat_example" // string | Vendor date format (optional)
configuration := shared.NewConfiguration("USERNAME", "PASSWORD", "TOKEN", "HOST_URL")
apiClient := billing.NewAPIClient(configuration)
resource, resp, err := apiClient.InvoicesApi.InvoicesFindById(context.Background(), contract, id).Dateformat(dateformat).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `InvoicesApi.InvoicesFindById``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", resp)
}
// response from `InvoicesFindById`: Invoice
fmt.Fprintf(os.Stdout, "Response from `InvoicesApi.InvoicesFindById`: %v\n", resource)
}Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes
Return type
HTTP request headers
InvoicesFindByPeriod
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Name
Type
Description
Notes
Return type
HTTP request headers
InvoicesGet
Example
Path Parameters
Name
Type
Description
Notes
Other Parameters
Return type
HTTP request headers
Last updated
Was this helpful?