Invoicing

invoices.findPayment

Recheck saved payments for one issued, unpaid invoice using id, expectedRevision and idempotencyKey. Records a Wise balance payment only when a complete invoice reference, exact structured sender name or eligible earlier human-confirmed sender match uniquely identifies the invoice, with exact currency, outstanding balance, issued date and current bank, invoice and bookkeeping guards. Conflicting, protected or incomplete evidence stays for review. Returns matched, ambiguous, no_evidence, acquiring_unsupported or pending, with coverage and next action. Review suggestions may include saved deposits from other bank accounts, partial payments and overpayments, with evidence reasons and suggestionsCoverageComplete. Learned senders stay in the same organization, receiving account and currency. Shared payment services also require an earlier confirmed payment of the same amount; customer conflicts block automatic matching. Suggestions do not record payments or infer fees. No provider fetch, model call, matching setting change or immediate external dispatch. Wise card collections alone cannot establish payout settlement. Reuse the same key after an uncertain response; a fresh check after a completed result needs a new key.

POST/api/v1/accounting/invoices.findPayment

Permissions

accounting:readaccounting:write

Who can call it

admin, finance

Retries

Idempotency key required, with expectedRevision

MCP

accounting_invoices_find_payment

Fields

  • idstring (ID)Required

    The record's ID.

  • expectedRevisionintegerRequired

    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

  • idempotencyKeystringRequired

    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

curl https://app.getoatmilk.com/api/v1/accounting/invoices.findPayment \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
  "expectedRevision": 3
}'
Response
{
  "data": { … }
}

Try it

Try it

Checks your input with this action’s real schema and answers like the API, with synthetic data. No key needed, and nothing changes.

POST/api/v1/accounting/invoices.findPayment
curl https://app.getoatmilk.com/api/v1/accounting/invoices.findPayment \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
  "expectedRevision": 3
}'

More in Invoicing.