Skip to content

List of webhooks

This document contains information around the list of webhooks that are emitted from SuperAPI. You can use this reference to find out:

  1. When and why a webhook is emitted
  2. The contents of that webhook.

We will also go into some detail around some hypothetical actions you might want to take in the system upon receiving a particular webhook.

Understanding SuperAPI webhooks

The subject

Webhooks are always based on a subject entity in our system. Currently these subject entities are one of either an employer or onboarding_session but we may extend this to more entities depending on the nature of the webhook. For example, if we were to emit a webhook that was related to an event occurring with a product in our system then the subject of that webhook would be a product. You can also think of the webhook subject being a kind of namespace for the webhook.

WARNING

We may introduce additional webhook namespaces for employee and products in the future.

The event

Webhooks are sent based on events occurring in our system and this information is also passed to the consumer of the webhook. Events include things like an employer changing their settings or an onboarding session being completed.

The payload

Webhooks contain a minimal payload designed to give you enough information to be able to make a request to our API to fetch further information. All webhooks follow a similar structure, an example being:

json
{
  "subject": "employer",
  "event": "employer_settings_changed",
  "id": "c2bc0c04-6b98-4333-91a6-919f5ebc9000",
  "remote_id": "1234",
  "url": "https://api.superapi.com.au/api/v1/employers/c2bc0c04-6b98-4333-91a6-919f5ebc9000"
}
fieldkinddescription
subjectstringThe entity that the webhook belongs to
eventstringThe event in our system that triggered the webhook
idstringThe primary key of the entity that triggered the webhook
remote_idstringThe remote_id of this entity in your system
urlstringThe URL you should call to fetch the entity that triggered the event

Webhooks list

NamespaceNameFired whenResponse actions
employeremployer_settings_changedAn employer has changed settings that are relevant to our partner, e.g. they have picked a default fundYou should fetch the employer object from SuperAPI and check if it is now correctly configured to allow onboarding sessions to be created.
employerstapling_requests_failingStapling requests on behalf of an employer have started to failFired when we attempt to staple an employee to discover their current fund. The desired outcome here would be to notify the employer that they need to reconfigure access in the RAM portal. Only fired once when we cross over into the failure state
employerstapling_requests_succeedingStapling requests on behalf of an employer have started to failFired when an employer that was previously failing to send stapling requests has fixed the permission issue and stapling requests are working correctly again. Can be used for possible cleanup in your system (i.e. removing a banner indicating the failures)
onboarding_sessiononboarding_session_completedAn employee has completed an onboarding sessionThis is fired only when all required details have been collected from the user (e.g. for superannuation selection, a fund USI, ABN, member number and generated PDFs will be present in the payload)

The future of super is embedded