On This Page
Testing a Webhook Subscription
To test a webhook subscription for an organization, send a POST request with the webhook
ID included in the path using the endpoint specified below.
Only the first event type in your subscription is listed in the
eventType
field in the response. To retrieve the details of a
webhook subscription, see Retrieving the Details of a Webhook Subscription.
After you send the request, check the response message to verify that the request was
successful. A 200-level response code indicates success.
For information about response codes, see
Transaction Response
Codes
.Endpoint
- Test:POSTapitest.visaacceptance.com/notification-subscriptions/v1/webhooks/{webhookId}
- Production:POSTapi.visaacceptance.com/notification-subscriptions/v1/webhooks/{webhookId}
Example: Testing a Webhook Subscription
Request
Response to a Successful Request
{ "eventDate": "2024-05-08T16:15:23", "eventType": "tms.networktoken.updated", "organizationId": "npr_gpn", "payloads": { "testPayload": { "message": "Yay! Your webhook integration worked! This is only a test and an example of what a webhook message payload looks like. Thank you for using our test feature." } }, "productId": "tokenManagement", "requestType": "NEW", "retryNumber": "0", "transactionTraceId": "ddd8883c-f14d-48af-bd35-ff9b4a51ca35", "webhookId": "17915c64-73d9-5475-e063-7cb8d30a8089" }