Skip to content

Latest commit

 

History

History
1137 lines (737 loc) · 34.1 KB

BillingAPI.md

File metadata and controls

1137 lines (737 loc) · 34.1 KB

\BillingAPI

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

AddCreditCard

CreditCard AddCreditCard(ctx, organizationId).CreditCardRequest(creditCardRequest).Execute()

Add credit card

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
organizationId string Organization ID

Other Parameters

Other parameters are passed through a pointer to a apiAddCreditCardRequest struct via the builder pattern

Name Type Description Notes

creditCardRequest | CreditCardRequest | |

Return type

CreditCard

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

AddCreditCode

AddCreditCode(ctx, organizationId).OrganizationCreditCodeRequest(organizationCreditCodeRequest).Execute()

Add credit code

Example

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)
    }
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
organizationId string Organization ID

Other Parameters

Other parameters are passed through a pointer to a apiAddCreditCodeRequest struct via the builder pattern

Name Type Description Notes

organizationCreditCodeRequest | OrganizationCreditCodeRequest | |

Return type

(empty response body)

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ChangePlan

Organization ChangePlan(ctx, organizationId).OrganizationChangePlanRequest(organizationChangePlanRequest).Execute()

Change organization plan

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
organizationId string Organization ID

Other Parameters

Other parameters are passed through a pointer to a apiChangePlanRequest struct via the builder pattern

Name Type Description Notes

organizationChangePlanRequest | OrganizationChangePlanRequest | |

Return type

Organization

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteCreditCard

DeleteCreditCard(ctx, organizationId, creditCardId).Execute()

Delete credit card

Example

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)
    }
}

Path Parameters

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

Other parameters are passed through a pointer to a apiDeleteCreditCardRequest struct via the builder pattern

Name Type Description Notes

Return type

(empty response body)

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

EditOrganizationBillingInfo

BillingInfo EditOrganizationBillingInfo(ctx, organizationId).BillingInfoRequest(billingInfoRequest).Execute()

Edit Organization Billing Info

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
organizationId string Organization ID

Other Parameters

Other parameters are passed through a pointer to a apiEditOrganizationBillingInfoRequest struct via the builder pattern

Name Type Description Notes

billingInfoRequest | BillingInfoRequest | |

Return type

BillingInfo

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GenerateBillingUsageReport

OrganizationBillingUsageReportResponse GenerateBillingUsageReport(ctx, organizationId).OrganizationBillingUsageReportRequest(organizationBillingUsageReportRequest).Execute()

Generate organization billing usage report

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
organizationId string Organization ID

Other Parameters

Other parameters are passed through a pointer to a apiGenerateBillingUsageReportRequest struct via the builder pattern

Name Type Description Notes

organizationBillingUsageReportRequest | OrganizationBillingUsageReportRequest | |

Return type

OrganizationBillingUsageReportResponse

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetClusterCurrentCost

CostRange GetClusterCurrentCost(ctx, organizationId, clusterId).Execute()

Get cluster current cost

Example

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)
}

Path Parameters

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

Other parameters are passed through a pointer to a apiGetClusterCurrentCostRequest struct via the builder pattern

Name Type Description Notes

Return type

CostRange

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetOrganizationBillingExternalId

BillingExternalId GetOrganizationBillingExternalId(ctx, organizationId).Execute()

Get organization billing external ID

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
organizationId string Organization ID

Other Parameters

Other parameters are passed through a pointer to a apiGetOrganizationBillingExternalIdRequest struct via the builder pattern

Name Type Description Notes

Return type

BillingExternalId

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetOrganizationBillingInfo

BillingInfo GetOrganizationBillingInfo(ctx, organizationId).Execute()

Get organization billing info

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
organizationId string Organization ID

Other Parameters

Other parameters are passed through a pointer to a apiGetOrganizationBillingInfoRequest struct via the builder pattern

Name Type Description Notes

Return type

BillingInfo

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetOrganizationBillingStatus

BillingStatus GetOrganizationBillingStatus(ctx, organizationId).Execute()

Get organization billing status

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
organizationId string Organization ID

Other Parameters

Other parameters are passed through a pointer to a apiGetOrganizationBillingStatusRequest struct via the builder pattern

Name Type Description Notes

Return type

BillingStatus

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetOrganizationCurrentCost

OrganizationCurrentCost GetOrganizationCurrentCost(ctx, organizationId).Execute()

Get organization current cost

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
organizationId string Organization ID

Other Parameters

Other parameters are passed through a pointer to a apiGetOrganizationCurrentCostRequest struct via the builder pattern

Name Type Description Notes

Return type

OrganizationCurrentCost

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetOrganizationInvoice

Invoice GetOrganizationInvoice(ctx, organizationId, invoiceId).Execute()

Get organization invoice

Example

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)
}

Path Parameters

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

Other parameters are passed through a pointer to a apiGetOrganizationInvoiceRequest struct via the builder pattern

Name Type Description Notes

Return type

Invoice

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetOrganizationInvoicePDF

Link GetOrganizationInvoicePDF(ctx, organizationId, invoiceId).Execute()

Get invoice link

Example

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)
}

Path Parameters

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

Other parameters are passed through a pointer to a apiGetOrganizationInvoicePDFRequest struct via the builder pattern

Name Type Description Notes

Return type

Link

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListOrganizationCreditCards

CreditCardResponseList ListOrganizationCreditCards(ctx, organizationId).Execute()

List organization credit cards

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
organizationId string Organization ID

Other Parameters

Other parameters are passed through a pointer to a apiListOrganizationCreditCardsRequest struct via the builder pattern

Name Type Description Notes

Return type

CreditCardResponseList

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListOrganizationInvoice

InvoiceResponseList ListOrganizationInvoice(ctx, organizationId).Execute()

List organization invoices

Example

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)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
organizationId string Organization ID

Other Parameters

Other parameters are passed through a pointer to a apiListOrganizationInvoiceRequest struct via the builder pattern

Name Type Description Notes

Return type

InvoiceResponseList

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

OrganizationDownloadAllInvoices

OrganizationDownloadAllInvoices(ctx, organizationId).Execute()

Download all invoices

Example

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)
    }
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
organizationId string Organization ID

Other Parameters

Other parameters are passed through a pointer to a apiOrganizationDownloadAllInvoicesRequest struct via the builder pattern

Name Type Description Notes

Return type

(empty response body)

Authorization

ApiKeyAuth, bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]