Skip to main content
Limited Release
Use the Usage-based Billing webhooks to receive real-time notifications about billing events in your application. These webhooks provide automatic updates for subscription alerts, wallet lifecycle events, transaction status changes, invoice events, credit note events, and subscription lifecycle changes.

Subscription alerts

This webhook notifies you when subscription usage thresholds are crossed:

Wallet events

These webhooks provide updates on wallet lifecycle and balance changes:

Wallet transaction events

These webhooks track wallet state changes when transactions occur. The webhook returns the complete wallet object with updated balances:

Invoice events

These webhooks notify you about invoice lifecycle and payment status changes:

Credit note events

These webhooks track credit note creation and refund status:

Subscription lifecycle events

These webhooks provide updates on subscription status changes:

Handle webhook events

To handle webhook events:
  1. Review the list of webhook events for Usage-based Billing and select the events for your app to subscribe.
  2. Subscribe to the selected webhook events through one of the following means:
  • PayPal developer account: Log in to your account, go to App details page > Features > Webhooks, and subscribe to webhook events.
  • Webhooks management API.
  1. In your server-side app code, define a webhook handler that:
For more information, see Webhooks overview and Webhooks integration guide.

Sample webhook payloads

Webhook notifications include the event type, resource information, and HATEOAS links. The following examples show the payload structure for different webhook events:
Webhook notifications contain basic event information. Use the HATEOAS links in the webhook response to retrieve detailed resource information.