Webhooks
Webhooks are used to send updates of events from Stratech Booking. The data of the events will be in the body of the request as a JSON object.
All events will be posted to the same webhook. With the eventType property a distinction can be made between events. The eventData property contains specific data for that event. See below for more information about the events.
Events
SelfService.created
When a new provider is added the following event
is sent:
{
"eventType": "SelfService.created",
"eventData": {
"authority": "https://identity.stratechbooking.nl/org_12345",
"clientId": "selfserviceclient_org_12345_self_service",
"responseType": "code",
"scope": "<scopes>",
"organizationReference": "org_12345"
}
}
SelfService.revoked
When a provider is revoked or deleted the following event
is sent:
{
"eventType": "SelfService.revoked",
"eventData": {
"organizationReference": "org_12345"
}
}
Once this occurs, guests lose the capability to log into the self-service environment and cannot access their data via the Stratech Guest API
. Partners should act swiftly to deactivate the login functionality.
It's advisable to hide the login button upon receiving the SelfService.revoked event. By doing so, guests won't face a potential error page in Identity, even though the link to the login remains valid.