Events
Create a new usage event
post/events
Request
- Base URLhttps://api-m.sandbox.paypal.com
- AuthOAuth 2Client credentialsToken URL/api/oauth-proxyScopesread, write
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"transaction_id": "txn_1234567890abcdef",
"external_subscription_id": "sub_1234567890abcdef",
"metric_code": "event_code_123456",
"timestamp": "2023-10-01T12:00:00Z"
}Response
Event created successfully
Example response
{
"transaction_id": "txn_1234567890abcdef",
"external_subscription_id": "sub_1234567890abcdef",
"metric_code": "event_code_123456",
"timestamp": "2023-10-01T12:00:00Z",
"id": "evt_1234567890abcdef",
"created_at": "2023-10-01T12:00:00Z"
}Changes
No recorded changes to this operation across all 1 revision of this API.