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

Update Config

Update a customer configuration
client.V1.Customers.UpdateConfig(ctx, params) error
post/v1/customers/{customer_id}/updateConfig

Updates the specified customer's config.

Parameters
paramsCustomerIDfieldLeaveStripeInvoicesInDraftfieldSalesforceAccountIDfieldV1CustomerUpdateConfigParams
Hide ParametersShow Parameters
CustomerIDfield
param.Field[string]

Path param:

formatuuid
LeaveStripeInvoicesInDraftfield
optional
param.Field[bool]

Body param: Leave in draft or set to auto-advance on invoices sent to Stripe. Falls back to the client-level config if unset, which defaults to true if unset.

SalesforceAccountIDfield
optional
param.Field[string]

Body param: The Salesforce account ID for the customer

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.UpdateConfig(context.TODO(), metronome.V1CustomerUpdateConfigParams{
    CustomerID: metronome.F("d7abd0cd-4ae9-4db7-8676-e986a4ebd8dc"),
    SalesforceAccountID: metronome.F("0015500001WO1ZiABL"),
  })
  if err != nil {
    panic(err.Error())
  }
}