Skip to main content
POST
/
customers
/
{customer_id}
/
billing-config
/
{billing_provider_type}
Set a customer billing configuration
curl --request POST \
  --url https://api.metronome.com/v1/customers/{customer_id}/billing-config/{billing_provider_type} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "billing_provider_customer_id": "cus_AJ6y20bjkOOayM",
  "stripe_collection_method": "charge_automatically"
}'
This response does not have an example.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

customer_id
string<uuid>
required
billing_provider_type
enum<string>
required

The billing provider (e.g. stripe)

Available options:
aws_marketplace,
stripe,
azure_marketplace,
quickbooks_online

Body

application/json

The billing configuration for the customer

billing_provider_customer_id
string
required

The customer ID in the billing provider's system. For Azure, this is the subscription ID.

stripe_collection_method
enum<string>

The collection method for the customer's invoices. NOTE: auto_charge_payment_intent and manually_charge_payment_intent are in beta.

Available options:
charge_automatically,
send_invoice,
auto_charge_payment_intent,
manually_charge_payment_intent
aws_product_code
string
aws_region
enum<string>
Available options:
af-south-1,
ap-east-1,
ap-northeast-1,
ap-northeast-2,
ap-northeast-3,
ap-south-1,
ap-southeast-1,
ap-southeast-2,
ca-central-1,
cn-north-1,
cn-northwest-1,
eu-central-1,
eu-north-1,
eu-south-1,
eu-west-1,
eu-west-2,
eu-west-3,
me-south-1,
sa-east-1,
us-east-1,
us-east-2,
us-gov-east-1,
us-gov-west-1,
us-west-1,
us-west-2

Response

Success

I