---
title: "Apply one exact bill-payment allocation"
method: POST
path: "/accountant/companies/{customerId}/transactions/{transactionId}/match-bill"
tags: ["Accountant Documents"]
---

# Apply one exact bill-payment allocation

`POST /accountant/companies/{customerId}/transactions/{transactionId}/match-bill`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/companies/{customerId}/transactions/{transactionId}/match-bill`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

## Request body

- DocumentIdInput
  - `documentId` string, uuid, required

## Response `201`

Exact applied allocation and journal replacement identities

- AccountantDocumentMatchMutationResponse
  - `success` boolean, required
  - `data` AccountantDocumentMatchMutationResult, required
    - `matchId` string, uuid, required
    - `documentId` string, uuid, required
    - `transactionId` string, uuid, required
    - `status` 'applied', required
    - `method` string, nullable, required
    - `confidence` number, nullable, required
    - `amountCents` integer, required
    - `currency` string, required
    - `minorUnitExponent` 2, required
    - `replacementJeId` string, uuid, nullable
    - `voidedJeId` string, uuid, nullable
    - `jeMutated` boolean

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Resource not found
- `409`: Payment allocation conflicts with current accounting state
- `422`: Request failed validation

---

[API](https://skmtc.dev/medianfi/apis/median-api.md) · [All operations](https://skmtc.dev/medianfi/apis/median-api/llms.txt) · [OpenAPI document](https://skmtc.dev/medianfi/apis/median-api/revisions/20090ea32b0d?raw)
