Create
Set a customer billing configuration
client.v1.customers.billingConfig.create(BillingConfigCreateParamsparams, RequestOptionsoptions?): void
post/v1/customers/{customer_id}/billing-config/{billing_provider_type}
Set the billing configuration for a given customer.
Parameters
paramscustomer_idstringbilling_provider_typeunionbilling_provider_customer_idstringaws_product_codestringaws_regionunionstripe_collection_methodunionBillingConfigCreateParams
import Metronome from '@metronome/sdk';
const client = new Metronome({
bearerToken: 'My Bearer Token',
});
await client.v1.customers.billingConfig.create({
customer_id: 'd7abd0cd-4ae9-4db7-8676-e986a4ebd8dc',
billing_provider_type: 'stripe',
billing_provider_customer_id: 'cus_AJ6y20bjkOOayM',
stripe_collection_method: 'charge_automatically',
});