# matching.receiptConsolidation.preview

Inspect current originals, source identities, exact signed payment pieces and revisions before manually linking a receipt to an existing bank purchase. No financial fields or allocations are changed.

`GET | POST /api/v1/accounting/matching.receiptConsolidation.preview`

Permissions: `accounting:read` · Roles: admin, finance

MCP tool: `accounting_matching_receipt_consolidation_preview`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `receiptEntryId` | string (ID) | Yes | The ID of the related record. |
| `targetEntryId` | string (ID) | Yes | The ID of the related record. |
| `mode` | enum | Yes | One of: `same_order`, `wise_card_settlement`. |
| `transactionIds` | array of strings (ID) | Yes | A list of record IDs. 1–20 items. |

## Example request

```bash
curl https://app.getoatmilk.com/api/v1/accounting/matching.receiptConsolidation.preview \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "receiptEntryId": "7f0f6c1e-1c1f-4b5e-9c8d-2f5e8e3c1a10",
  "targetEntryId": "4d5e6f7a-8b9c-4d0e-8f1a-2b3c4d5e6f7a",
  "mode": "same_order",
  "transactionIds": [
    "7f0f6c1e-1c1f-4b5e-9c8d-2f5e8e3c1a10"
  ]
}'
```

Reference page: https://app.getoatmilk.com/docs/api/matching.receiptConsolidation.preview
