Event types.
onRelease
The onRelease
event type covers when any of the following events takes place:
a release has been transferred to your organization
a release that has been transferred to your organization and is:
updated
blocked
unblocked
deleted
revoked
This way you can update your internal systems when releases are transferred or revoked manually, in the SCR web application.
onRelease Payload
When the onRelease
event occurs, the callback is invoked with the following data:
release
The address of the release
event
A string denoting the event, being one of the following:
transfer
, update
, block
, unblock
, delete
, revoke
*, greenlights
organization
The address for which the event is reported
vat
The VAT no of the organization for which the event is reported
The last two fields are added for organizations with multiple legal entities. This way, you can collect the notifications using one endpoint and route them to the correct (internal) system using these fields.
* For revoke
action, the following parties are notified:
If the API is version 1.2.3 or lower only the current and the new owner receive a notification in the API
If the API is version 1.2.4 or higher all organizations that are in the ownership chain of the release receive a notification in the API
Examples
Please see below examples of onRelease
events:
Last updated