{
"timestamp": "2023-11-07T05:31:56Z",
"eventId": "<string>",
"payload": {
"type": "billing.trial.spend_threshold.v1",
"trialId": "<string>",
"thresholdPercent": 123,
"spentMinor": 4503599627370495,
"spendCapMinor": 123,
"currency": "<string>",
"occurredAt": "2023-11-07T05:31:56Z"
}
}Webhooks
Billing trial spend threshold v1
Triggered when a spend-capped trial crosses a spend-notification threshold (e.g. 50% or 80% of its cap). The payload contains the trial ID, the crossed threshold percent, and the accrued spend versus the cap in minor currency units.
WEBHOOK
billing.trial.spend_threshold.v1
{
"timestamp": "2023-11-07T05:31:56Z",
"eventId": "<string>",
"payload": {
"type": "billing.trial.spend_threshold.v1",
"trialId": "<string>",
"thresholdPercent": 123,
"spentMinor": 4503599627370495,
"spendCapMinor": 123,
"currency": "<string>",
"occurredAt": "2023-11-07T05:31:56Z"
}
}Authorizations
Body
application/json
Triggered when a spend-capped trial crosses a spend-notification threshold (e.g. 50% or 80% of its cap). The payload contains the trial ID, the crossed threshold percent, and the accrued spend versus the cap in minor currency units.
Pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$Show child attributes
Show child attributes
Response
200
Webhook received successfully
Was this page helpful?

