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

Update Config

Update a customer configuration
client.v1.customers.updateConfig(CustomerUpdateConfigParamsparams, RequestOptionsoptions?): void
post/v1/customers/{customer_id}/updateConfig

Updates the specified customer's config.

Parameters
paramscustomer_idstringleave_stripe_invoices_in_draftunionsalesforce_account_idunionCustomerUpdateConfigParams
Hide ParametersShow Parameters
customer_idstring

Path param:

formatuuid
leave_stripe_invoices_in_draftunion
optional
boolean | null

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.

salesforce_account_idunion
optional
string | null

Body param: The Salesforce account ID for the customer

import Metronome from '@metronome/sdk';

const client = new Metronome({
  bearerToken: 'My Bearer Token',
});

await client.v1.customers.updateConfig({
  customer_id: 'd7abd0cd-4ae9-4db7-8676-e986a4ebd8dc',
  salesforce_account_id: '0015500001WO1ZiABL',
});