REST Example: Create Pay by Link Webhook
Subscription
REST
Example: Create Pay by Link
Webhook
SubscriptionBarclaysAPI
Request
{ "name": "PBL Webhook Subscription", "description": "PBL Webhook for Digital Accept", "organizationId": "digital_accept_lab", "productId": "payByLink", "eventTypes": [ "payByLink.customer.payment", "payByLink.merchant.payment" ], "webhookUrl": "https://test.com:443/test", "healthCheckUrl": "https://test.com:443/test", "notificationScope": "SELF", "retryPolicy": { "algorithm": "ARITHMETIC", "firstRetry": 1, "interval": 1, "numberOfRetries": 3, "deactivateFlag": "false", "repeatSequenceCount": 0, "repeatSequenceWaitTime": 0 }, "securityPolicy": { "securityType": "KEY", "proxyType": "external" } }
Response to a Successful Request
{ "organizationId": "digital_accept_lab", "productId": "payByLink", "eventTypes": [ "payByLink.customer.payment", "payByLink.merchant.payment" ], "webhookId": "1928667e-f9f7-8a37-e063-9c588e0a7e3b", "name": "PBL Webhook Subscription", "webhookUrl": "https://test.com:443/test", "healthCheckUrl": "https://test.com:443/test", "createdOn": "2024-05-23T23:27:54.268Z", "status": "INACTIVE", "description": "PBL Webhook for Digital Accept", "retryPolicy": { "algorithm": "ARITHMETIC", "firstRetry": 1, "interval": 1, "numberOfRetries": 3, "deactivateFlag": false, "repeatSequenceCount": 0, "repeatSequenceWaitTime": 0 }, "securityPolicy": { "securityType": "KEY", "proxyType": "external", "digitalSignatureEnabled": "yes" }, "version": "3", "deliveryType": "nrtdCentral", "notificationScope": "SELF" }