Skip to content
  • Auto
  • Light
  • Dark
Talk to an expert

Delete

Delete a customer billing configuration
client.V1.Customers.BillingConfig.Delete(ctx, body) error
delete/v1/customers/{customer_id}/billing-config/{billing_provider_type}

Delete the billing configuration for a given customer. Note: this is unsupported for Azure and AWS Marketplace customers.

Parameters
bodyCustomerIDfieldBillingProviderTypefieldV1CustomerBillingConfigDeleteParams
Hide ParametersShow Parameters
CustomerIDfield
param.Field[string]
formatuuid
BillingProviderTypefield

The billing provider (e.g. stripe)

Hide ParametersShow Parameters
V1CustomerBillingConfigDeleteParamsBillingProviderTypeAwsMarketplaceconst
"aws_marketplace"
V1CustomerBillingConfigDeleteParamsBillingProviderTypeStripeconst
"stripe"
V1CustomerBillingConfigDeleteParamsBillingProviderTypeNetsuiteconst
"netsuite"
V1CustomerBillingConfigDeleteParamsBillingProviderTypeCustomconst
"custom"
V1CustomerBillingConfigDeleteParamsBillingProviderTypeAzureMarketplaceconst
"azure_marketplace"
V1CustomerBillingConfigDeleteParamsBillingProviderTypeQuickbooksOnlineconst
"quickbooks_online"
V1CustomerBillingConfigDeleteParamsBillingProviderTypeWorkdayconst
"workday"
V1CustomerBillingConfigDeleteParamsBillingProviderTypeGcpMarketplaceconst
"gcp_marketplace"
package main

import (
  "context"

  "github.com/Metronome-Industries/metronome-go"
  "github.com/Metronome-Industries/metronome-go/option"
)

func main() {
  client := metronome.NewClient(
    option.WithBearerToken("My Bearer Token"),
  )
  err := client.V1.Customers.BillingConfig.Delete(context.TODO(), metronome.V1CustomerBillingConfigDeleteParams{
    CustomerID: metronome.F("d7abd0cd-4ae9-4db7-8676-e986a4ebd8dc"),
    BillingProviderType: metronome.F(metronome.V1CustomerBillingConfigDeleteParamsBillingProviderTypeStripe),
  })
  if err != nil {
    panic(err.Error())
  }
}