# REST reference: Diligence

Checks on a deal’s records.

| Operation | Call | Price | MCP tool |
| --- | --- | --- | --- |
| [Reconcile bank deposits to P&L revenue and tax-return receipts, by period](#compute-proof-of-cash) | `POST /v1/diligence/proof-of-cash` | 50 credits | `check_proof_of_cash` |
| [Rule-based red flags](#check-red-flags) | `POST /v1/diligence/red-flags` | 50 credits | `check_red_flags` |
| [Natural-hazard ratings, flood zone, disaster declarations and damaging storms for an address or county](#get-site-risk) | `GET /v1/diligence/site-risk` | Lookup: 1,000 free a month, then 0.5 credits | `get_site_risk` |

## Reconcile bank deposits to P&L revenue and tax-return receipts, by period {#compute-proof-of-cash}

```http
POST /v1/diligence/proof-of-cash
```

Reads extracted figures from the deal's documents. Every extracted figure cites its document and page. Transfers, loan proceeds and owner contributions are excluded only as the user confirms them.

**Price:** 50 credits · **MCP tool:** `check_proof_of_cash` · **Key scope:** `deals:read`

**Parameters**

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `Acquestor-Max-Credits` | header | No | number (min 0) | The most this call may charge. If its price is higher, it returns 402 `over_max_credits` and runs nothing. |
| `Idempotency-Key` | header | No | string (at least 1 character, up to 255 characters) | 1 to 255 characters. Recommended on every write and on priced calls: a retry with the same key and body replays the first result and isn't charged again. |

**Body** (`application/json`)

| Field | Required | Type | Description |
| --- | --- | --- | --- |
| `deal_id` | Yes | string | The granted deal to reconcile. |
| `document_ids` | No | array of strings | Deal documents to use; defaults to all. |
| `periods` | No | array of string (pattern `^[0-9]{4}(-TTM)?$`) | Calendar years (YYYY); defaults to all the documents cover. A trailing-twelve-month period (YYYY-TTM) returns a not_yet_supported gap. |
| `confirmed_exclusions` | No | array of objects | Deposits you confirm are not revenue. |
| `confirmed_exclusions[].period` | Yes | string (pattern `^[0-9]{4}(-(0[1-9]\|1[0-2]))?$`) | YYYY or YYYY-MM of the deposit. |
| `confirmed_exclusions[].amount` | Yes | number (min 0) | Excluded deposit in whole US dollars. |
| `confirmed_exclusions[].reason` | Yes | one of `transfer`, `loan_proceeds`, `owner_contribution`, `refund`, `other` | Why it is not revenue. |
| `confirmed_exclusions[].document_id` | No | string | Document showing the deposit. |
| `confirmed_exclusions[].page` | No | integer | Page of that document. |
| `variance_threshold` | Yes | number (min 0, max 1) | Variance as a decimal that flags a year; you set it. |

**Response** `200`: Reconciliation

Returned in [the envelope](/concepts/figures#the-envelope) (`computation`, `sources`, `gaps`, `warnings`, `disclaimer`, `card`, `actions`, `run_id`, `charge`, `truncated`); `data` holds:

| Field | Required | Type | Description |
| --- | --- | --- | --- |
| `data` | No | object, nullable | The result; null over REST and absent over MCP when the run produced only gaps. |
| `data.periods` | No | array of objects | One row per year reconciled, oldest first. |
| `data.periods[].period` | No | string | The year, as YYYY. |
| `data.periods[].months_covered` | No | integer (min 0, max 12) | Months of bank statements found for the year. |
| `data.periods[].deposits` | No | [Figure](/concepts/figures#figure) | Bank-statement deposits read for the year, in whole US dollars; null when no statements for the year are on the deal. |
| `data.periods[].excluded` | No | [Figure](/concepts/figures#figure) | Deposits you confirmed are not revenue, such as transfers or loan proceeds, in whole US dollars; 0 when none. |
| `data.periods[].net_deposits` | No | [Figure](/concepts/figures#figure) | Deposits minus excluded deposits, in whole US dollars; null when there are no deposits. |
| `data.periods[].pl_revenue` | No | [Figure](/concepts/figures#figure) | Revenue on the year's P&L, read from the deal's documents, in whole US dollars; null, with a gap, when none is on the deal. |
| `data.periods[].return_receipts` | No | [Figure](/concepts/figures#figure) | Gross receipts on the year's tax return, in whole US dollars; null, with a gap, when no return is on the deal. |
| `data.periods[].variance_to_pl` | No | [Figure](/concepts/figures#figure) | (Net deposits minus P&L revenue) divided by P&L revenue, as a decimal; null when either is missing or revenue is 0. |
| `data.periods[].variance_to_return` | No | [Figure](/concepts/figures#figure) | (Net deposits minus return gross receipts) divided by those receipts, as a decimal; null when either is missing or receipts are 0. |
| `data.periods[].flagged` | No | boolean | True when either variance is further from 0 than `variance_threshold`. |
| `data.sde_over_tax_income_share` | No | [Figure](/concepts/figures#figure) | How far SDE sits above taxable income on the latest year's return, as a decimal (SDE over taxable income, minus 1). Absent when either is missing. |

**Call**

```sh
curl -X POST "https://api.acquestor.com/v1/diligence/proof-of-cash" \
  -H "Authorization: Bearer $ACQUESTOR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"deal_id":"00000000-0000-4000-8000-000000000001","variance_threshold":0.05}'
```

**Example** (captured from the running code; `card` left out)

Request body:

```json
{
  "deal_id": "00000000-0000-4000-8000-000000000001",
  "variance_threshold": 0.05
}
```

Response `200`:

```json
{
  "data": {
    "periods": [
      {
        "period": "2025",
        "deposits": {
          "value": 2100000,
          "unit": "USD",
          "source": "c1"
        },
        "excluded": {
          "value": 0,
          "unit": "USD",
          "source": "c1"
        },
        "net_deposits": {
          "value": 2100000,
          "unit": "USD",
          "source": "c1"
        },
        "pl_revenue": {
          "value": 2100000,
          "unit": "USD",
          "source": "c1"
        },
        "return_receipts": {
          "value": 2080000,
          "unit": "USD",
          "source": "c1"
        },
        "variance_to_pl": {
          "value": 0,
          "unit": "share",
          "source": "c1"
        },
        "variance_to_return": {
          "value": 0.009615,
          "unit": "share",
          "source": "c1"
        },
        "flagged": false,
        "months_covered": 12
      }
    ]
  },
  "sources": [
    {
      "id": "u1",
      "basis": "client_supplied",
      "route": "served_directly",
      "as_of": "2026-10-05",
      "name": "Supplied by the calling client",
      "line": "Supplied by the calling AI client or API caller, Oct 5, 2026; used for this request only"
    }
  ],
  "gaps": [
    {
      "field": "sde_over_tax_income_share",
      "reason": "insufficient_records",
      "detail": "No 2025 SDE or tax-return taxable income is among the deal's figures, so SDE isn't compared to taxable income."
    }
  ],
  "disclaimer": "informational",
  "computation": {
    "id": "c1",
    "method": "proof_of_cash",
    "method_version": "1.0.0",
    "computed_at": "2026-10-05T15:02:11.000Z",
    "rule_sets": [],
    "inputs": {
      "variance_threshold": {
        "value": 0.05,
        "unit": "share",
        "source": "u1"
      },
      "bank_deposits_2025_01": {
        "value": 175000,
        "unit": "USD",
        "source": "u1",
        "as_of": "2026-10-05"
      },
      "bank_deposits_2025_02": {
        "value": 175000,
        "unit": "USD",
        "source": "u1",
        "as_of": "2026-10-05"
      },
      "bank_deposits_2025_03": {
        "value": 175000,
        "unit": "USD",
        "source": "u1",
        "as_of": "2026-10-05"
      },
      "bank_deposits_2025_04": {
        "value": 175000,
        "unit": "USD",
        "source": "u1",
        "as_of": "2026-10-05"
      },
      "bank_deposits_2025_05": {
        "value": 175000,
        "unit": "USD",
        "source": "u1",
        "as_of": "2026-10-05"
      },
      "bank_deposits_2025_06": {
        "value": 175000,
        "unit": "USD",
        "source": "u1",
        "as_of": "2026-10-05"
      },
      "bank_deposits_2025_07": {
        "value": 175000,
        "unit": "USD",
        "source": "u1",
        "as_of": "2026-10-05"
      },
      "bank_deposits_2025_08": {
        "value": 175000,
        "unit": "USD",
        "source": "u1",
        "as_of": "2026-10-05"
      },
      "bank_deposits_2025_09": {
        "value": 175000,
        "unit": "USD",
        "source": "u1",
        "as_of": "2026-10-05"
      },
      "bank_deposits_2025_10": {
        "value": 175000,
        "unit": "USD",
        "source": "u1",
        "as_of": "2026-10-05"
      },
      "bank_deposits_2025_11": {
        "value": 175000,
        "unit": "USD",
        "source": "u1",
        "as_of": "2026-10-05"
      },
      "bank_deposits_2025_12": {
        "value": 175000,
        "unit": "USD",
        "source": "u1",
        "as_of": "2026-10-05"
      },
      "pl_revenue_2025": {
        "value": 2100000,
        "unit": "USD",
        "source": "u1",
        "as_of": "2026-10-05"
      },
      "return_gross_receipts_2025": {
        "value": 2080000,
        "unit": "USD",
        "source": "u1",
        "as_of": "2026-10-05"
      }
    }
  },
  "run_id": "00000000-0000-4000-8000-000000000002",
  "charge": {
    "credits": 50,
    "price_class": "deep_tool",
    "balance_after": 422,
    "ledger_entry_id": "00000000-0000-4000-8000-000000000003"
  }
}
```

**Errors**

| Status | Code | Meaning |
| --- | --- | --- |
| 400 | [`invalid_header`](/problems/invalid_header) | A header has an invalid value |
| 400 | [`invalid_json`](/problems/invalid_json) | The body isn't valid JSON |
| 401 | [`unauthorized`](/problems/unauthorized) | Sign-in required |
| 402 | [`insufficient_credits`](/problems/insufficient_credits) | Not enough credits |
| 402 | [`over_limit`](/problems/over_limit) | Monthly limit reached |
| 402 | [`over_max_credits`](/problems/over_max_credits) | Over your Acquestor-Max-Credits |
| 403 | [`beta_terms_not_accepted`](/problems/beta_terms_not_accepted) | Accept the Beta Terms first |
| 403 | [`beta_terms_unavailable`](/problems/beta_terms_unavailable) | The Beta Terms aren't published yet |
| 403 | [`cross_origin`](/problems/cross_origin) | Cross-site request refused |
| 403 | [`deal_access_off`](/problems/deal_access_off) | This client has no grant for this deal |
| 403 | [`insufficient_scope`](/problems/insufficient_scope) | The key lacks a scope |
| 404 | [`not_found`](/problems/not_found) | Not found |
| 409 | [`idempotency_in_progress`](/problems/idempotency_in_progress) | The same request is still running |
| 413 | [`file_too_large`](/problems/file_too_large) | File too large |
| 415 | [`unsupported_media_type`](/problems/unsupported_media_type) | Unsupported content type |
| 422 | [`idempotency_key_reused`](/problems/idempotency_key_reused) | Idempotency-Key used for a different call |
| 422 | [`invalid_input`](/problems/invalid_input) | An input is out of range or the wrong type |
| 422 | [`missing_input`](/problems/missing_input) | A required input is missing |
| 503 | [`not_configured`](/problems/not_configured) | Not available on this server |

On a 402: Nothing ran and nothing was charged. `code` is `insufficient_credits` (balance below the price), `over_max_credits` (price above `Acquestor-Max-Credits`) or `over_limit` (a grant's, key's or org member's monthly limit reached). The problem carries `price` and `balance`.

Codes any request can meet, such as `internal_error`, are on [problem types](/problems). Errors are [problem details](/concepts/errors).

## Rule-based red flags {#check-red-flags}

```http
POST /v1/diligence/red-flags
```

Checks a buyer's answers against Acquestor's deal-check rules: customer concentration, the lease against the loan term, licences held by the owner, the state's licence gates (a gap until state rules are loaded), SDE above taxable income, contractor classification and, when the buyer takes over the company, its past liabilities. Each check comes back flagged, open, done or not applicable with its rule; nothing missing is assumed.

**Price:** 50 credits · **MCP tool:** `check_red_flags` · **Key scope:** `tools:run`

**Parameters**

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `Acquestor-Max-Credits` | header | No | number (min 0) | The most this call may charge. If its price is higher, it returns 402 `over_max_credits` and runs nothing. |
| `Idempotency-Key` | header | No | string (at least 1 character, up to 255 characters) | 1 to 255 characters. Recommended on every write and on priced calls: a retry with the same key and body replays the first result and isn't charged again. |

**Body** (`application/json`)

| Field | Required | Type | Description |
| --- | --- | --- | --- |
| `deal_id` | No | string | Granted deal id; its figures fill what the request leaves out. Not saved over MCP. |
| `naics` | No | string | NAICS code, 2 to 6 digits, for the industry's licence-transfer gates. |
| `state` | No | two-letter US state (`TX`) (pattern `^[A-Z]{2}$`) | State the business operates in, for licence-transfer gates. |
| `top_customer_share` | No | number (min 0, max 1) | Share of revenue from the largest customer, as a decimal (0.25 for 25%). |
| `lease_end` | No | date | Date the premises lease ends, YYYY-MM-DD, compared with the loan term. |
| `renewal_options_years` | No | number | Years of renewal options the tenant holds after `lease_end`. |
| `loan_term_months` | No | integer | Loan term in months, compared with the lease. |
| `licences_held_by_owner` | No | boolean | True when a licence the business needs is held in the owner's own name. |
| `contractor_share` | No | number (min 0, max 1) | Share of the workforce paid as contractors, as a decimal, for the classification check. |
| `sde_over_tax_income_share` | No | number | How far SDE exceeds taxable income, as a decimal (0.3 for 30% above), as check_proof_of_cash returns it. |
| `structure` | No | one of `asset`, `stock`, `deemed_asset_338h10`, `deemed_asset_336e`, `f_reorganization` | Deal structure, for the checks that depend on it. |

**Response** `200`: Flags

Returned in [the envelope](/concepts/figures#the-envelope) (`computation`, `sources`, `gaps`, `warnings`, `disclaimer`, `card`, `actions`, `run_id`, `charge`, `truncated`); `data` holds:

| Field | Required | Type | Description |
| --- | --- | --- | --- |
| `data` | No | object, nullable | The result; null over REST and absent over MCP when the run produced only gaps. |
| `data.items` | Yes | array of objects | The checklist items, each with its status and the reason it is on the list. |
| `data.items[].id` | Yes | string | Stable id of the item within this checklist. |
| `data.items[].text` | Yes | string | What to do or have ready, in one line. |
| `data.items[].status` | Yes | one of `open`, `done`, `flagged`, `not_applicable` | open: still to do; done: the inputs show it is handled; flagged: the inputs show a problem; not_applicable: does not apply here. |
| `data.items[].stage` | No | one of `explore`, `value`, `market`, `offer`, `diligence`, `finance`, `close`, `transition` | The deal stage the item belongs to. |
| `data.items[].why` | No | string | Why the item matters for this deal, in one sentence. |
| `data.items[].source` | No | string | Id of the entry in the response's `sources` the item rests on. |
| `data.open_count` | No | integer | Number of items with status open. |
| `data.flagged_count` | No | integer | Number of items with status flagged. |

**Call**

```sh
curl -X POST "https://api.acquestor.com/v1/diligence/red-flags" \
  -H "Authorization: Bearer $ACQUESTOR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"top_customer_share":0.32,"lease_end":"2031-06-30","loan_term_months":120,"licences_held_by_owner":true,"contractor_share":0.4,"naics":"238220","state":"TX","structure":"asset"}'
```

**Example** (captured from the running code; lists in the answer cut to 3 items; `card` left out)

Request body:

```json
{
  "top_customer_share": 0.32,
  "lease_end": "2031-06-30",
  "loan_term_months": 120,
  "licences_held_by_owner": true,
  "contractor_share": 0.4,
  "naics": "238220",
  "state": "TX",
  "structure": "asset"
}
```

Response `200`:

```json
{
  "data": {
    "items": [
      {
        "id": "customer_concentration",
        "text": "The largest customer is 32% of revenue: check its contract, terms and history.",
        "status": "flagged",
        "stage": "diligence",
        "why": "One customer at 20% of revenue or more is a concentration risk that buyers and lenders ask about.",
        "source": "r1"
      },
      {
        "id": "lease_vs_loan_term",
        "text": "The lease runs to Jun 30, 2031, about 64 months before a 120-month loan from today would end: ask the landlord about an extension and the lender about its lease rule.",
        "status": "flagged",
        "stage": "finance",
        "why": "Lenders compare the lease, counting only renewal options the tenant controls, with the loan term; a lease that ends first can block or reshape the loan.",
        "source": "r1"
      },
      {
        "id": "licence_held_personally",
        "text": "A licence the business needs is in the owner's name: find out whether you need your own before closing.",
        "status": "flagged",
        "stage": "close",
        "why": "A licence held in the owner's own name usually stays with the owner; the buyer may need a licence of their own before closing.",
        "source": "r1"
      }
    ],
    "open_count": 3,
    "flagged_count": 3
  },
  "sources": [
    {
      "id": "u1",
      "basis": "client_supplied",
      "route": "served_directly",
      "as_of": "2026-10-05",
      "name": "Supplied by the calling client",
      "line": "Supplied by the calling AI client or API caller, Oct 5, 2026; used for this request only"
    },
    {
      "id": "r1",
      "source_id": "acquestor-deal-checks",
      "name": "Acquestor deal-check rules",
      "publisher": "Acquestor LLC",
      "dataset": "Acquestor deal-check rules 1.0",
      "basis": "rule",
      "route": "served_directly",
      "licence_status": "cleared",
      "as_of": "2026-10-01",
      "effective_from": "2026-10-01",
      "effective_to": null,
      "line": "Source: Acquestor deal-check rules 1.0, effective Oct 1, 2026"
    }
  ],
  "gaps": [
    {
      "field": "licence_gates",
      "reason": "state_not_modelled",
      "detail": "State licence-transfer rules by industry aren't loaded yet; the state's licensing board says which licences transfer."
    }
  ],
  "disclaimer": "informational",
  "computation": {
    "id": "c1",
    "method": "red_flags",
    "method_version": "1.0.0",
    "computed_at": "2026-10-05T15:02:11.000Z",
    "rule_sets": [
      "acquestor-deal-checks@1.0"
    ],
    "inputs": {
      "top_customer_share": {
        "value": 0.32,
        "unit": "share",
        "source": "u1"
      },
      "loan_term_months": {
        "value": 120,
        "unit": "months",
        "source": "u1"
      },
      "contractor_share": {
        "value": 0.4,
        "unit": "share",
        "source": "u1"
      }
    }
  },
  "charge": {
    "credits": 50,
    "price_class": "deep_tool",
    "balance_after": 122,
    "ledger_entry_id": "00000000-0000-4000-8000-000000000001"
  }
}
```

**Errors**

| Status | Code | Meaning |
| --- | --- | --- |
| 400 | [`invalid_header`](/problems/invalid_header) | A header has an invalid value |
| 400 | [`invalid_json`](/problems/invalid_json) | The body isn't valid JSON |
| 401 | [`unauthorized`](/problems/unauthorized) | Sign-in required |
| 402 | [`insufficient_credits`](/problems/insufficient_credits) | Not enough credits |
| 402 | [`over_limit`](/problems/over_limit) | Monthly limit reached |
| 402 | [`over_max_credits`](/problems/over_max_credits) | Over your Acquestor-Max-Credits |
| 403 | [`beta_terms_not_accepted`](/problems/beta_terms_not_accepted) | Accept the Beta Terms first |
| 403 | [`beta_terms_unavailable`](/problems/beta_terms_unavailable) | The Beta Terms aren't published yet |
| 403 | [`cross_origin`](/problems/cross_origin) | Cross-site request refused |
| 403 | [`deal_access_off`](/problems/deal_access_off) | This client has no grant for this deal |
| 403 | [`insufficient_scope`](/problems/insufficient_scope) | The key lacks a scope |
| 404 | [`not_found`](/problems/not_found) | Not found |
| 409 | [`idempotency_in_progress`](/problems/idempotency_in_progress) | The same request is still running |
| 413 | [`file_too_large`](/problems/file_too_large) | File too large |
| 415 | [`unsupported_media_type`](/problems/unsupported_media_type) | Unsupported content type |
| 422 | [`idempotency_key_reused`](/problems/idempotency_key_reused) | Idempotency-Key used for a different call |
| 422 | [`invalid_input`](/problems/invalid_input) | An input is out of range or the wrong type |
| 422 | [`missing_input`](/problems/missing_input) | A required input is missing |
| 503 | [`not_configured`](/problems/not_configured) | Not available on this server |

On a 402: Nothing ran and nothing was charged. `code` is `insufficient_credits` (balance below the price), `over_max_credits` (price above `Acquestor-Max-Credits`) or `over_limit` (a grant's, key's or org member's monthly limit reached). The problem carries `price` and `balance`.

Codes any request can meet, such as `internal_error`, are on [problem types](/problems). Errors are [problem details](/concepts/errors).

## Natural-hazard ratings, flood zone, disaster declarations and damaging storms for an address or county {#get-site-risk}

```http
GET /v1/diligence/site-risk
```

The address is placed in its census tract and county by the Census Geocoder. FEMA's National Risk Index gives the tract's risk score, rating and expected annual loss, overall and per hazard; FEMA's National Flood Hazard Layer gives the flood zone at the point; OpenFEMA lists federal disaster declarations in the county, and NOAA's Storm Events Database its damaging storms, over the last ten years. With a county and no address, the flood zone is left out with a gap and the tract figures are not given; a ZIP code alone is placed in the county holding most of its land and answered the same way. NOAA's counts are its county-coded events: heat, cold, winter weather, drought and coastal events, which NOAA files by forecast zone, are not counted.
Tract-level ratings, not an inspection, a flood determination or an insurance quote.

**Price:** Lookup: 1,000 free a month, then 0.5 credits · **MCP tool:** `get_site_risk` · **Key scope:** `tools:run`

**Parameters**

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `address` | query | No | string (up to 200 characters) | Street address with city and state, or ZIP; needed without `county`. |
| `county` | query | No | string | County name or 5-digit FIPS, with `state`; needed without `address`. |
| `state` | query | No | two-letter US state (`TX`) (pattern `^[A-Z]{2}$`) | US state as a 2-letter code. |

**Response** `200`: Site risk

Returned in [the envelope](/concepts/figures#the-envelope) (`computation`, `sources`, `gaps`, `warnings`, `disclaimer`, `card`, `actions`, `run_id`, `charge`, `truncated`); `data` holds:

| Field | Required | Type | Description |
| --- | --- | --- | --- |
| `data` | No | object, nullable | The result; null over REST and absent over MCP when the run produced only gaps. |
| `data.location` | Yes | object | Where the figures apply, as the Census Geocoder placed the address, or the county asked for. |
| `data.location.geocoded_address` | No | string, nullable | The address as the Census Geocoder placed it; null when a county was asked for. |
| `data.location.tract_fips` | No | string, nullable | The 11-digit census tract; null without an address. |
| `data.location.county_fips` | No | string | The 5-digit county FIPS code. |
| `data.location.county_name` | No | string | The county's name. |
| `data.location.state` | No | string | Two-letter state code. |
| `data.risk_score` | No | [Figure](/concepts/figures#figure) | FEMA National Risk Index score for the tract, 0 to 100, unit index: its rank against every US tract. |
| `data.risk_rating` | No | string, nullable | FEMA's rating for that score, in its words, such as Relatively Moderate. |
| `data.expected_annual_loss` | No | [Figure](/concepts/figures#figure) | FEMA's expected annual loss to buildings, people and agriculture in the tract from all its hazards, in whole US dollars. |
| `data.social_vulnerability_rating` | No | string, nullable | FEMA's social vulnerability rating for the tract, in its words. |
| `data.community_resilience_rating` | No | string, nullable | FEMA's community resilience rating for the tract, in its words. |
| `data.hazards` | No | array of objects | Each of FEMA's 18 hazards that applies to the tract, highest score first. |
| `data.hazards[].hazard` | No | string | The hazard, such as riverine flooding or wildfire. |
| `data.hazards[].score` | No | [Figure](/concepts/figures#figure) | FEMA's score for the hazard in the tract, 0 to 100, unit index. |
| `data.hazards[].rating` | No | string, nullable | FEMA's rating for that score, in its words. |
| `data.hazards[].expected_annual_loss` | No | [Figure](/concepts/figures#figure) | Expected annual loss from the hazard, in whole US dollars. |
| `data.flood_zone` | No | object | The FEMA flood zone at the address's point; absent, with a gap, for a county or where FEMA has no digital flood map. |
| `data.flood_zone.zone` | No | string | FEMA's zone code, such as AE, VE, X or D. |
| `data.flood_zone.special_flood_hazard_area` | No | boolean | True in a 1%-annual-chance zone (A or V zones), where federally backed lenders require flood insurance. |
| `data.flood_zone.source` | No | string | Id of the entry in the response's `sources` for the flood layer. |
| `data.disaster_declarations` | No | object | Federal disaster declarations that named the county or its state as a whole, over the last ten years. |
| `data.disaster_declarations.count` | No | [Figure](/concepts/figures#figure) | Declarations over those years. |
| `data.disaster_declarations.items` | No | array of objects | The declarations, newest first. |
| `data.disaster_declarations.items[].disaster_number` | No | integer | FEMA's disaster number. |
| `data.disaster_declarations.items[].declaration_type` | No | string | DR (major disaster), EM (emergency) or FM (fire management). |
| `data.disaster_declarations.items[].incident_type` | No | string | FEMA's incident type, such as Hurricane or Flood. |
| `data.disaster_declarations.items[].declaration_date` | No | date | The date it was declared. |
| `data.disaster_declarations.items[].title` | No | string | FEMA's title for it. |
| `data.storms` | No | object | NOAA Storm Events coded to the county over the last ten complete years; zone-coded events (heat, cold, winter weather, drought, coastal) are not counted. |
| `data.storms.from_year` | No | [Figure](/concepts/figures#figure) | First year counted, unit year. |
| `data.storms.to_year` | No | [Figure](/concepts/figures#figure) | Last year counted, unit year. |
| `data.storms.events` | No | [Figure](/concepts/figures#figure) | Storm events recorded. |
| `data.storms.damage_property` | No | [Figure](/concepts/figures#figure) | Property damage NOAA recorded for them, in whole US dollars as reported, not adjusted for inflation. |
| `data.storms.deaths` | No | [Figure](/concepts/figures#figure) | Deaths NOAA attributes to them. |
| `data.storms.by_type` | No | array of objects | The same counts by event type, most damage first. |
| `data.storms.by_type[].event_type` | No | string | NOAA's event type, such as Hail or Flash Flood. |
| `data.storms.by_type[].events` | No | [Figure](/concepts/figures#figure) | Events of that type. |
| `data.storms.by_type[].damage_property` | No | [Figure](/concepts/figures#figure) | Their property damage, in whole US dollars as reported. |

**Call**

```sh
curl "https://api.acquestor.com/v1/diligence/site-risk?county=Travis&state=TX" \
  -H "Authorization: Bearer $ACQUESTOR_API_KEY"
```

**Example** (captured from the running code; `card` left out)

Response `200`:

```json
{
  "data": {
    "location": {
      "geocoded_address": null,
      "tract_fips": null,
      "county_fips": "48453",
      "county_name": "Travis",
      "state": "TX"
    },
    "disaster_declarations": {
      "count": {
        "value": 3,
        "unit": "count",
        "source": "s1",
        "as_of": "2022-09-29"
      },
      "items": [
        {
          "disaster_number": 4586,
          "declaration_type": "DR",
          "incident_type": "Severe Storm",
          "declaration_date": "2021-02-19",
          "title": "SEVERE WINTER STORMS"
        },
        {
          "disaster_number": 3554,
          "declaration_type": "EM",
          "incident_type": "Severe Ice Storm",
          "declaration_date": "2021-02-14",
          "title": "SEVERE WINTER STORMS"
        },
        {
          "disaster_number": 4485,
          "declaration_type": "DR",
          "incident_type": "Biological",
          "declaration_date": "2020-03-25",
          "title": "COVID-19 PANDEMIC"
        }
      ]
    },
    "storms": {
      "from_year": {
        "value": 2015,
        "unit": "year",
        "source": "s2",
        "as_of": "2024-12-31"
      },
      "to_year": {
        "value": 2024,
        "unit": "year",
        "source": "s2",
        "as_of": "2024-12-31"
      },
      "events": {
        "value": 3,
        "unit": "count",
        "source": "s2",
        "as_of": "2024-12-31",
        "note": "NOAA's county-coded events (hail, tornadoes, thunderstorm wind, floods). NOAA files heat, cold, winter weather, drought and coastal events by forecast zone, and those aren't counted."
      },
      "damage_property": {
        "value": 1760000,
        "unit": "USD",
        "source": "s2",
        "as_of": "2024-12-31"
      },
      "deaths": {
        "value": 1,
        "unit": "count",
        "source": "s2",
        "as_of": "2024-12-31"
      },
      "by_type": [
        {
          "event_type": "Hail",
          "events": {
            "value": 2,
            "unit": "count",
            "source": "s2",
            "as_of": "2024-12-31"
          },
          "damage_property": {
            "value": 1510000,
            "unit": "USD",
            "source": "s2",
            "as_of": "2024-12-31"
          }
        },
        {
          "event_type": "Flash Flood",
          "events": {
            "value": 1,
            "unit": "count",
            "source": "s2",
            "as_of": "2024-12-31"
          },
          "damage_property": {
            "value": 250000,
            "unit": "USD",
            "source": "s2",
            "as_of": "2024-12-31"
          }
        }
      ]
    }
  },
  "sources": [
    {
      "id": "s1",
      "source_id": "openfema-declarations",
      "name": "OpenFEMA Disaster Declarations Summaries",
      "publisher": "Federal Emergency Management Agency",
      "dataset": "Disaster Declarations Summaries (OpenFEMA), Travis, TX, declared Oct 6, 2016 to Oct 5, 2026",
      "basis": "public_record",
      "route": "served_directly",
      "licence_status": "cleared",
      "as_of": "2022-09-29",
      "url": "https://www.fema.gov/openfema-data-page/disaster-declarations-summaries-v2",
      "line": "Source: FEMA, Disaster Declarations Summaries (OpenFEMA), Travis, TX, declared Oct 6, 2016 to Oct 5, 2026, as of Sep 29, 2022",
      "retrieved_at": "2026-10-05"
    },
    {
      "id": "s2",
      "source_id": "noaa-storm-events",
      "name": "Storm Events Database",
      "publisher": "National Oceanic and Atmospheric Administration, National Centers for Environmental Information",
      "dataset": "Storm Events Database, Travis, TX, 2015 to 2024, county-coded events",
      "basis": "public_record",
      "route": "served_directly",
      "licence_status": "cleared",
      "as_of": "2024-12-31",
      "url": "https://www.ncei.noaa.gov/stormevents/",
      "line": "Source: NOAA NCEI, Storm Events Database, Travis, TX, 2015 to 2024, county-coded events, as of Dec 31, 2024",
      "retrieved_at": "2026-10-05"
    }
  ],
  "gaps": [
    {
      "field": "risk_score",
      "reason": "no_data",
      "detail": "FEMA's National Risk Index rates census tracts; a county was asked for, not an address."
    },
    {
      "field": "flood_zone",
      "reason": "no_data",
      "detail": "A flood zone is read at a point; a county was asked for, not an address."
    }
  ],
  "disclaimer": "informational",
  "charge": {
    "credits": 0,
    "price_class": "lookup",
    "balance_after": 500,
    "ledger_entry_id": "00000000-0000-4000-8000-000000000001",
    "free_call": true
  }
}
```

**Errors**

| Status | Code | Meaning |
| --- | --- | --- |
| 400 | [`invalid_header`](/problems/invalid_header) | A header has an invalid value |
| 401 | [`unauthorized`](/problems/unauthorized) | Sign-in required |
| 402 | [`insufficient_credits`](/problems/insufficient_credits) | Not enough credits |
| 402 | [`over_limit`](/problems/over_limit) | Monthly limit reached |
| 402 | [`over_max_credits`](/problems/over_max_credits) | Over your Acquestor-Max-Credits |
| 403 | [`deal_access_off`](/problems/deal_access_off) | This client has no grant for this deal |
| 403 | [`insufficient_scope`](/problems/insufficient_scope) | The key lacks a scope |
| 404 | [`not_found`](/problems/not_found) | Not found |
| 422 | [`invalid_input`](/problems/invalid_input) | An input is out of range or the wrong type |
| 422 | [`missing_input`](/problems/missing_input) | A required input is missing |
| 503 | [`not_configured`](/problems/not_configured) | Not available on this server |

On a 402: Nothing ran and nothing was charged. `code` is `insufficient_credits` (balance below the price), `over_max_credits` (price above `Acquestor-Max-Credits`) or `over_limit` (a grant's, key's or org member's monthly limit reached). The problem carries `price` and `balance`.

Codes any request can meet, such as `internal_error`, are on [problem types](/problems). Errors are [problem details](/concepts/errors).

**Planned:**

| Operation | Does | Release |
| --- | --- | --- |
| `POST /diligence/screen` | Screen people and entities against OFAC, SAM.gov exclusions and the OIG exclusion list | P2 |
| `GET /diligence/public-records` | Federal recalls, labor cases, union contracts, workplace inspections and wage findings filed under a business name | P2 |
| `GET /diligence/web-history` | How long a business's website has existed, from Wayback Machine captures and certificate logs | P2 |


One section per endpoint, generated from `openapi/acquestor.yaml` (version 0.10.19) on 2026-11-12. Base URL, authentication and the definition to download are under [basics](/reference/rest#basics).

---

Source: https://docs.acquestor.com/reference/rest/diligence

Help: support@acquestor.com · [Report a security problem](https://docs.acquestor.com/security)

Information, not advice. Acquestor doesn't represent buyers or sellers and takes no fee on any deal.

Not affiliated with or endorsed by the U.S. Small Business Administration. Claude, ChatGPT and Grok are trademarks of their owners. Fonts: Source Serif 4, Public Sans and Source Code Pro, SIL Open Font License.
