REST Example: Creating a Webhook Subscription
Request
{ "organization": {"organizationId": "testrest"}, "product": {"productId": "tokenManagement"}, "webhook": { "webhookId": "e33b4ff7-f94a-2de4-e053-a2588e0a0403", "webhookUrl": "https://URL", "createdOn": "2021-12-15 23:46:00.053", "eventTypes": [ {"name": "tms.networktoken.provisioned"}, {"name": "tms.networktoken.updated"} ], "status": "ACTIVE", "retryPolicy": { "algorithm": "ARITHMETIC", "firstRetry": 5, "interval": 5, "numberOfRetries": 4, "deactivateFlag": false, "repeatSequenceCount": 4, "repeatSequenceWaitTime": 5 }, "securityPolicy": [ { "digitalSignatureEnabled": "yes", "proxyType": "external", "security_id": "c05cc30a-ce9b-487f-be38-65ab5977b5bc", "security_type": "key" }] } }
Response to a Successful Request
{ "organizationId": "testrest", "productId": "terminalManagement", "eventTypes": [ "tms.networktoken.provisioned", "tms.networktoken.updated" ], "webhookId": "e33b4ff7-f94a-2de4-e053-a2588e0a0403", "webhookUrl": "https://NewURL", "healthCheckUrl": "https://URL", "createdOn": "2022-07-07 17:24:05.116", "status": "ACTIVE", "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": "DESCENDANTS" }