REST API

Example: Creating a Webhook Subscription Using OAuth

Request
{ "name": "Terminal Management Webhook", "description": "Notification of assignment updates", "organizationId": "org1", "productId": "terminalManagement", "eventTypes": [ "terminalManagement.assignment.update" ], "webhookUrl": "https://mywebhookserver.com:8443/simulateclient", "healthCheckUrl": "https://mywebhookserver.com:8443/simulateclienthealthcheck", "notificationScope": "SELF", "securityPolicy": { "securityType": "oAuth", "config": { "oAuthTokenExpiry": "365", "oAuthURL": "https://mywebhookserver.com/oauthtoken", "oAuthTokenType": "Bearer" } } }
Response
{ "organizationId" : "org1", "productId" : "terminalManagement", "eventTypes" : [ "terminalManagement.assignment.update" ], "webhookId" : "d7399cb6-ff9f-72d9-e053-3cb8d30a62ee", "webhookUrl" : "https://mywebhookserver.com/simulateclient", "healthCheckUrl" : "https://mywebhookserver.com/simulateclient/healthcheck", "createdOn" : "2022-02-04T22:17:43.045Z", "status" : "INACTIVE", "retryPolicy" : { "algorithm" : "ARITHMETIC", "firstRetry" : "1", "interval" : "1", "numberOfRetries" : "3", "deactivateFlag" : "false", "repeatSequenceCount" : "0", "repeatSequenceWaitTime" : "0" }, "securityPolicy" : { "securityType" : "oAuth", "proxyType" : "internal", "digitalSignatureEnabled" : "yes", "config" : { "oAuthTokenExpiry" : "300, "oAuthURL" : "https://myoauthserver.com/simulator/v1/token", "oAuthTokenType" : "Bearer" } }, "version" : "3", "notificationScope" : "SELF" }