Monitor status
Monitor for changes to the registration(s) associated with the business you’re monitoring.
To handle changes to a business’s registrations, subscribe to the registration.created and registration.updated events in your webhook endpoint.
Use this to detect a change to any field on an existing registration and learn about new registrations associated with a business.
This example demonstrates handling an event update triggered by a change in registration status, but the same pattern can be generalized for any field associated with a registration.
Use the event payload
The event payload includes a snapshot of the registration associated to the business.
Use the data.object.status field inside the webhook payload to read the registration’s status directly from the webhook event.
A special previous_attributes field is included in the embedded event object.
This field contains a JSON object with the associated key/value pairs that have changed (and includes the previous values).
Use business review tasks
Re-evaluate the business’s review tasks by requesting the full business payload using the GET /businesses endpoint.
Use the SOS Domestic review task to re-evaluate the domestic filing status of the business after receiving the registration.updated event.
Handle state-specific alerts
The most recent snapshot of the registration is included in the registration.updated event.
Use this snapshot to selectively handle webhook events. For example, if you’re only interested in events emanating from a specific registration state, ignore events triggered from other registration updates.
This example filters on KY-only updates.
Next, use GET /businesses endpoint to fetch the full registration payload and select for individual registrations.