# contractorOps.history.paymentAsks.answer

Answer a payment question (id, decision, idempotencyKey). paid marks the question's timesheets that are still unpaid paid, on the payment's date and with the payment (audited like contractorOps.history.markPaid); other records that the payment was for something else, and it is never matched to timesheets or asked about again.

`POST /api/v1/accounting/contractorOps.history.paymentAsks.answer`

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

MCP tool: `accounting_contractor_ops_history_payment_asks_answer`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `id` | string (ID) | Yes | The record's ID. |
| `decision` | enum | Yes | paid marks the question's unpaid timesheets paid, matched to the bank payment; other says the payment was for something else and it is never asked about again. One of: `paid`, `other`. |
| `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/contractorOps.history.paymentAsks.answer \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
  "decision": "paid"
}'
```

Reference page: https://app.getoatmilk.com/docs/api/contractorOps.history.paymentAsks.answer
