# REST reference: Deals

One party’s private workspace for one transaction.

| Operation | Call | Price | MCP tool |
| --- | --- | --- | --- |
| [The caller's deals](#list-deals) | `GET /v1/deals` | Lookup: 1,000 free a month, then 0.5 credits | `list_deals` |
| [One deal with its saved runs and extracted summary figures](#get-deal) | `GET /v1/deals/{deal_id}` | Lookup: 1,000 free a month, then 0.5 credits | `list_deals` |
| [Rename a deal, move its stage, or change outside AI access](#update-deal) | `PATCH /v1/deals/{deal_id}` | Free |  |
| [Upload a document to a deal](#upload-document) | `POST /v1/deals/{deal_id}/documents` | 3 credits a page |  |
| [Document status and extracted figures](#get-document) | `GET /v1/deals/{deal_id}/documents/{document_id}` | Lookup: 1,000 free a month, then 0.5 credits |  |
| [Save a computed result to a deal](#save-run) | `POST /v1/deals/{deal_id}/runs` | Free | `save_to_deal` |
| [Type figures onto a deal (bank deposits, P&L revenue, tax-return receipts)](#add-deal-figures) | `POST /v1/deals/{deal_id}/figures` | Free |  |

## The caller's deals {#list-deals}

```http
GET /v1/deals
```

**Price:** Lookup: 1,000 free a month, then 0.5 credits · **MCP tool:** `list_deals` · **Key scope:** `deals:read`

**Parameters**

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `cursor` | query | No | string | `next_cursor` from the previous page. |
| `limit` | query | No | integer (min 1, max 100, default `25`) | Max results; defaults to 25. |

**Response** `200`: Deals

| Field | Required | Type | Description |
| --- | --- | --- | --- |
| `items` | Yes | array of objects | The caller's deals on this page, newest activity first, by name and stage, with business and listing names when the caller can read them. |
| `items[].id` | Yes | string | The deal's ID, passed as `deal_id` to deal calls and computed tools. |
| `items[].name` | No | string | The deal's name; Untitled deal when none was given. |
| `items[].perspective` | Yes | one of `buyer`, `seller`, `broker` | Whose side the deal is worked from, set when the deal was created. |
| `items[].stage` | Yes | one of `explore`, `value`, `market`, `offer`, `diligence`, `finance`, `close`, `transition` | Where the deal stands, as last set. |
| `items[].business_id` | No | string, nullable | The caller's business record the deal is about; null when none. |
| `items[].business_name` | No | string | The business's name, beside its ID; absent when it has none or the caller can't read it. |
| `items[].listing_id` | No | string, nullable | The listing the deal is about; null when none. |
| `items[].listing_headline` | No | string | The listing's headline, beside its ID: broker-written text. Absent when the caller can't read the listing. |
| `items[].outside_ai_access` | Yes | boolean | Whether outside AI clients may be granted this deal. Changed on acquestor.com only; turning it off revokes every grant. |
| `items[].created_at` | No | date-time | When the deal was created, as an ISO 8601 timestamp. |
| `items[].updated_at` | No | date-time | When the deal was last changed, as an ISO 8601 timestamp. |
| `next_cursor` | No | string, nullable | Pass as `cursor` for the next page; null on the last. |
| `has_more` | No | boolean | True when another page follows. |
| `note` | No | string | Present only when the first page is empty: why, and what to do. An outside client sees no deal until a deal's owner grants it one on acquestor.com, so an empty list there does not mean the owner has no deals. Prose that may be reworded. |
| `charge` | No | object | What this call charged in credits, and the balance after. |
| `charge.credits` | Yes | number | Credits this call charged; 0 when it was free or produced no result. |
| `charge.price_class` | Yes | one of `free`, `lookup`, `quick_tool`, `deep_tool`, `ai_job`, `chat_answer` | The price class the call was charged under. |
| `charge.balance_after` | No | number | Your credit balance after this call, also on a free call; absent when the run produced no result. |
| `charge.ledger_entry_id` | No | string | The ID of this charge's entry in your credit ledger. REST only: an MCP result leaves it out. |
| `charge.free_call` | No | boolean | True when a lookup was covered by the monthly free calls. |

**Call**

```sh
curl "https://api.acquestor.com/v1/deals" \
  -H "Authorization: Bearer $ACQUESTOR_API_KEY"
```

**Example** (captured from the running code)

Response `200`:

```json
{
  "items": [
    {
      "id": "00000000-0000-4000-8000-000000000001",
      "name": "Abilene HVAC",
      "perspective": "buyer",
      "stage": "diligence",
      "business_id": "00000000-0000-4000-8000-000000000002",
      "listing_id": "00000000-0000-4000-8000-000000000003",
      "outside_ai_access": true,
      "created_at": "2026-10-05T15:02:11.000Z",
      "updated_at": "2026-10-05T15:02:11.000Z",
      "business_name": "Abilene HVAC",
      "listing_headline": "HVAC service company with recurring maintenance contracts"
    }
  ],
  "next_cursor": null,
  "has_more": false,
  "charge": {
    "credits": 0,
    "price_class": "lookup",
    "balance_after": 62,
    "ledger_entry_id": "00000000-0000-4000-8000-000000000004",
    "free_call": true
  }
}
```

**Errors**

| Status | Code | Meaning |
| --- | --- | --- |
| 400 | [`invalid_cursor`](/problems/invalid_cursor) | That cursor isn't from this list |
| 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 | [`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 | [`insufficient_scope`](/problems/insufficient_scope) | The key lacks a scope |
| 422 | [`invalid_input`](/problems/invalid_input) | An input is out of range or the wrong type |

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).

## One deal with its saved runs and extracted summary figures {#get-deal}

```http
GET /v1/deals/{deal_id}
```

**Price:** Lookup: 1,000 free a month, then 0.5 credits · **MCP tool:** `list_deals` with `deal_id` · **Key scope:** `deals:read`

**Parameters**

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `deal_id` | path | Yes | string | Deal id from `list_deals`. |

**Response** `200`: Deal

| Field | Required | Type | Description |
| --- | --- | --- | --- |
| `id` | Yes | string | The deal's ID, passed as `deal_id` to deal calls and computed tools. |
| `name` | No | string | The deal's name; Untitled deal when none was given. |
| `perspective` | Yes | one of `buyer`, `seller`, `broker` | Whose side the deal is worked from, set when the deal was created. |
| `stage` | Yes | one of `explore`, `value`, `market`, `offer`, `diligence`, `finance`, `close`, `transition` | Where the deal stands, as last set. |
| `business_id` | No | string, nullable | The caller's business record the deal is about; null when none. |
| `business_name` | No | string | The business's name, beside its ID; absent when it has none or the caller can't read it. |
| `listing_id` | No | string, nullable | The listing the deal is about; null when none. |
| `listing_headline` | No | string | The listing's headline, beside its ID: broker-written text. Absent when the caller can't read the listing. |
| `outside_ai_access` | Yes | boolean | Whether outside AI clients may be granted this deal. Changed on acquestor.com only; turning it off revokes every grant. |
| `created_at` | No | date-time | When the deal was created, as an ISO 8601 timestamp. |
| `updated_at` | No | date-time | When the deal was last changed, as an ISO 8601 timestamp. |
| `runs` | No | array of objects | Saved runs of computed tools on this deal, newest first, up to 50. |
| `runs[].id` | Yes | string | The saved run's ID. |
| `runs[].deal_id` | Yes | string | The ID of the deal the run is saved to. |
| `runs[].operation_id` | Yes | string | The computed operation that ran, such as computeSbaCeiling. |
| `runs[].label` | No | string, nullable | The name given when the run was saved; null when none was given. GET /deals/{deal_id} doesn't keep it yet, so a saved run reads null there. |
| `runs[].request` | No | object | The inputs the operation ran with. In getDeal, returned to the owner on acquestor.com only. |
| `runs[].result` | No | object | The operation's full result as it was saved, with its figures, sources and charge. |
| `runs[].rule_sets` | No | array of strings | IDs of the rule sets the result applied, with their dates, such as `sba-sop-50-10-8.1@2026-09-25`. |
| `runs[].created_at` | Yes | date-time | When the run was saved, as an ISO 8601 timestamp. |
| `summary_figures` | No | object | The deal's figures read from its documents or typed in, keyed by label and year (such as `pl_revenue_2024`), each citing its document page or who typed it. |
| `sources` | No | array of [Source](/concepts/figures#source) | The sources the summary figures cite: document pages and typed entries. |
| `gaps` | No | array of [Gap](/concepts/figures#gaps) | Gaps in the deal detail; currently always empty. |
| `disclaimer` | No | `informational` | Always `informational`: the figures are information, not advice. |
| `charge` | No | object | What this call charged in credits, its price class and the balance after. |
| `charge.credits` | Yes | number | Credits this call charged; 0 when it was free or produced no result. |
| `charge.price_class` | Yes | one of `free`, `lookup`, `quick_tool`, `deep_tool`, `ai_job`, `chat_answer` | The price class the call was charged under. |
| `charge.balance_after` | No | number | Your credit balance after this call, also on a free call; absent when the run produced no result. |
| `charge.ledger_entry_id` | No | string | The ID of this charge's entry in your credit ledger. REST only: an MCP result leaves it out. |
| `charge.free_call` | No | boolean | True when a lookup was covered by the monthly free calls. |
| `documents` | No | array of objects | Names, types and status only; contents are never returned to MCP clients. |
| `documents[].id` | No | string | The document's ID, for GET /deals/{deal_id}/documents/{document_id}. |
| `documents[].type` | No | one of `bank_statement`, `tax_return`, `profit_and_loss`, `balance_sheet`, `ar_aging`, `payroll_register`, `lease`, `customer_list`, `teaser`, `cim`, `other` | The kind of document, as given at upload; `other` when none was given. |
| `documents[].status` | No | string | Where reading the document stands: `uploaded` (stored, not read), `extracting`, `extracted` or `failed`. |

**Call**

```sh
curl "https://api.acquestor.com/v1/deals/00000000-0000-4000-8000-000000000001" \
  -H "Authorization: Bearer $ACQUESTOR_API_KEY"
```

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

Response `200`:

```json
{
  "id": "00000000-0000-4000-8000-000000000001",
  "name": "Abilene HVAC",
  "perspective": "buyer",
  "stage": "diligence",
  "business_id": "00000000-0000-4000-8000-000000000002",
  "listing_id": "00000000-0000-4000-8000-000000000003",
  "outside_ai_access": true,
  "created_at": "2026-10-05T15:02:11.000Z",
  "updated_at": "2026-10-05T15:02:11.000Z",
  "business_name": "Abilene HVAC",
  "listing_headline": "HVAC service company with recurring maintenance contracts",
  "runs": [
    {
      "id": "00000000-0000-4000-8000-000000000004",
      "deal_id": "00000000-0000-4000-8000-000000000001",
      "operation_id": "computeSbaCeiling",
      "label": null,
      "rule_sets": [
        "sba-sop-50-10-8.1@2026-09-25",
        "sba-rate-caps@2026-03-01"
      ],
      "created_at": "2026-10-05T15:02:11.000Z",
      "result": {
        "data": {
          "cash_flow_for_debt": {
            "value": 295000,
            "unit": "USD",
            "source": "c1"
          },
          "interest_rate": {
            "value": 0.1,
            "unit": "rate",
            "source": "c1"
          },
          "annual_debt_service": {
            "value": 236000,
            "unit": "USD",
            "source": "c1"
          },
          "max_loan": {
            "value": 1488200,
            "unit": "USD",
            "source": "c1"
          },
          "max_price": {
            "value": 1653555,
            "unit": "USD",
            "source": "c1"
          },
          "price_to_sde": {
            "value": 4.13,
            "unit": "x",
            "source": "c1"
          },
          "grid": [
            {
              "manager_salary": {
                "value": 60000,
                "unit": "USD",
                "source": "c1"
              },
              "interest_rate": {
                "value": 0.1,
                "unit": "rate",
                "source": "c1"
              },
              "coverage": {
                "value": 1.25,
                "unit": "x",
                "source": "c1"
              },
              "price_to_sde": {
                "value": 4.41,
                "unit": "x",
                "source": "c1"
              },
              "max_price": {
                "value": 1765660,
                "unit": "USD",
                "source": "c1"
              }
            },
            {
              "manager_salary": {
                "value": 60000,
                "unit": "USD",
                "source": "c1"
              },
              "interest_rate": {
                "value": 0.0925,
                "unit": "rate",
                "source": "c1"
              },
              "coverage": {
                "value": 1.25,
                "unit": "x",
                "source": "c1"
              },
              "price_to_sde": {
                "value": 4.56,
                "unit": "x",
                "source": "c1"
              },
              "max_price": {
                "value": 1822451,
                "unit": "USD",
                "source": "c1"
              }
            },
            {
              "manager_salary": {
                "value": 60000,
                "unit": "USD",
                "source": "c1"
              },
              "interest_rate": {
                "value": 0.085,
                "unit": "rate",
                "source": "c1"
              },
              "coverage": {
                "value": 1.25,
                "unit": "x",
                "source": "c1"
              },
              "price_to_sde": {
                "value": 4.7,
                "unit": "x",
                "source": "c1"
              },
              "max_price": {
                "value": 1881938,
                "unit": "USD",
                "source": "c1"
              }
            }
          ],
          "flags": {
            "qoe_required": false,
            "internal_valuation_path": false,
            "loan_capped_at_program_max": false
          },
          "gap_to_asking": {
            "value": -228555,
            "unit": "USD",
            "source": "c1"
          },
          "bridge_needed": {
            "value": 0,
            "unit": "USD",
            "source": "c1"
          }
        },
        "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": "sba-sop-50-10-8.1",
            "name": "SOP 50 10 8.1, Lender and Development Company Loan Programs",
            "publisher": "U.S. Small Business Administration",
            "dataset": "SOP 50 10 8.1",
            "basis": "rule",
            "route": "served_directly",
            "licence_status": "cleared",
            "as_of": "2026-10-01",
            "effective_from": "2026-10-01",
            "effective_to": null,
            "url": "https://legacy.sba.gov/document/information-notice-5000-882227-issuance-technical-updates-sop-50-10-81",
            "line": "Source: SBA SOP 50 10 8.1, effective Oct 1, 2026"
          },
          {
            "id": "s1",
            "source_id": "frb-h15-prime",
            "name": "H.15 Selected Interest Rates: bank prime loan rate",
            "publisher": "Board of Governors of the Federal Reserve System",
            "dataset": "H.15 bank prime loan rate",
            "basis": "public_record",
            "route": "served_directly",
            "licence_status": "cleared",
            "as_of": "2026-10-02",
            "url": "https://www.federalreserve.gov/releases/h15/",
            "line": "Source: Federal Reserve, H.15 bank prime loan rate, as of Oct 2, 2026",
            "retrieved_at": "2026-10-05"
          },
          {
            "id": "r2",
            "source_id": "sba-notice-5000-875051",
            "name": "Procedural Notice 5000-875051, 7(a) maximum interest rates",
            "publisher": "U.S. Small Business Administration",
            "dataset": "Procedural Notice 5000-875051",
            "basis": "rule",
            "route": "served_directly",
            "licence_status": "cleared",
            "as_of": "2026-03-01",
            "effective_from": "2026-03-01",
            "effective_to": null,
            "url": "https://www.sba.gov/document/procedural-notice-5000-875051-7a-alternative-base-rate-options",
            "line": "Source: SBA Procedural Notice 5000-875051, effective Mar 1, 2026"
          }
        ],
        "gaps": [],
        "disclaimer": "informational",
        "computation": {
          "id": "c1",
          "method": "sba_ceiling",
          "method_version": "1.0.0",
          "computed_at": "2026-10-05T15:02:11.000Z",
          "rule_sets": [
            "sba-sop-50-10-8.1@2026-09-25",
            "sba-rate-caps@2026-03-01"
          ],
          "inputs": {
            "sde": {
              "value": 400000,
              "unit": "USD",
              "source": "u1"
            },
            "manager_salary": {
              "value": 80000,
              "unit": "USD",
              "source": "u1"
            },
            "capex_reserve": {
              "value": 25000,
              "unit": "USD",
              "source": "u1"
            },
            "prime_rate": {
              "value": 0.07,
              "unit": "rate",
              "source": "s1",
              "as_of": "2026-10-02"
            },
            "coverage": {
              "value": 1.25,
              "unit": "x",
              "source": "r1"
            },
            "term_months": {
              "value": 120,
              "unit": "months",
              "source": "r1"
            },
            "equity_injection_share": {
              "value": 0.1,
              "unit": "share",
              "source": "r1"
            },
            "asking_price": {
              "value": 1425000,
              "unit": "USD",
              "source": "u1"
            },
            "max_spread": {
              "value": 0.03,
              "unit": "rate",
              "source": "r2"
            }
          }
        },
        "card": {
          "card_type": "sba_ceiling",
          "card_version": "1.0.0",
          "title": "SBA price ceiling",
          "subtitle": "At 10.00% and 1.25x coverage, 10 years",
          "headline": [
            "max_price",
            "max_loan",
            "price_to_sde"
          ],
          "body": {
            "headline_items": [
              {
                "key": "max_price",
                "label": "SBA price ceiling",
                "display": "$1,654,000",
                "figure": {
                  "value": 1653555,
                  "unit": "USD",
                  "source": "c1"
                }
              },
              {
                "key": "max_loan",
                "label": "Highest SBA loan",
                "display": "$1,488,000",
                "figure": {
                  "value": 1488200,
                  "unit": "USD",
                  "source": "c1"
                }
              },
              {
                "key": "price_to_sde",
                "label": "Price to SDE",
                "display": "4.13x",
                "figure": {
                  "value": 4.13,
                  "unit": "x",
                  "source": "c1"
                }
              }
            ],
            "meaning": "The highest price an SBA 7(a)-financed buyer can pay at 1.25x coverage with 10% down.",
            "inputs": [
              {
                "label": "SDE",
                "display": "$400,000",
                "provenance": "supplied by the caller",
                "source": "u1"
              },
              {
                "label": "manager salary",
                "display": "$80,000",
                "provenance": "supplied by the caller",
                "source": "u1"
              },
              {
                "label": "capex reserve",
                "display": "$25,000",
                "provenance": "supplied by the caller",
                "source": "u1"
              },
              {
                "label": "rate",
                "display": "10.00%, the SBA cap: prime 7.00% (Federal Reserve, H.15 bank prime loan rate, as of Oct 2, 2026) plus 3.00%",
                "provenance": "SBA maximum rate under Procedural Notice 5000-875051, effective Mar 1, 2026",
                "source": "r2"
              },
              {
                "label": "coverage",
                "display": "1.25x",
                "provenance": "SBA SOP 50 10 8.1, effective Oct 1, 2026",
                "source": "r1"
              },
              {
                "label": "term",
                "display": "10-year",
                "provenance": "SBA SOP 50 10 8.1, effective Oct 1, 2026",
                "source": "r1"
              },
              {
                "label": "equity",
                "display": "10%",
                "provenance": "SBA SOP 50 10 8.1, effective Oct 1, 2026",
                "source": "r1"
              },
              {
                "label": "asking price",
                "display": "$1,425,000",
                "provenance": "supplied by the caller",
                "source": "u1"
              }
            ],
            "moves": "each $20,000 of salary moves the ceiling about $112,000.",
            "not": "**Not a valuation.** A price above this needs a seller note or more buyer cash.",
            "lines": [
              "Asking is $229,000 below the ceiling."
            ],
            "grid_columns": [
              "10.00%",
              "9.25%",
              "8.50%"
            ],
            "grid_rows": [
              "$60,000",
              "$80,000",
              "$100,000"
            ]
          },
          "as_of": "2026-10-02",
          "source_refs": [
            "u1",
            "r1",
            "s1",
            "r2",
            "c1"
          ],
          "actions": [
            {
              "label": "Stress test this",
              "tool": "stress_test_deal",
              "arguments": {
                "sde": 400000,
                "manager_salary": 80000,
                "capex_reserve": 25000,
                "loan_amount": 1488200,
                "interest_rate": 0.1,
                "term_months": 120
              }
            },
            {
              "label": "Find lenders",
              "tool": "find_sba_lenders",
              "arguments": {}
            }
          ],
          "disclaimers": [
            "informational"
          ],
          "deal_id": "00000000-0000-4000-8000-000000000001"
        },
        "run_id": "00000000-0000-4000-8000-000000000004",
        "charge": {
          "credits": 5,
          "price_class": "quick_tool"
        }
      }
    },
    {
      "id": "00000000-0000-4000-8000-000000000005",
      "deal_id": "00000000-0000-4000-8000-000000000001",
      "operation_id": "computeProofOfCash",
      "label": null,
      "rule_sets": [],
      "created_at": "2026-10-05T15:02:11.000Z",
      "result": {
        "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"
            }
          }
        },
        "card": {
          "card_type": "proof_of_cash",
          "card_version": "1.0.0",
          "title": "Proof of cash",
          "subtitle": "Bank deposits against P&L revenue and tax-return receipts, 2025",
          "headline": [
            "net_deposits",
            "pl_revenue",
            "variance_to_return"
          ],
          "body": {
            "headline_items": [
              {
                "key": "net_deposits",
                "label": "Net deposits, 2025",
                "display": "$2,100,000",
                "figure": {
                  "value": 2100000,
                  "unit": "USD",
                  "source": "c1"
                }
              },
              {
                "key": "pl_revenue",
                "label": "P&L revenue, 2025",
                "display": "$2,100,000",
                "figure": {
                  "value": 2100000,
                  "unit": "USD",
                  "source": "c1"
                }
              },
              {
                "key": "variance_to_return",
                "label": "Biggest variance, 2025 (to tax return)",
                "display": "1.0%",
                "figure": {
                  "value": 0.009615,
                  "unit": "share",
                  "source": "c1"
                }
              }
            ],
            "meaning": "Deposits matched P&L revenue in 2025.",
            "inputs": [
              {
                "label": "variance threshold",
                "display": "5%",
                "provenance": "supplied by the caller",
                "source": "u1"
              }
            ],
            "table": {
              "columns": [
                "Period",
                "Deposits",
                "Excluded",
                "Net deposits",
                "P&L revenue",
                "Return receipts",
                "Variance to P&L",
                "Variance to return",
                "Flagged"
              ],
              "rows": [
                [
                  "2025",
                  "$2,100,000",
                  "$0",
                  "$2,100,000",
                  "$2,100,000",
                  "$2,080,000",
                  "0.0%",
                  "1.0%",
                  "No"
                ]
              ],
              "cell_sources": [
                [
                  null,
                  "c1",
                  "c1",
                  "c1",
                  "c1",
                  "c1",
                  "c1",
                  "c1",
                  null
                ]
              ]
            },
            "lines": [],
            "moves": "each confirmed exclusion lowers net deposits dollar for dollar; months missing from the bank statements lower deposits.",
            "not": "A reconciliation of the documents you uploaded, not an audit or a quality of earnings report."
          },
          "as_of": "2026-10-05",
          "source_refs": [
            "u1",
            "c1"
          ],
          "actions": [
            {
              "label": "Check red flags",
              "tool": "check_red_flags",
              "arguments": {
                "deal_id": "00000000-0000-4000-8000-000000000001"
              }
            }
          ],
          "disclaimers": [
            "informational"
          ],
          "deal_id": "00000000-0000-4000-8000-000000000001"
        },
        "run_id": "00000000-0000-4000-8000-000000000005",
        "charge": {
          "credits": 50,
          "price_class": "deep_tool"
        }
      }
    }
  ],
  "summary_figures": {
    "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": "u2",
      "as_of": "2026-10-05"
    },
    "return_gross_receipts_2025": {
      "value": 2080000,
      "unit": "USD",
      "source": "u1",
      "as_of": "2026-10-05"
    }
  },
  "sources": [
    {
      "id": "u1",
      "basis": "user_entered",
      "route": "served_directly",
      "as_of": "2026-10-05",
      "name": "You entered this",
      "line": "You entered this, Oct 5, 2026"
    },
    {
      "id": "u2",
      "basis": "user_upload",
      "route": "served_directly",
      "as_of": "2026-10-05",
      "document_id": "00000000-0000-4000-8000-000000000006",
      "page": 1,
      "name": "abilene-hvac-pl-2025.csv",
      "line": "From abilene-hvac-pl-2025.csv, page 1, uploaded Oct 5, 2026"
    }
  ],
  "documents": [
    {
      "id": "00000000-0000-4000-8000-000000000006",
      "type": "profit_and_loss",
      "status": "extracted"
    }
  ],
  "gaps": [],
  "disclaimer": "informational",
  "charge": {
    "credits": 0,
    "price_class": "lookup",
    "balance_after": 62,
    "ledger_entry_id": "00000000-0000-4000-8000-000000000007",
    "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 | [`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 | [`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 |
| 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).

## Rename a deal, move its stage, or change outside AI access {#update-deal}

```http
PATCH /v1/deals/{deal_id}
```

Changing `outside_ai_access` requires a signed-in session (interface); API keys and OAuth clients cannot grant themselves deal access.

**Price:** Free · **Key scope:** `deals:write`

**Parameters**

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `deal_id` | path | Yes | string | Deal id from `list_deals`. |
| `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/merge-patch+json`)

| Field | Required | Type | Description |
| --- | --- | --- | --- |
| `name` | No | string (up to 200 characters) | A name for the deal, up to 200 characters; SSNs and account numbers are removed. Defaults to Untitled deal. |
| `perspective` | No | one of `buyer`, `seller`, `broker` | Whose side the deal is worked from, set at creation; defaults to broker or seller by the account's role, otherwise buyer. |
| `stage` | No | one of `explore`, `value`, `market`, `offer`, `diligence`, `finance`, `close`, `transition` | Where the deal stands; defaults to `explore`. |
| `business_id` | No | string | One of the caller's own business records, from POST /businesses, that the deal is about. |
| `listing_id` | No | string | The listing the deal is about, from search_listings or GET /listings. |
| `outside_ai_access` | No | boolean | Interface sessions only. Default false. |

**Response** `200`: Updated

| Field | Required | Type | Description |
| --- | --- | --- | --- |
| `id` | Yes | string | The deal's ID, passed as `deal_id` to deal calls and computed tools. |
| `name` | No | string | The deal's name; Untitled deal when none was given. |
| `perspective` | Yes | one of `buyer`, `seller`, `broker` | Whose side the deal is worked from, set when the deal was created. |
| `stage` | Yes | one of `explore`, `value`, `market`, `offer`, `diligence`, `finance`, `close`, `transition` | Where the deal stands, as last set. |
| `business_id` | No | string, nullable | The caller's business record the deal is about; null when none. |
| `business_name` | No | string | The business's name, beside its ID; absent when it has none or the caller can't read it. |
| `listing_id` | No | string, nullable | The listing the deal is about; null when none. |
| `listing_headline` | No | string | The listing's headline, beside its ID: broker-written text. Absent when the caller can't read the listing. |
| `outside_ai_access` | Yes | boolean | Whether outside AI clients may be granted this deal. Changed on acquestor.com only; turning it off revokes every grant. |
| `created_at` | No | date-time | When the deal was created, as an ISO 8601 timestamp. |
| `updated_at` | No | date-time | When the deal was last changed, as an ISO 8601 timestamp. |

**Call**

```sh
curl -X PATCH "https://api.acquestor.com/v1/deals/00000000-0000-4000-8000-000000000001" \
  -H "Authorization: Bearer $ACQUESTOR_API_KEY" \
  -H "Content-Type: application/merge-patch+json" \
  -d '{"stage":"diligence"}'
```

**Example** (captured from the running code)

Request body:

```json
{
  "stage": "diligence"
}
```

Response `200`:

```json
{
  "id": "00000000-0000-4000-8000-000000000001",
  "name": "Abilene HVAC",
  "perspective": "buyer",
  "stage": "diligence",
  "business_id": "00000000-0000-4000-8000-000000000002",
  "listing_id": "00000000-0000-4000-8000-000000000003",
  "outside_ai_access": true,
  "created_at": "2026-10-05T15:02:11.000Z",
  "updated_at": "2026-10-05T15:02:11.000Z"
}
```

**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 |
| 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 |
| 403 | [`interface_only`](/problems/interface_only) | Only acquestor.com can do this |
| 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 |

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

## Upload a document to a deal {#upload-document}

```http
POST /v1/deals/{deal_id}/documents
```

Stored under the deal's own key. Bank statements, P&Ls and tax returns are read for figures at 3 credits a page, quoted from the page count and checked against the balance before reading; a failed read is not charged. Without the model connected, the document is stored and the user types the figures. Files that look like a marketplace printout are refused.

**Price:** 3 credits a page · **Key scope:** `deals:write`

**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. |
| `deal_id` | path | Yes | string | Deal id from `list_deals`. |
| `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** (`multipart/form-data`)

| Field | Required | Type | Description |
| --- | --- | --- | --- |
| `type` | No | one of `bank_statement`, `tax_return`, `profit_and_loss`, `balance_sheet`, `ar_aging`, `payroll_register`, `lease`, `customer_list`, `teaser`, `cim`, `other` | What the document is. Bank statements, P&Ls and tax returns are read for figures; other types are stored only. Defaults to `other` when left out. |
| `file` | Yes | file | The document file, up to 25 MB. |

**Response** `201`: Stored, and read when the type supports it

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 | The stored document: its status, page count, a message on what was read, and the figures read from it. |
| `data.id` | Yes | string | The document's ID; use it with getDocument or as `document_id` on a typed figure. |
| `data.deal_id` | Yes | string | The ID of the deal the document was uploaded to. |
| `data.type` | Yes | one of `bank_statement`, `tax_return`, `profit_and_loss`, `balance_sheet`, `ar_aging`, `payroll_register`, `lease`, `customer_list`, `teaser`, `cim`, `other` | The kind of document, as given on upload; bank statements, P&Ls and tax returns are read for figures. |
| `data.filename` | No | string, nullable | The file name as uploaded. Returned on acquestor.com only; null for API callers. |
| `data.pages` | No | integer | Number of pages counted on upload; reading is priced at 3 credits a page. |
| `data.status` | Yes | one of `uploaded`, `extracting`, `extracted`, `failed` | uploaded when stored and not read, extracting while figures are read, extracted when the read finished, failed when it didn't. |
| `data.extracted_figures` | No | array of objects | Figures read from the document. uploadDocument returns them in `figures` instead and leaves this out. |
| `data.extracted_figures[].label` | No | string | What the figure is, such as bank_deposits or pl_revenue. |
| `data.extracted_figures[].period` | No | string | The period the figure covers: YYYY for a year, YYYY-MM for a month. |
| `data.extracted_figures[].figure` | No | [Figure](/concepts/figures#figure) | The amount in dollars, sourced to this document and page. |
| `data.extracted_figures[].page` | No | integer | The page the figure was read from, counting from 1. |
| `data.redactions_applied` | No | boolean | True when account numbers or other identifiers were removed from what was read. uploadDocument doesn't return it. |
| `data.message` | No | string, nullable | A note on the read: figures left out, nothing found, or why it failed, and whether anything was charged. Null when there is nothing to add. |
| `data.figures` | No | array of objects | Figures read from this document and saved to the deal, each with its document and page. Empty when nothing was read. |
| `data.figures[].id` | No | string, nullable | The saved figure's ID. |
| `data.figures[].label` | Yes | one of `bank_deposits`, `pl_revenue`, `return_gross_receipts`, `return_taxable_income`, `sde` | What the figure is: monthly bank deposits, P&L revenue, tax-return gross receipts or taxable income, or SDE. |
| `data.figures[].period` | Yes | string (pattern `^[0-9]{4}(-[0-9]{2})?$`) | The period the figure covers: YYYY for a year, YYYY-MM for a month. |
| `data.figures[].document_id` | No | string, nullable | The document the figure came from; null when it was typed without one. |
| `data.figures[].page` | No | integer, nullable | The page in that document; null when none was given. |
| `data.figures[].value` | Yes | [Figure](/concepts/figures#figure) | The amount in dollars, sourced to its document and page or to the person who typed it, dated the day it was recorded. |

**Call**

```sh
curl -X POST "https://api.acquestor.com/v1/deals/00000000-0000-4000-8000-000000000001/documents" \
  -H "Authorization: Bearer $ACQUESTOR_API_KEY" \
  -F "file=@<file>"
```

**Example** (captured from the running code)

Request body:

```json
{
  "type": "profit_and_loss",
  "filename": "abilene-hvac-pl-2025.csv",
  "content_base64": "<the file, base64-encoded>",
  "mime": "text/csv"
}
```

Response `201`:

```json
{
  "data": {
    "id": "00000000-0000-4000-8000-000000000002",
    "deal_id": "00000000-0000-4000-8000-000000000001",
    "type": "profit_and_loss",
    "filename": null,
    "pages": 1,
    "status": "extracted",
    "message": null,
    "figures": [
      {
        "id": "00000000-0000-4000-8000-000000000003",
        "label": "pl_revenue",
        "period": "2025",
        "document_id": "00000000-0000-4000-8000-000000000002",
        "page": 1,
        "value": {
          "value": 2100000,
          "unit": "USD",
          "source": "u1",
          "as_of": "2026-10-05"
        }
      }
    ]
  },
  "sources": [
    {
      "id": "u1",
      "basis": "user_upload",
      "route": "served_directly",
      "as_of": "2026-10-05",
      "name": "a document on this deal",
      "document_id": "00000000-0000-4000-8000-000000000002",
      "page": 1,
      "line": "From a document on this deal, page 1, uploaded Oct 5, 2026"
    }
  ],
  "gaps": [],
  "disclaimer": "informational",
  "charge": {
    "credits": 3,
    "price_class": "ai_job",
    "balance_after": 472,
    "ledger_entry_id": "00000000-0000-4000-8000-000000000004"
  }
}
```

**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 | [`marketplace_printout`](/problems/marketplace_printout) | This looks like a marketplace printout |
| 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).

## Document status and extracted figures {#get-document}

```http
GET /v1/deals/{deal_id}/documents/{document_id}
```

**Price:** Lookup: 1,000 free a month, then 0.5 credits · **Key scope:** `deals:read`

**Parameters**

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `deal_id` | path | Yes | string | Deal id from `list_deals`. |
| `document_id` | path | Yes | string | The document's ID, from POST /deals/{deal_id}/documents or the deal's `documents` list in get_deal. |

**Response** `200`: Document

| Field | Required | Type | Description |
| --- | --- | --- | --- |
| `id` | Yes | string | The document's ID. |
| `deal_id` | Yes | string | The deal the document belongs to. |
| `type` | Yes | one of `bank_statement`, `tax_return`, `profit_and_loss`, `balance_sheet`, `ar_aging`, `payroll_register`, `lease`, `customer_list`, `teaser`, `cim`, `other` | The kind of document, as given at upload; `other` when none was given. |
| `status` | Yes | one of `uploaded`, `extracting`, `extracted`, `failed` | Where reading the document stands: `uploaded` (stored, not read), `extracting` while figures are read, `extracted` when done, or `failed`. |
| `filename` | No | string | Signed in on acquestor.com only. |
| `pages` | No | integer, nullable | Signed in on acquestor.com only; null until the document is read. |
| `uploaded_at` | No | date-time | Signed in on acquestor.com only. |
| `summary_figures` | Yes | object | The deal's summary figures, each a Figure whose source names the document and page it was read from, or the person who typed it. |
| `sources` | Yes | array of [Source](/concepts/figures#source) | The sources the summary figures cite: document pages and typed entries. |
| `gaps` | Yes | array of [Gap](/concepts/figures#gaps) | Gaps in the result; currently always empty. |
| `disclaimer` | Yes | `informational` | Always `informational`: the figures are information, not advice. |
| `charge` | No | object | What this call charged in credits, its price class and the balance after. |
| `charge.credits` | Yes | number | Credits this call charged; 0 when it was free or produced no result. |
| `charge.price_class` | Yes | one of `free`, `lookup`, `quick_tool`, `deep_tool`, `ai_job`, `chat_answer` | The price class the call was charged under. |
| `charge.balance_after` | No | number | Your credit balance after this call, also on a free call; absent when the run produced no result. |
| `charge.ledger_entry_id` | No | string | The ID of this charge's entry in your credit ledger. REST only: an MCP result leaves it out. |
| `charge.free_call` | No | boolean | True when a lookup was covered by the monthly free calls. |

**Call**

```sh
curl "https://api.acquestor.com/v1/deals/00000000-0000-4000-8000-000000000001/documents/00000000-0000-4000-8000-000000000002" \
  -H "Authorization: Bearer $ACQUESTOR_API_KEY"
```

**Example** (captured from the running code)

Response `200`:

```json
{
  "id": "00000000-0000-4000-8000-000000000002",
  "type": "profit_and_loss",
  "status": "extracted",
  "deal_id": "00000000-0000-4000-8000-000000000001",
  "summary_figures": {
    "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": "u2",
      "as_of": "2026-10-05"
    },
    "return_gross_receipts_2025": {
      "value": 2080000,
      "unit": "USD",
      "source": "u1",
      "as_of": "2026-10-05"
    }
  },
  "sources": [
    {
      "id": "u1",
      "basis": "user_entered",
      "route": "served_directly",
      "as_of": "2026-10-05",
      "name": "You entered this",
      "line": "You entered this, Oct 5, 2026"
    },
    {
      "id": "u2",
      "basis": "user_upload",
      "route": "served_directly",
      "as_of": "2026-10-05",
      "document_id": "00000000-0000-4000-8000-000000000002",
      "page": 1,
      "name": "abilene-hvac-pl-2025.csv",
      "line": "From abilene-hvac-pl-2025.csv, page 1, uploaded Oct 5, 2026"
    }
  ],
  "gaps": [],
  "disclaimer": "informational",
  "charge": {
    "credits": 0,
    "price_class": "lookup",
    "balance_after": 472,
    "ledger_entry_id": "00000000-0000-4000-8000-000000000003",
    "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 | [`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 | [`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 |
| 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).

## Save a computed result to a deal {#save-run}

```http
POST /v1/deals/{deal_id}/runs
```

Runs a computed tool from its inputs against the granted deal and saves the result there. Charged at that tool's price; saving is free. Computed tools called through the MCP server read from a deal but don't save, so this is how an AI client keeps a result.

**Price:** Free · **MCP tool:** `save_to_deal` · **Key scope:** `deals:write`

**Parameters**

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `deal_id` | path | Yes | string | Deal id from `list_deals`. |
| `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 |
| --- | --- | --- | --- |
| `operation_id` | Yes | string | Computed operation to run. |
| `request` | Yes | object | Its inputs, with objects such as `seller_note` nested. |
| `label` | No | string | Name for the saved run. |

**Response** `201`: Saved

| Field | Required | Type | Description |
| --- | --- | --- | --- |
| `id` | Yes | string | The saved run's ID. |
| `deal_id` | Yes | string | The ID of the deal the run is saved to. |
| `operation_id` | Yes | string | The computed operation that ran, such as computeSbaCeiling. |
| `label` | No | string, nullable | The name given when the run was saved; null when none was given. GET /deals/{deal_id} doesn't keep it yet, so a saved run reads null there. |
| `request` | No | object | The inputs the operation ran with. In getDeal, returned to the owner on acquestor.com only. |
| `result` | No | object | The operation's full result as it was saved, with its figures, sources and charge. |
| `rule_sets` | No | array of strings | IDs of the rule sets the result applied, with their dates, such as `sba-sop-50-10-8.1@2026-09-25`. |
| `created_at` | Yes | date-time | When the run was saved, as an ISO 8601 timestamp. |

**Call**

```sh
curl -X POST "https://api.acquestor.com/v1/deals/00000000-0000-4000-8000-000000000001/runs" \
  -H "Authorization: Bearer $ACQUESTOR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"operation_id":"computeSbaCeiling","label":"Ceiling at $400K SDE","request":{"sde":400000,"manager_salary":80000,"capex_reserve":25000,"asking_price":1425000,"as_of":"2026-10-05"}}'
```

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

Request body:

```json
{
  "operation_id": "computeSbaCeiling",
  "label": "Ceiling at $400K SDE",
  "request": {
    "sde": 400000,
    "manager_salary": 80000,
    "capex_reserve": 25000,
    "asking_price": 1425000,
    "as_of": "2026-10-05"
  }
}
```

Response `201`:

```json
{
  "id": "00000000-0000-4000-8000-000000000002",
  "deal_id": "00000000-0000-4000-8000-000000000001",
  "operation_id": "computeSbaCeiling",
  "label": "Ceiling at $400K SDE",
  "result": {
    "data": {
      "cash_flow_for_debt": {
        "value": 295000,
        "unit": "USD",
        "source": "c1"
      },
      "interest_rate": {
        "value": 0.1,
        "unit": "rate",
        "source": "c1"
      },
      "annual_debt_service": {
        "value": 236000,
        "unit": "USD",
        "source": "c1"
      },
      "max_loan": {
        "value": 1488200,
        "unit": "USD",
        "source": "c1"
      },
      "max_price": {
        "value": 1653555,
        "unit": "USD",
        "source": "c1"
      },
      "price_to_sde": {
        "value": 4.13,
        "unit": "x",
        "source": "c1"
      },
      "grid": [
        {
          "manager_salary": {
            "value": 60000,
            "unit": "USD",
            "source": "c1"
          },
          "interest_rate": {
            "value": 0.1,
            "unit": "rate",
            "source": "c1"
          },
          "coverage": {
            "value": 1.25,
            "unit": "x",
            "source": "c1"
          },
          "price_to_sde": {
            "value": 4.41,
            "unit": "x",
            "source": "c1"
          },
          "max_price": {
            "value": 1765660,
            "unit": "USD",
            "source": "c1"
          }
        },
        {
          "manager_salary": {
            "value": 60000,
            "unit": "USD",
            "source": "c1"
          },
          "interest_rate": {
            "value": 0.0925,
            "unit": "rate",
            "source": "c1"
          },
          "coverage": {
            "value": 1.25,
            "unit": "x",
            "source": "c1"
          },
          "price_to_sde": {
            "value": 4.56,
            "unit": "x",
            "source": "c1"
          },
          "max_price": {
            "value": 1822451,
            "unit": "USD",
            "source": "c1"
          }
        },
        {
          "manager_salary": {
            "value": 60000,
            "unit": "USD",
            "source": "c1"
          },
          "interest_rate": {
            "value": 0.085,
            "unit": "rate",
            "source": "c1"
          },
          "coverage": {
            "value": 1.25,
            "unit": "x",
            "source": "c1"
          },
          "price_to_sde": {
            "value": 4.7,
            "unit": "x",
            "source": "c1"
          },
          "max_price": {
            "value": 1881938,
            "unit": "USD",
            "source": "c1"
          }
        }
      ],
      "flags": {
        "qoe_required": false,
        "internal_valuation_path": false,
        "loan_capped_at_program_max": false
      },
      "gap_to_asking": {
        "value": -228555,
        "unit": "USD",
        "source": "c1"
      },
      "bridge_needed": {
        "value": 0,
        "unit": "USD",
        "source": "c1"
      }
    },
    "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": "sba-sop-50-10-8.1",
        "name": "SOP 50 10 8.1, Lender and Development Company Loan Programs",
        "publisher": "U.S. Small Business Administration",
        "dataset": "SOP 50 10 8.1",
        "basis": "rule",
        "route": "served_directly",
        "licence_status": "cleared",
        "as_of": "2026-10-01",
        "effective_from": "2026-10-01",
        "effective_to": null,
        "url": "https://legacy.sba.gov/document/information-notice-5000-882227-issuance-technical-updates-sop-50-10-81",
        "line": "Source: SBA SOP 50 10 8.1, effective Oct 1, 2026"
      },
      {
        "id": "s1",
        "source_id": "frb-h15-prime",
        "name": "H.15 Selected Interest Rates: bank prime loan rate",
        "publisher": "Board of Governors of the Federal Reserve System",
        "dataset": "H.15 bank prime loan rate",
        "basis": "public_record",
        "route": "served_directly",
        "licence_status": "cleared",
        "as_of": "2026-10-02",
        "url": "https://www.federalreserve.gov/releases/h15/",
        "line": "Source: Federal Reserve, H.15 bank prime loan rate, as of Oct 2, 2026",
        "retrieved_at": "2026-10-05"
      },
      {
        "id": "r2",
        "source_id": "sba-notice-5000-875051",
        "name": "Procedural Notice 5000-875051, 7(a) maximum interest rates",
        "publisher": "U.S. Small Business Administration",
        "dataset": "Procedural Notice 5000-875051",
        "basis": "rule",
        "route": "served_directly",
        "licence_status": "cleared",
        "as_of": "2026-03-01",
        "effective_from": "2026-03-01",
        "effective_to": null,
        "url": "https://www.sba.gov/document/procedural-notice-5000-875051-7a-alternative-base-rate-options",
        "line": "Source: SBA Procedural Notice 5000-875051, effective Mar 1, 2026"
      }
    ],
    "gaps": [],
    "disclaimer": "informational",
    "computation": {
      "id": "c1",
      "method": "sba_ceiling",
      "method_version": "1.0.0",
      "computed_at": "2026-10-05T15:02:11.000Z",
      "rule_sets": [
        "sba-sop-50-10-8.1@2026-09-25",
        "sba-rate-caps@2026-03-01"
      ],
      "inputs": {
        "sde": {
          "value": 400000,
          "unit": "USD",
          "source": "u1"
        },
        "manager_salary": {
          "value": 80000,
          "unit": "USD",
          "source": "u1"
        },
        "capex_reserve": {
          "value": 25000,
          "unit": "USD",
          "source": "u1"
        },
        "prime_rate": {
          "value": 0.07,
          "unit": "rate",
          "source": "s1",
          "as_of": "2026-10-02"
        },
        "coverage": {
          "value": 1.25,
          "unit": "x",
          "source": "r1"
        },
        "term_months": {
          "value": 120,
          "unit": "months",
          "source": "r1"
        },
        "equity_injection_share": {
          "value": 0.1,
          "unit": "share",
          "source": "r1"
        },
        "asking_price": {
          "value": 1425000,
          "unit": "USD",
          "source": "u1"
        },
        "max_spread": {
          "value": 0.03,
          "unit": "rate",
          "source": "r2"
        }
      }
    },
    "card": {
      "card_type": "sba_ceiling",
      "card_version": "1.0.0",
      "title": "SBA price ceiling",
      "subtitle": "At 10.00% and 1.25x coverage, 10 years",
      "headline": [
        "max_price",
        "max_loan",
        "price_to_sde"
      ],
      "body": {
        "headline_items": [
          {
            "key": "max_price",
            "label": "SBA price ceiling",
            "display": "$1,654,000",
            "figure": {
              "value": 1653555,
              "unit": "USD",
              "source": "c1"
            }
          },
          {
            "key": "max_loan",
            "label": "Highest SBA loan",
            "display": "$1,488,000",
            "figure": {
              "value": 1488200,
              "unit": "USD",
              "source": "c1"
            }
          },
          {
            "key": "price_to_sde",
            "label": "Price to SDE",
            "display": "4.13x",
            "figure": {
              "value": 4.13,
              "unit": "x",
              "source": "c1"
            }
          }
        ],
        "meaning": "The highest price an SBA 7(a)-financed buyer can pay at 1.25x coverage with 10% down.",
        "inputs": [
          {
            "label": "SDE",
            "display": "$400,000",
            "provenance": "supplied by the caller",
            "source": "u1"
          },
          {
            "label": "manager salary",
            "display": "$80,000",
            "provenance": "supplied by the caller",
            "source": "u1"
          },
          {
            "label": "capex reserve",
            "display": "$25,000",
            "provenance": "supplied by the caller",
            "source": "u1"
          },
          {
            "label": "rate",
            "display": "10.00%, the SBA cap: prime 7.00% (Federal Reserve, H.15 bank prime loan rate, as of Oct 2, 2026) plus 3.00%",
            "provenance": "SBA maximum rate under Procedural Notice 5000-875051, effective Mar 1, 2026",
            "source": "r2"
          },
          {
            "label": "coverage",
            "display": "1.25x",
            "provenance": "SBA SOP 50 10 8.1, effective Oct 1, 2026",
            "source": "r1"
          },
          {
            "label": "term",
            "display": "10-year",
            "provenance": "SBA SOP 50 10 8.1, effective Oct 1, 2026",
            "source": "r1"
          },
          {
            "label": "equity",
            "display": "10%",
            "provenance": "SBA SOP 50 10 8.1, effective Oct 1, 2026",
            "source": "r1"
          },
          {
            "label": "asking price",
            "display": "$1,425,000",
            "provenance": "supplied by the caller",
            "source": "u1"
          }
        ],
        "moves": "each $20,000 of salary moves the ceiling about $112,000.",
        "not": "**Not a valuation.** A price above this needs a seller note or more buyer cash.",
        "lines": [
          "Asking is $229,000 below the ceiling."
        ],
        "grid_columns": [
          "10.00%",
          "9.25%",
          "8.50%"
        ],
        "grid_rows": [
          "$60,000",
          "$80,000",
          "$100,000"
        ]
      },
      "as_of": "2026-10-02",
      "source_refs": [
        "u1",
        "r1",
        "s1",
        "r2",
        "c1"
      ],
      "actions": [
        {
          "label": "Stress test this",
          "tool": "stress_test_deal",
          "arguments": {
            "sde": 400000,
            "manager_salary": 80000,
            "capex_reserve": 25000,
            "loan_amount": 1488200,
            "interest_rate": 0.1,
            "term_months": 120
          }
        },
        {
          "label": "Find lenders",
          "tool": "find_sba_lenders",
          "arguments": {}
        }
      ],
      "disclaimers": [
        "informational"
      ],
      "deal_id": "00000000-0000-4000-8000-000000000001"
    },
    "run_id": "00000000-0000-4000-8000-000000000002",
    "charge": {
      "credits": 5,
      "price_class": "quick_tool",
      "balance_after": 62,
      "ledger_entry_id": "00000000-0000-4000-8000-000000000003"
    }
  },
  "created_at": "2026-10-05T15:02:11.000Z"
}
```

**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).

## Type figures onto a deal (bank deposits, P&L revenue, tax-return receipts) {#add-deal-figures}

```http
POST /v1/deals/{deal_id}/figures
```

Each figure is user-entered and dated today; proof of cash reads them beside figures read from documents.

**Price:** Free · **Key scope:** `deals:write`

**Parameters**

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `deal_id` | path | Yes | string | Deal id from `list_deals`. |
| `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`), one of 2 forms:

Form 1:

| Field | Required | Type | Description |
| --- | --- | --- | --- |
| `figures` | Yes | array of objects (at least 1 item) | One or more figures to type onto the deal. |
| `figures[].label` | Yes | one of `bank_deposits`, `pl_revenue`, `return_gross_receipts`, `return_taxable_income`, `sde` | What the figure is: monthly bank deposits, P&L revenue, tax-return gross receipts or taxable income, or SDE. |
| `figures[].period` | Yes | string (pattern `^[0-9]{4}(-[0-9]{2})?$`) | YYYY for a year, YYYY-MM for a month (bank deposits are monthly). |
| `figures[].value` | Yes | number | The amount in US dollars; rounded to cents. |
| `figures[].document_id` | No | string | A document on this deal the figure came from; leave it out when there is none. |
| `figures[].page` | No | integer (min 1) | The page in that document where the figure appears, counting from 1. |

Form 2:

| Field | Required | Type | Description |
| --- | --- | --- | --- |
| `label` | Yes | one of `bank_deposits`, `pl_revenue`, `return_gross_receipts`, `return_taxable_income`, `sde` | What the figure is: monthly bank deposits, P&L revenue, tax-return gross receipts or taxable income, or SDE. |
| `period` | Yes | string (pattern `^[0-9]{4}(-[0-9]{2})?$`) | YYYY for a year, YYYY-MM for a month (bank deposits are monthly). |
| `value` | Yes | number | The amount in US dollars; rounded to cents. |
| `document_id` | No | string | A document on this deal the figure came from; leave it out when there is none. |
| `page` | No | integer (min 1) | The page in that document where the figure appears, counting from 1. |

**Response** `201`: Saved

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 | The deal and the figures just saved. |
| `data.deal_id` | No | string | The deal the figures were saved to. |
| `data.figures` | No | array of objects | The figures as saved, each user-entered and dated today, with its label, period and dollar value. |
| `data.figures[].id` | No | string, nullable | The saved figure's ID. |
| `data.figures[].label` | Yes | one of `bank_deposits`, `pl_revenue`, `return_gross_receipts`, `return_taxable_income`, `sde` | What the figure is: monthly bank deposits, P&L revenue, tax-return gross receipts or taxable income, or SDE. |
| `data.figures[].period` | Yes | string (pattern `^[0-9]{4}(-[0-9]{2})?$`) | The period the figure covers: YYYY for a year, YYYY-MM for a month. |
| `data.figures[].document_id` | No | string, nullable | The document the figure came from; null when it was typed without one. |
| `data.figures[].page` | No | integer, nullable | The page in that document; null when none was given. |
| `data.figures[].value` | Yes | [Figure](/concepts/figures#figure) | The amount in dollars, sourced to its document and page or to the person who typed it, dated the day it was recorded. |

**Call**

```sh
curl -X POST "https://api.acquestor.com/v1/deals/00000000-0000-4000-8000-000000000001/figures" \
  -H "Authorization: Bearer $ACQUESTOR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"figures":[{"label":"bank_deposits","period":"2025-01","value":175000},{"label":"bank_deposits","period":"2025-02","value":175000},{"label":"bank_deposits","period":"2025-03","value":175000},{"label":"bank_deposits","period":"2025-04","value":175000},{"label":"bank_deposits","period":"2025-05","value":175000},{"label":"bank_deposits","period":"2025-06","value":175000},{"label":"bank_deposits","period":"2025-07","value":175000},{"label":"bank_deposits","period":"2025-08","value":175000},{"label":"bank_deposits","period":"2025-09","value":175000},{"label":"bank_deposits","period":"2025-10","value":175000},{"label":"bank_deposits","period":"2025-11","value":175000},{"label":"bank_deposits","period":"2025-12","value":175000},{"label":"pl_revenue","period":"2025","value":2100000},{"label":"return_gross_receipts","period":"2025","value":2080000}]}'
```

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

Request body:

```json
{
  "figures": [
    {
      "label": "bank_deposits",
      "period": "2025-01",
      "value": 175000
    },
    {
      "label": "bank_deposits",
      "period": "2025-02",
      "value": 175000
    },
    {
      "label": "bank_deposits",
      "period": "2025-03",
      "value": 175000
    }
  ]
}
```

Response `201`:

```json
{
  "data": {
    "deal_id": "00000000-0000-4000-8000-000000000001",
    "figures": [
      {
        "id": "00000000-0000-4000-8000-000000000002",
        "label": "bank_deposits",
        "period": "2025-01",
        "document_id": null,
        "page": null,
        "value": {
          "value": 175000,
          "unit": "USD",
          "source": "u1",
          "as_of": "2026-10-05"
        }
      },
      {
        "id": "00000000-0000-4000-8000-000000000003",
        "label": "bank_deposits",
        "period": "2025-02",
        "document_id": null,
        "page": null,
        "value": {
          "value": 175000,
          "unit": "USD",
          "source": "u1",
          "as_of": "2026-10-05"
        }
      },
      {
        "id": "00000000-0000-4000-8000-000000000004",
        "label": "bank_deposits",
        "period": "2025-03",
        "document_id": null,
        "page": null,
        "value": {
          "value": 175000,
          "unit": "USD",
          "source": "u1",
          "as_of": "2026-10-05"
        }
      }
    ]
  },
  "sources": [
    {
      "id": "u1",
      "basis": "user_entered",
      "route": "served_directly",
      "as_of": "2026-10-05",
      "name": "You entered this",
      "line": "You entered this, Oct 5, 2026"
    }
  ],
  "gaps": [],
  "disclaimer": "informational"
}
```

**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 |
| 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 |

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

**Planned:**

| Operation | Does | Release |
| --- | --- | --- |
| `GET /deals/{deal_id}/comments` | Comments in a deal, from its owner and invited same-side collaborators | P1 |
| `POST /deals/{deal_id}/comments` | Comment in a deal (owners and collaborators, including advisors) | P1 |


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/deals

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.
