Webhooks let your application receive real-time updates about Registration Requests created via the Create Registration Request endpoint.
How it works
- You register an HTTPS endpoint that accepts POST requests.
- We send you events as JSON whenever something changes.
- You return 200 OK to acknowledge receipt.
Subscribe to events
You can subscribe to the following event types:
registration_request.submitted
Sent when a state tax Registration Request (created via Create Registration Request) is submitted by the employer.registration_request.updated
Sent 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.
Example Payloads:
{
"account_id": "your-middesk-account-id",
"created_at": "2023-02-08T18:04:43.939Z",
"data" : {
"object": {
"object": "registration_request",
"id": "middesk-registration-request-id",
"state": "CA",
"company_id": "middesk-child-company-id",
"created_at": "2023-02-02T17:00:22Z",
"submitted_at": "2023-02-08T18:04:43Z",
"status": "submitted",
"items": [
{
"agency": "Employment Development Department (EDD)",
"label": "SUI Rate",
"state": "CA",
"updated_at": "2023-02-08T18:04:43Z",
"value": null
},
{
"agency": "Employment Development Department (EDD)",
"label": "EDD number",
"state": "CA",
"updated_at": "2023-02-08T18:04:43Z",
"value": null
}
]
}
},
"id": "middesk-event-id",
"object": "event",
"type": "registration_request.submitted"
}
{
"account_id": "your-middesk-account-id",
"created_at": "2023-02-08T18:04:43.939Z",
"data" : {
"object": {
"object": "registration_request",
"id": "middesk-registration-request-id",
"state": "CA",
"company_id": "middesk-child-company-id",
"created_at": "2023-02-02T17:00:22Z",
"submitted_at": "2023-02-08T17:00:43Z",
"status": "completed",
"items": [
{
"agency": "Employment Development Department (EDD)",
"label": "SUI Rate",
"state": "CA",
"updated_at": "2023-02-08T18:04:43Z",
"value": "12"
},
{
"agency": "Employment Development Department (EDD)",
"label": "EDD number",
"state": "CA",
"updated_at": "2023-02-08T17:00:43Z",
"value": "10201"
}
]
}
},
"id": "middesk-event-id",
"object": "event",
"type": "registration_request.updated"
}
Registration Request 'status'
Status | |
---|---|
pending | Registration Request has not yet been submitted by employer |
submitted | Registration Request has been submitted but not all Tax Registration Items are completed |
completed | Registration Request has been submitted and all Tax Registration Items are marked as completed |