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