POST
/
v1
/
setCustomerBillingProviderConfigurations
Set billing provider configurations for a customer
curl --request POST \
  --url https://api.metronome.com/v1/setCustomerBillingProviderConfigurations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "data": [
    {
      "customer_id": "4db51251-61de-4bfe-b9ce-495e244f3491",
      "billing_provider": "stripe",
      "configuration": {
        "stripe_customer_id": "cus_1234",
        "stripe_collection_method": "charge_automatically",
        "leave_stripe_invoices_in_draft": true
      },
      "delivery_method": "direct_to_billing_provider"
    },
    {
      "customer_id": "4db51251-61de-4bfe-b9ce-495e244f3491",
      "billing_provider": "aws_marketplace",
      "configuration": {
        "aws_customer_id": "ABC123ABC12",
        "aws_product_code": "my_product",
        "aws_region": "us-west-1"
      },
      "delivery_method": "direct_to_billing_provider"
    },
    {
      "customer_id": "4db51251-61de-4bfe-b9ce-495e244f3491",
      "billing_provider": "azure_marketplace",
      "configuration": {
        "azure_subscription_id": "my_subscription"
      },
      "delivery_method_id": "5b9e3072-415b-4842-94f0-0b6700c8b6be"
    },
    {
      "customer_id": "4db51251-61de-4bfe-b9ce-495e244f3491",
      "billing_provider": "aws_marketplace",
      "configuration": {
        "aws_customer_id": "ABC123ABC12",
        "aws_product_code": "my_product",
        "aws_region": "us-west-1",
        "aws_is_subscription_product": true
      },
      "delivery_method": "direct_to_billing_provider"
    }
  ]
}'
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.

Body

application/json

The details of the billing provider configurations to insert

The body is of type object.

Response

Success