Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
The details of the threshold notification to create
Type of the threshold notification
spend_threshold_reached
, monthly_invoice_total_spend_threshold_reached
, low_remaining_days_for_commit_segment_reached
, low_remaining_commit_balance_reached
, low_remaining_commit_percentage_reached
, low_remaining_days_for_contract_credit_segment_reached
, low_remaining_contract_credit_balance_reached
, low_remaining_contract_credit_percentage_reached
, low_remaining_contract_credit_and_commit_balance_reached
, invoice_total_reached
Name of the threshold notification
Threshold value of the notification policy. Depending upon the notification type, this number may represent a financial amount, the days remaining, or a percentage reached.
Prevents the creation of duplicates. If a request to create a record is made with a previously used uniqueness key, a new record will not be created and the request will fail with a 409 error.
1 - 128
ID of the credit's currency, defaults to USD. If the specific notification type requires a pricing unit/currency, find the ID in the Metronome app.
If provided, will create this threshold notification for this specific customer. To create a notification for all customers, do not specify a customer_id
.
For threshold notifications of type usage_threshold_reached
, specifies which billable metric to track the usage for.
An array of strings, representing a way to filter the credit grant this threshold notification applies to, by looking at the credit_grant_type field on the credit grant. This field is only defined for CreditPercentage and CreditBalance notifications
If true, the threshold notification will evaluate immediately on customers that already meet the notification threshold. If false, it will only evaluate on future customers that trigger the threshold. Defaults to true.
A list of custom field filters for threshold notification types that support advanced filtering. Only present for contract invoices.
Only supported for invoice_total_reached threshold notifications. A list of invoice types to evaluate.
Only present for spend_threshold_reached
notifications. Scope notification to a specific group key on individual line items.
Response
Success