Middesk Liens
The Middesk Liens Workflow Builder block retrieves lien records from the sharedmiddesk 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 asliens_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 atPUT /api/applications/{application_id}/enrich:
{"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 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 and completes through webhook updates. Lendflow marks the runSuccess 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 completedmiddesk result and can distinguish federal-tax, state-tax, and UCC lien collections. The service must run before dependent conditions.
Errors
FAQ
Why do the available option names differ by client?
Why do the available option names differ by client?
Middesk account generations use different order packages. Use the client’s returned
liens_options; do not hard-code liens, ucc_liens, or tax_liens.Can I request UCC and tax liens in one enrichment call?
Can I request UCC and tax liens in one enrichment call?
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.
Does onqueue true mean the lien order completed?
Does onqueue true mean the lien order completed?
No. Continue polling until the run finishes or fails.