Skip to main content
Use a valid access token and send a GET request to /v1/commerce/billing/events with optional query parameters to retrieve usage events recorded with PayPal.
curl -X GET 'https://api-m.sandbox.paypal.com/v1/commerce/billing/events?per_page=10&page=1' \
-H 'Authorization: Bearer <ACCESS-TOKEN>'

Query parameters

Parameter nameDescription
page
integer
Page number for pagination. Default is 1.
per_page
integer
Number of events per page. Default is 10, maximum is 100.
external_subscription_id
string
Filter events by subscription ID, the one returned when you created a subscription.
metric_code
string
Filter events by metric code, the one returned when you created a metric.
from_date
string
Filter events from this date (ISO 8601 format).
to_date
string
Filter events until this date (ISO 8601 format).
Note: For the exhaustive list of response fields, see API reference.
I