Alert
Create customer alert by external ID
This endpoint creates a new alert to monitor a customer's credit balance. There are three types of alerts that can be scoped to customers: credit_balance_depleted, credit_balance_dropped, and credit_balance_recovered. Customers can have a maximum of one of each type of alert per credit balance currency. credit_balance_dropped alerts require a list of thresholds to be provided while credit_balance_depleted and credit_balance_recovered alerts do not require thresholds.
post/alerts/external_customer_id/{external_customer_id}
Path parameters
external_customer_idstring nullable required
Request body
Response
Created
Example response
{
"id": "XuxCbt7x9L82yyeF",
"plan": {
"id": "m2t5akQeh2obwxeU",
"external_plan_id": "m2t5akQeh2obwxeU",
"name": "Example plan"
},
"subscription": {
"id": "VDGsT23osdLb84KD"
}
}