Alerts
A new alert was triggered
Threshold defined in the alert was crossed.
postWebhookusage-billing.subscription-alert.triggered
Headers
paypal-transmission-idstring
The unique ID of the transmission, from the paypal-transmission-id HTTP header.
paypal-transmission-timestring
The date and time when the message was transmitted, from the paypal-transmission-time HTTP header.
Payload
Example payload
{
"id": "8PT597110X687430LKGECATA",
"create_time": "2023-10-01T12:00:00Z",
"event_version": "1.0",
"summary": "A new alert was triggered.",
"resource_version": "1.0",
"links": [
{
"href": "https://api-m.paypal.com/v1/notfications/webhooks-events/8PT597110X687430LKGECATA",
"rel": "self",
"method": "GET"
}
],
"resource": {
"id": "ff604dc4-2223-412a-a8f4-8fde7dfd3346",
"external_subscription_id": "0705ad6b-c063-421a-87b6-a6c25f98c842",
"metric_code": "storage_usage",
"type": "CURRENT_USAGE_AMOUNT",
"code": "storage_threshold_alert",
"name": "Storage Usage Alert",
"current_value": 1200,
"previous_value": 900,
"crossed_thresholds": [
{
"code": "hard_limit",
"value": "1100"
}
],
"triggered_at": "2023-10-01T12:00:00Z"
}
}Response
Return a 204 status to indicate that the data was received successfully.
Changes
Webhooks have no change history: a webhook is keyed by its event name rather than a path and method, so no recorded change can name it.