Skip to main content

Middesk Liens

The Middesk Liens Workflow Builder block retrieves lien records from the shared middesk service. Depending on the Middesk account type, the block can request a combined liens product or separate UCC-lien and tax-lien products.

What the service returns

An empty liens array is a successful no-record result only when the lifecycle status is successful.

Requirements

Select a lien product

Retrieve the options available to the client rather than assuming an account type. Lendflow exposes them as liens_options. Only values returned for the client should be submitted. A newer account receives ucc_liens and tax_liens; an older account receives liens.

Run the service

Call Enrich Business Credit Application at PUT /api/applications/{application_id}/enrich:
Submit one available option per block run. The API returns {"data":{"onqueue":true}} when the job is queued. For newer Middesk accounts, Lendflow includes the selected order and the required business_verification_verify package when creating the business. For older accounts, Lendflow creates the selected order after a Middesk business-update webhook.

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 and completes through webhook updates. Lendflow marks the run Success only after the business status is in_review, approved, or declined and every returned order is completed. Rerun the block to request another product or refresh data. Because all Middesk legal blocks share middesk, use the latest run’s context and response when comparing results.

Example response

Response fields

The provider can return additional fields such as source, update date, packet or confirmation number, collateral type, termination data, and principal amount. They are intentionally omitted because this example does not claim a fixed schema beyond fields shown.

Data Orchestration

Middesk Liens is available under Liens → Middesk. Conditions use the completed middesk result and can distinguish federal-tax, state-tax, and UCC lien collections. The service must run before dependent conditions.

Errors

FAQ

Middesk account generations use different order packages. Use the client’s returned liens_options; do not hard-code liens, ucc_liens, or tax_liens.
The API context accepts an array, but the current block UI selects one option for each run. Submit one available product per block run to match that behavior.
Both blocks run middesk and read different sections of the same stored business response.
No. Continue polling until the run finishes or fails.