Skip to main content

Middesk Bankruptcies

The Middesk Bankruptcies Workflow Builder block checks a business for bankruptcy cases. The block runs the shared middesk 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 at PUT /api/applications/{application_id}/enrich:
Do not send 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 with services[]=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 becomes Success 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 completed middesk result, so the service must run before dependent conditions are evaluated.

Errors

FAQ

No. The block ID is middesk_bankruptcies, but it runs middesk and reads commercial_data.middesk.bankruptcies.
No. Lien options belong to the Middesk Liens block.
No. It means the job was queued. Poll until statuses.middesk reaches Success or contains an error.
It means no cases were returned in the stored response. Confirm Success separately.