Configure webhooks for entity management
Configure webhooks to receive notifications when registrations, information requests, item changes, and mail are created or updated.
Subscribe to events
You can subscribe to these event types: registration requests, jurisdiction registrations, information requests, item changes, and mail.
Registration request events
Receive real-time updates about registration requests created via the POST /registration_requests endpoint.
registration_request.submittedsends when a state tax registration request is submitted by the employer.registration_request.updatedsends when a Tax Registration Item created by that submitted registration request is completed and its Tax IDs are available. Multiple updates are possible as items complete over time.
Use these example payloads to notify your systems of any changes to a registration request. In both events, data.object is a full RegistrationRequest object; the examples show only some of its attributes.
Understand the status of your jurisdiction registration requests.
Jurisdiction registrations
agent_jurisdiction_registration.createdsends when a jurisdiction registration is created by Middesk.agent_jurisdiction_registration.updatedsends whenever the status of a jurisdiction registration is updated by Middesk.
Use these example payloads to notify your systems of any changes to a jurisdiction registration.
Understand the status of your jurisdiction registration requests.
Unmanaged reasons
Jurisdiction registration events don’t say why a registration is unmanaged. The state and local agency registrations behind it carry that reason in a status_reason field, which appears in these payloads:
- Each object in
agenciesinregistration_request.submittedandregistration_request.updatedevents. agent_tax_agency_registration.updatedevents for state tax agency registrations.agent_agency_registration.updatedevents for local agency registrations. These fire when a local registration’s items or account change, not when its status changes. When a local registration in a registration request becomesunmanaged, you receiveregistration_request.updatedinstead.
status_reason gives the reason behind a registration’s status. For now it’s only set while status is unmanaged, to one of partner_cancelled, customer_cancelled, or unsupported, and is null otherwise. It can also be null for an unmanaged registration with no recorded reason. For what each reason means, see Unmanaged reasons.
Information request events
agent_info_request.createdsends when an information request is created. The link to the web form for the information request is provided in the url property.agent_info_request.updatedsends when an information request is updated.agent_info_request.voidedsends when an information request is voided. A voided information request no longer needs action.
Use these example payloads to notify your systems of any changes to an information request.
Item change events
agent_item_change.createdsends when an item change is created.agent_item_change.updatedsends when an item change is updated. This includes when it is applied to the existing tax registration item.
Use these example payloads to notify your systems of any changes to an item.
agent_mail.availablesends when a piece of mail is newly available in Middesk.
Use this example payload to notify your systems of mail received by Middesk.