All URIs are relative to https://api.qovery.com
Method | HTTP request | Description |
---|---|---|
AddCreditCard | Post /organization/{organizationId}/creditCard | Add credit card |
AddCreditCode | Post /organization/{organizationId}/creditCode | Add credit code |
ChangePlan | Post /organization/{organizationId}/changePlan | Change organization plan |
DeleteCreditCard | Delete /organization/{organizationId}/creditCard/{creditCardId} | Delete credit card |
EditOrganizationBillingInfo | Put /organization/{organizationId}/billingInfo | Edit Organization Billing Info |
GenerateBillingUsageReport | Post /organization/{organizationId}/billingUsageReport | Generate organization billing usage report |
GetClusterCurrentCost | Get /organization/{organizationId}/cluster/{clusterId}/currentCost | Get cluster current cost |
GetOrganizationBillingExternalId | Get /organization/{organizationId}/billingExternalId | Get organization billing external ID |
GetOrganizationBillingInfo | Get /organization/{organizationId}/billingInfo | Get organization billing info |
GetOrganizationBillingStatus | Get /organization/{organizationId}/billingStatus | Get organization billing status |
GetOrganizationCurrentCost | Get /organization/{organizationId}/currentCost | Get organization current cost |
GetOrganizationInvoice | Get /organization/{organizationId}/invoice/{invoiceId} | Get organization invoice |
GetOrganizationInvoicePDF | Get /organization/{organizationId}/invoice/{invoiceId}/download | Get invoice link |
ListOrganizationCreditCards | Get /organization/{organizationId}/creditCard | List organization credit cards |
ListOrganizationInvoice | Get /organization/{organizationId}/invoice | List organization invoices |
OrganizationDownloadAllInvoices | Post /organization/{organizationId}/downloadInvoices | Download all invoices |
CreditCard AddCreditCard(ctx, organizationId).CreditCardRequest(creditCardRequest).Execute()
Add credit card
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID
creditCardRequest := *openapiclient.NewCreditCardRequest("Number_example", "Cvv_example", int32(6), int32(2025)) // CreditCardRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BillingAPI.AddCreditCard(context.Background(), organizationId).CreditCardRequest(creditCardRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BillingAPI.AddCreditCard``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `AddCreditCard`: CreditCard
fmt.Fprintf(os.Stdout, "Response from `BillingAPI.AddCreditCard`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
organizationId | string | Organization ID |
Other parameters are passed through a pointer to a apiAddCreditCardRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
creditCardRequest | CreditCardRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AddCreditCode(ctx, organizationId).OrganizationCreditCodeRequest(organizationCreditCodeRequest).Execute()
Add credit code
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID
organizationCreditCodeRequest := *openapiclient.NewOrganizationCreditCodeRequest() // OrganizationCreditCodeRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.BillingAPI.AddCreditCode(context.Background(), organizationId).OrganizationCreditCodeRequest(organizationCreditCodeRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BillingAPI.AddCreditCode``: %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. | |
organizationId | string | Organization ID |
Other parameters are passed through a pointer to a apiAddCreditCodeRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
organizationCreditCodeRequest | OrganizationCreditCodeRequest | |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Organization ChangePlan(ctx, organizationId).OrganizationChangePlanRequest(organizationChangePlanRequest).Execute()
Change organization plan
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID
organizationChangePlanRequest := *openapiclient.NewOrganizationChangePlanRequest() // OrganizationChangePlanRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BillingAPI.ChangePlan(context.Background(), organizationId).OrganizationChangePlanRequest(organizationChangePlanRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BillingAPI.ChangePlan``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ChangePlan`: Organization
fmt.Fprintf(os.Stdout, "Response from `BillingAPI.ChangePlan`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
organizationId | string | Organization ID |
Other parameters are passed through a pointer to a apiChangePlanRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
organizationChangePlanRequest | OrganizationChangePlanRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteCreditCard(ctx, organizationId, creditCardId).Execute()
Delete credit card
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID
creditCardId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Credit Card ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.BillingAPI.DeleteCreditCard(context.Background(), organizationId, creditCardId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BillingAPI.DeleteCreditCard``: %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. | |
organizationId | string | Organization ID | |
creditCardId | string | Credit Card ID |
Other parameters are passed through a pointer to a apiDeleteCreditCardRequest 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]
BillingInfo EditOrganizationBillingInfo(ctx, organizationId).BillingInfoRequest(billingInfoRequest).Execute()
Edit Organization Billing Info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID
billingInfoRequest := *openapiclient.NewBillingInfoRequest("Forrest", "Gump", "[email protected]", "21 Jenny Street", "Greenbow", "36744", "US") // BillingInfoRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BillingAPI.EditOrganizationBillingInfo(context.Background(), organizationId).BillingInfoRequest(billingInfoRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BillingAPI.EditOrganizationBillingInfo``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EditOrganizationBillingInfo`: BillingInfo
fmt.Fprintf(os.Stdout, "Response from `BillingAPI.EditOrganizationBillingInfo`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
organizationId | string | Organization ID |
Other parameters are passed through a pointer to a apiEditOrganizationBillingInfoRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
billingInfoRequest | BillingInfoRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrganizationBillingUsageReportResponse GenerateBillingUsageReport(ctx, organizationId).OrganizationBillingUsageReportRequest(organizationBillingUsageReportRequest).Execute()
Generate organization billing usage report
package main
import (
"context"
"fmt"
"os"
"time"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID
organizationBillingUsageReportRequest := *openapiclient.NewOrganizationBillingUsageReportRequest(time.Now(), time.Now(), int32(3600)) // OrganizationBillingUsageReportRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BillingAPI.GenerateBillingUsageReport(context.Background(), organizationId).OrganizationBillingUsageReportRequest(organizationBillingUsageReportRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BillingAPI.GenerateBillingUsageReport``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GenerateBillingUsageReport`: OrganizationBillingUsageReportResponse
fmt.Fprintf(os.Stdout, "Response from `BillingAPI.GenerateBillingUsageReport`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
organizationId | string | Organization ID |
Other parameters are passed through a pointer to a apiGenerateBillingUsageReportRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
organizationBillingUsageReportRequest | OrganizationBillingUsageReportRequest | |
OrganizationBillingUsageReportResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CostRange GetClusterCurrentCost(ctx, organizationId, clusterId).Execute()
Get cluster current cost
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID
clusterId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Cluster ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BillingAPI.GetClusterCurrentCost(context.Background(), organizationId, clusterId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BillingAPI.GetClusterCurrentCost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetClusterCurrentCost`: CostRange
fmt.Fprintf(os.Stdout, "Response from `BillingAPI.GetClusterCurrentCost`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
organizationId | string | Organization ID | |
clusterId | string | Cluster ID |
Other parameters are passed through a pointer to a apiGetClusterCurrentCostRequest 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]
BillingExternalId GetOrganizationBillingExternalId(ctx, organizationId).Execute()
Get organization billing external ID
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BillingAPI.GetOrganizationBillingExternalId(context.Background(), organizationId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BillingAPI.GetOrganizationBillingExternalId``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetOrganizationBillingExternalId`: BillingExternalId
fmt.Fprintf(os.Stdout, "Response from `BillingAPI.GetOrganizationBillingExternalId`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
organizationId | string | Organization ID |
Other parameters are passed through a pointer to a apiGetOrganizationBillingExternalIdRequest 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]
BillingInfo GetOrganizationBillingInfo(ctx, organizationId).Execute()
Get organization billing info
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BillingAPI.GetOrganizationBillingInfo(context.Background(), organizationId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BillingAPI.GetOrganizationBillingInfo``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetOrganizationBillingInfo`: BillingInfo
fmt.Fprintf(os.Stdout, "Response from `BillingAPI.GetOrganizationBillingInfo`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
organizationId | string | Organization ID |
Other parameters are passed through a pointer to a apiGetOrganizationBillingInfoRequest 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]
BillingStatus GetOrganizationBillingStatus(ctx, organizationId).Execute()
Get organization billing status
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BillingAPI.GetOrganizationBillingStatus(context.Background(), organizationId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BillingAPI.GetOrganizationBillingStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetOrganizationBillingStatus`: BillingStatus
fmt.Fprintf(os.Stdout, "Response from `BillingAPI.GetOrganizationBillingStatus`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
organizationId | string | Organization ID |
Other parameters are passed through a pointer to a apiGetOrganizationBillingStatusRequest 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]
OrganizationCurrentCost GetOrganizationCurrentCost(ctx, organizationId).Execute()
Get organization current cost
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BillingAPI.GetOrganizationCurrentCost(context.Background(), organizationId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BillingAPI.GetOrganizationCurrentCost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetOrganizationCurrentCost`: OrganizationCurrentCost
fmt.Fprintf(os.Stdout, "Response from `BillingAPI.GetOrganizationCurrentCost`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
organizationId | string | Organization ID |
Other parameters are passed through a pointer to a apiGetOrganizationCurrentCostRequest 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]
Invoice GetOrganizationInvoice(ctx, organizationId, invoiceId).Execute()
Get organization invoice
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID
invoiceId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Invoice ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BillingAPI.GetOrganizationInvoice(context.Background(), organizationId, invoiceId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BillingAPI.GetOrganizationInvoice``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetOrganizationInvoice`: Invoice
fmt.Fprintf(os.Stdout, "Response from `BillingAPI.GetOrganizationInvoice`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
organizationId | string | Organization ID | |
invoiceId | string | Invoice ID |
Other parameters are passed through a pointer to a apiGetOrganizationInvoiceRequest 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]
Link GetOrganizationInvoicePDF(ctx, organizationId, invoiceId).Execute()
Get invoice link
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID
invoiceId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Invoice ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BillingAPI.GetOrganizationInvoicePDF(context.Background(), organizationId, invoiceId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BillingAPI.GetOrganizationInvoicePDF``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetOrganizationInvoicePDF`: Link
fmt.Fprintf(os.Stdout, "Response from `BillingAPI.GetOrganizationInvoicePDF`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
organizationId | string | Organization ID | |
invoiceId | string | Invoice ID |
Other parameters are passed through a pointer to a apiGetOrganizationInvoicePDFRequest 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]
CreditCardResponseList ListOrganizationCreditCards(ctx, organizationId).Execute()
List organization credit cards
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BillingAPI.ListOrganizationCreditCards(context.Background(), organizationId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BillingAPI.ListOrganizationCreditCards``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListOrganizationCreditCards`: CreditCardResponseList
fmt.Fprintf(os.Stdout, "Response from `BillingAPI.ListOrganizationCreditCards`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
organizationId | string | Organization ID |
Other parameters are passed through a pointer to a apiListOrganizationCreditCardsRequest 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]
InvoiceResponseList ListOrganizationInvoice(ctx, organizationId).Execute()
List organization invoices
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.BillingAPI.ListOrganizationInvoice(context.Background(), organizationId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BillingAPI.ListOrganizationInvoice``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ListOrganizationInvoice`: InvoiceResponseList
fmt.Fprintf(os.Stdout, "Response from `BillingAPI.ListOrganizationInvoice`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
organizationId | string | Organization ID |
Other parameters are passed through a pointer to a apiListOrganizationInvoiceRequest 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]
OrganizationDownloadAllInvoices(ctx, organizationId).Execute()
Download all invoices
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/qovery/qovery-client-go"
)
func main() {
organizationId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | Organization ID
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.BillingAPI.OrganizationDownloadAllInvoices(context.Background(), organizationId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `BillingAPI.OrganizationDownloadAllInvoices``: %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. | |
organizationId | string | Organization ID |
Other parameters are passed through a pointer to a apiOrganizationDownloadAllInvoicesRequest 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]