Skills › Reports
Prepare an M&A Due-Diligence / Quality-Of-Earnings Report
POST/api/v1/skills/reports.due-diligence.prepare/invoke
Builds a quality-of-earnings and due diligence report on a target business from data-room files. Send client_id for the acquirer and target_entity for the business being bought; the deal type, sections and period have defaults. The answer holds normalised EBITDA, a working-capital peg, debt-like items, red flags and a download link, and any figure not yet calculated is named in stub_fields.
Body parameters
client_idstring · uuidRequired
UUID of the acquiring entity.
target_entitystringRequired
Legal name of the business being bought or invested in.
deal_typeenum · default acquisition
Kind of deal: acquisition, merger or investment; acquisition when omitted.
acquisitionmergerinvestment
file_idsarray of strings
UUIDs of data-room files to review; only the first 5 are read.
sectionsarray of enum
Sections to build, any of qoe, working_capital, debt_like, tax_exposures, customer_concentration, revenue_quality, key_dependencies and red_flags; the first five of those by default.
qoeworking_capitaldebt_liketax_exposurescustomer_concentrationrevenue_qualitykey_dependenciesred_flags
periodstring
Review period as an ISO 8601 range such as 2025-10-01/2026-09-30; the last twelve months when omitted.
Returns
Skill executed successfully
skillstringRequired
Example prepare_due_diligence_report
outputobjectRequired
output.artifact_idstring · uuid
output.download_urlstring · default
output.summarystring · default
output.citationsarray of values
output.warningsarray of strings
output.stub_fieldsarray of strings
output.target_entitystring · default
output.normalised_ebitdanumber or string · default 0
output.working_capital_pegnumber or string · default 0
output.debt_like_itemsarray of objects
output.red_flagsarray of values
output.sections_builtarray of strings
correlation_idstringRequired
Errors
StatusTypeWhen
401AUTH.TOKEN_INVALID Authentication required
403PERMISSION.CAPABILITY_DENIED Insufficient permissions
404SKILL.NOT_FOUND Skill not found
422VALIDATION.INVALID_FORMAT Validation error
429RATE_LIMIT.USER Rate limit exceeded
5XXINTERNAL.UNKNOWN Internal server error
curl https://uk.heyarchie.com/api/v1/skills/reports.due-diligence.prepare/invoke \ -X POST \ -H "Authorization: Bearer sk_..." \ -H "Content-Type: application/json" \ -d '{ "client_id": "00000000-0000-0000-0000-000000000000", "target_entity": "string", "deal_type": "acquisition", "file_ids": [ "00000000-0000-0000-0000-000000000000" ], "sections": [ "qoe" ], "period": null }'
from heyarchie import Archie archie = Archie(api_key="sk_...") result = archie.skills.invoke( "reports.due-diligence.prepare", client_id="00000000-0000-0000-0000-000000000000", target_entity="string", deal_type="acquisition", file_ids=["00000000-0000-0000-0000-000000000000"], sections=["qoe"], period=None, ) print(result)
import { Archie } from "heyarchie";
const archie = new Archie({ apiKey: "sk_..." });
const result = await archie.skills.invoke("reports.due-diligence.prepare", {
"client_id": "00000000-0000-0000-0000-000000000000",
"target_entity": "string",
"deal_type": "acquisition",
"file_ids": [
"00000000-0000-0000-0000-000000000000"
],
"sections": [
"qoe"
],
"period": null
});
console.log(result);Response
{
"skill": "prepare_due_diligence_report",
"output": {
"artifact_id": "0495af80-c3b7-4b38-b640-d9a1344a202f",
"debt_like_items": [
{
"amount": 275000,
"item": "Deferred consideration on a 2024 acquisition"
},
{
"amount": 48000,
"item": "Accrued holiday pay"
}
],
"download_url": "https://files.example.com/due-diligence/0495af80-c3b7-4b38-b640-d9a1344a202f.docx",
"normalised_ebitda": 1840000,
"red_flags": [
{
"amount_at_risk": 755000,
"classification": "revenue_concentration",
"description": "The largest customer is 41% of revenue and its contract ends in March 2027.",
"evidence": [
"Customer revenue schedule, year to 30 September 2026"
],
"flag_id": "rf-001",
"recommended_action": "Seek a contract extension or a price adjustment before completion.",
"severity": "SIGNIFICANT"
}
],
"sections_built": [
"qoe",
"working_capital",
"debt_like",
"red_flags"
],
"stub_fields": [],
"summary": "Bluebell Packaging Ltd has normalised EBITDA of £1.84m and one significant red flag.",
"target_entity": "Bluebell Packaging Ltd",
"warnings": [],
"working_capital_peg": 620000
},
"correlation_id": "<string>"
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"retry_after_seconds": "<integer>"
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"retry_after_seconds": "<integer>"
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"retry_after_seconds": "<integer>"
}
}Every response also carries X-Request-ID. Quote it if you write to us about a call.