View as Markdown
API Spec (JSON)
API Spec (YAML)
Compact modeHides field descriptions and other prose for a more compact, scannable view of the API reference.Client CredentialsToken URLhttps://api-m.sandbox.paypal.com/v1/oauth2/tokenInheaderScopes
readwriteapplication/json
TypeScript Definitions
Use the request body type in TypeScript.
eventsobject<EventRequest>[]Optionalapplication/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/events/batch" \ -H "Content-Type: application/json" \ -d '{ "events": [ { "transaction_id": "event_t1_1753838783", "external_subscription_id": "91624203-791a-4639-8c86-4693948b3a41", "metric_code": "Billable_Metrics_1753827008", "timestamp": "2023-01-01T00:00:00Z", "properties": { "gb": 10 } }, { "transaction_id": "event_t2_1753838783", "external_subscription_id": "91624203-791a-4639-8c86-4693948b3a41", "metric_code": "Billable_Metrics_1753827008", "timestamp": "2023-01-01T00:00:00Z", "properties": { "gb": 10 } } ] }'{ "status": "ACCEPTED", "results": { "success_count": 2, "error_count": 0 }}