Middesk Bankruptcies
The Middesk Bankruptcies Workflow Builder block checks a business for bankruptcy cases. The block runs the sharedmiddesk service and reads the bankruptcies portion of the stored Middesk business response.
What the service returns
An empty
bankruptcies array means Middesk returned no cases in the stored response. Check the lifecycle status separately to confirm that the run succeeded.
Requirements
Run the service
Call Enrich Business Credit Application atPUT /api/applications/{application_id}/enrich:
options for the bankruptcy block. Middesk product options control lien orders.
The response {"data":{"onqueue":true}} confirms only that Lendflow queued the job.
Retrieve the result
Poll Get Commercial Data withservices[]=middesk.
Call
GET /api/applications/{application_id}/commercial_data?services[]=middesk. Use statuses.middesk and dates.middesk to track the latest run, commercial_data.middesk for the provider response, and request_data.middesk for the stored request.
Asynchronous behavior
Middesk is always queued. Lendflow creates the business, waits for Middesk webhooks, and refreshes the stored response. The run becomesSuccess only after the Middesk business status is in_review, approved, or declined and every returned order is completed.
Rerunning creates another middesk run. Evaluate the latest lifecycle record and stored response.
Example response
Response fields
The provider can omit unavailable fields or return additional fields. The example is intentionally representative, not a complete Middesk schema.
Data Orchestration
Middesk Bankruptcies is available under Bankruptcies → Middesk. Conditions use the completedmiddesk result, so the service must run before dependent conditions are evaluated.
Errors
FAQ
Does this block have a separate bankruptcy service ID?
Does this block have a separate bankruptcy service ID?
No. The block ID is
middesk_bankruptcies, but it runs middesk and reads commercial_data.middesk.bankruptcies.Should I send lien options?
Should I send lien options?
No. Lien options belong to the Middesk Liens block.
Does onqueue true mean the check finished?
Does onqueue true mean the check finished?
No. It means the job was queued. Poll until
statuses.middesk reaches Success or contains an error.What does an empty bankruptcies array mean?
What does an empty bankruptcies array mean?
It means no cases were returned in the stored response. Confirm
Success separately.