POST /merchants/{merchantId}/webhooks/{webhookId}/test
Sends sample notifications to test if the webhook is set up correctly.
We send four test notifications for each event code you choose. They cover success and failure scenarios for the hard-coded currencies EUR and GBP, regardless of the currencies configured in the merchant accounts. For custom notifications, we only send the specified custom notification.
The response describes the result of the test. The status
field tells you if the test was successful or not. You can use the other fields to troubleshoot unsuccessful tests.
To make this request, your API credential must have the following roles:
- Management API—Webhooks read and write
Servers
- https://management-test.adyen.com/v3
Path parameters
Name | Type | Required | Description |
---|---|---|---|
webhookId |
String | Yes |
Unique identifier of the webhook configuration. |
merchantId |
String | Yes |
The unique identifier of the merchant account. |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
types[] |
Array | No |
List of event codes for which to send test notifications. Only the webhook types below are supported. Possible values if webhook
Possible values if webhook
Possible values if webhook
Possible values if webhook
Possible values if webhook
|
notification |
Object | No |
Custom test notification object. Required when the |
notification.paymentMethod |
String | No |
The payment method for the payment that the notification is about. Possible values:
|
notification.merchantReference |
String | No |
Your reference for the custom test notification. |
notification.amount |
Object | No |
The amount of the payment that the notification is about. Set the value in minor units. |
notification.amount.value |
Integer | Yes |
The amount of the transaction, in minor units. |
notification.amount.currency |
String | Yes |
The three-character ISO currency code. |
notification.eventDate |
String | No |
The time of the event. Format: ISO 8601, YYYY-MM-DDThh:mm:ssTZD. |
notification.eventCode |
String | No |
The event that caused the notification to be sent.Currently supported values:
|
notification.reason |
String | No |
A description of what caused the notification. |
notification.success |
Boolean | No |
The outcome of the event which the notification is about. Set to either true or false. |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.