Simulate webhook event
POST/simulate-event
Simulates a webhook event. In the JSON request body, specify a sample payload.
You need to
subscribe to the following webhook events for Pay upon
Invoice:
Event | Trigger |
---|---|
PAYMENT.CAPTURE.COMPLETED | A payment capture completes. |
PAYMENT.CAPTURE.DENIED | A payment capture is denied. |
CHECKOUT.PAYMENT-APPROVAL.REVERSED | PayPal reverses a payment capture. |
Request
- application/json
Body
The ID of the webhook. If omitted, the URL is required.
Possible values: <= 50 characters
, Value must match regular expression ^[a-zA-Z0-9]+$
The URL for the webhook endpoint. If omitted, the webhook ID is required.
Possible values: <= 2048 characters
The event name. Specify one of the subscribed events. For each request, provide only one event.
Possible values: <= 50 characters
, Value must match regular expression ^[a-zA-Z0-9.]+$
The identifier for event type ex: 1.0/2.0 etc.
Responses
- 202
- default
A successful request returns the HTTP 202 Accepted
status code and a JSON response body
that shows details for the mock event.
- application/json
- Schema
- Example (from schema)
Schema
The ID of the webhook event notification.
The date and time when the webhook event notification was created, in Internet date and time format.
The name of the resource related to the webhook notification event.
event_versionEvent Version (string)
The event version in the webhook notification.
Possible values: Value must match regular expression
^([0-9]+.[0-9]+)$
The event that triggered the webhook event notification.
A summary description for the event notification.
resource_version
Resource Version (string)
The resource version in the webhook notification.
Possible values: Value must match regular expression
^([0-9]+.[0-9]+)$
resourceobject
The resource that triggered the webhook event notification.
The resource that triggered the webhook event notification.
An array of request-related HATEOAS links.
{
"id": "string",
"create_time": "2024-07-29T15:51:28.071Z",
"resource_type": "string",
"event_version": "string",
"event_type": "string",
"summary": "string",
"resource_version": "string",
"resource": {},
"links": [
{
"href": "string",
"rel": "string",
"method": "GET"
}
]
}
- application/json
- Schema
- Example (from schema)
Schema
The human-readable, unique name of the error.
The message that describes the error.
The PayPal internal ID. Used for correlation purposes.
The information link, or URI, that shows detailed information about this error for the developer.
An array of additional details about the error.
An array of request-related HATEOAS links.
{
"name": "string",
"message": "string",
"debug_id": "string",
"information_link": "string",
"details": [
{
"field": "string",
"value": "string",
"location": "body",
"issue": "string",
"description": "string"
}
],
"links": [
{
"href": "string",
"rel": "string",
"method": "GET"
}
]
}