# wise.receipts.decide

Keep saved fields or accept proved incoming merchant, canonical tax, and address values from an immutable Wise receipt review. Values come from the server. Requires exact review and entry revisions, fingerprint, reason, and idempotency key. Bank money and date use the existing correction workflow.

`POST /api/v1/accounting/wise.receipts.decide`

Permissions: `accounting:read`, `accounting:write` · Roles: admin, finance · Idempotency key required · Send `expectedRevision`

MCP tool: `accounting_wise_receipts_decide`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `reviewId` | string (ID) | Yes | The ID of the related record. |
| `expectedRevision` | integer | Yes | The record's current revision, from the last time you read it. If someone changed the record since, the request is refused with a conflict so you can reload and check before trying again. at most 9007199254740991; greater than 0. |
| `reviewRevision` | integer | Yes | The related record's current revision, from the last time you read it. at most 9007199254740991; greater than 0. |
| `sourceFingerprint` | string | Yes | SHA-256 hash as 64 lowercase hex characters. |
| `selections` | array of objects | Yes | at most 7 items. |
| `selections[].field` | enum | Yes | One of: `merchant`, `date`, `currency`, `amountMinor`, `taxMinor`, `merchantAddress`, `travelAddress`. |
| `selections[].choice` | enum | Yes | One of: `keep`, `incoming`. |
| `reason` | string | Yes | A short note saying why, kept in the record's history. 10–1000 characters. |
| `idempotencyKey` | string | Yes | Any unique text you generate once per intended change, so a retried request only happens once. Send it as the Idempotency-Key header instead if you prefer; if you send both they must match. 8–200 characters. |

## Example request

```bash
curl https://app.getoatmilk.com/api/v1/accounting/wise.receipts.decide \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "reviewId": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
  "expectedRevision": 3,
  "reviewRevision": 3,
  "sourceFingerprint": "9f2b5c1d7e3a4b6c8d0e2f4a6b8c0d2e4f6a8b0c2d4e6f8a0b2c4d6e8f0a2b4c",
  "selections": [
    {
      "field": "merchant",
      "choice": "keep"
    }
  ],
  "reason": "Synthetic example from the docs"
}'
```

Reference page: https://app.getoatmilk.com/docs/api/wise.receipts.decide
