Skip to main content
POST
/
v1
/
setUpBillingProvider
curl --request POST \
  --url https://api.metronome.com/v1/setUpBillingProvider \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "billing_provider": "aws_marketplace",
  "delivery_method": "direct_to_billing_provider",
  "configuration": {
    "aws_external_id": "47b4f6b7-e297-42e8-b175-331d933b402c",
    "aws_iam_role_arn": "arn:aws:iam::test"
  }
}'
{
  "data": {
    "delivery_method_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Billing provider, delivery method and configuration to insert

billing_provider
enum<string>
required

The billing provider set for this configuration.

Available options:
aws_marketplace,
azure_marketplace,
gcp_marketplace
delivery_method
enum<string>
required

The method to use for delivering invoices for this configuration.

Available options:
direct_to_billing_provider,
aws_sqs,
aws_sns
configuration
object
required

Account-level configuration for the billing provider. The structure of this object is specific to the billing provider and delivery provider combination. See examples below.

Response

Success

data
object
required