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.
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/events" \ -H "Content-Type: application/json" \ -d '{ "transaction_id": "txn_1234567890abcdef", "external_subscription_id": "sub_1234567890abcdef", "metric_code": "event_code_123456" }'{ "transaction_id": "event_1753818829", "metric_code": "91624203-791a-4639-8c86-4693948b3a41", "external_subscription_id": "d2d628e8-e7fb-412f-b09c-7f70ee58b50a", "timestamp": "2025-07-29T12:53:49.076-07:00", "properties": { "gb": 10 }, "id": "d80447f2-0f34-4612-86ae-152160dc66c5", "created_at": "2025-07-29T12:53:49-07:00"}