tax.financialCounterparts.review
Classify a supported CAD transfer with an explicit incoming advance, outgoing advance, incoming repayment or outgoing repayment. Uses current source/review/obligation revisions, original evidence, owner attestations, a posting preview and a retry key. Repayments allocate existing obligations and cannot overpay. Atomically saves the separate counterpart, balances and audit without duplicating imported cash or touching other companies. Legacy shareholder and share-capital purposes require dashboard confirmation.
/api/v1/accounting/tax.financialCounterparts.reviewPermissions
Who can call it
Retries
MCP
Fields
entryIdstring (ID)RequiredThe ID of an accounting entry, from entries.list or attention.mine.
expectedEntryRevisionintegerRequiredThe related record's current revision, from the last time you read it.
at most 9007199254740991 · greater than 0
expectedRevisionintegerRequiredThe 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.
0 to 9007199254740991
sourceFingerprintstringRequiredSHA-256 hash as 64 lowercase hex characters
idempotencyKeystringRequiredAny 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
purposeenumRequiredincoming_advanceoutgoing_advanceincoming_repaymentoutgoing_repaymentdue_to_otherdue_from_otherdue_to_shareholderdue_from_shareholdercommon_shareslabelstringRequired1–100 characters
reasonstringRequiredA short note saying why, kept in the record's history.
10–500 characters
evidencearray of objectsRequired1–20 items
expectedSupportingSourceFingerprintstringSHA-256 hash as 64 lowercase hex characters
counterpartyIdstring (ID)The ID of the related record.
allocationsarray of objectsat most 20 items
attestationsarray of objectsat most 20 items
instructionstring10–2000 characters
confirmedtrueRequired
Example
curl https://app.getoatmilk.com/api/v1/accounting/tax.financialCounterparts.review \
-H "Authorization: Bearer $OATMILK_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"entryId": "7f0f6c1e-1c1f-4b5e-9c8d-2f5e8e3c1a10",
"expectedEntryRevision": 3,
"expectedRevision": 3,
"sourceFingerprint": "9f2b5c1d7e3a4b6c8d0e2f4a6b8c0d2e4f6a8b0c2d4e6f8a0b2c4d6e8f0a2b4c",
"purpose": "incoming_advance",
"label": "example",
"reason": "Synthetic example from the docs",
"evidence": [
{
"kind": "bank_original",
"id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
"sha256": "9f2b5c1d7e3a4b6c8d0e2f4a6b8c0d2e4f6a8b0c2d4e6f8a0b2c4d6e8f0a2b4c"
}
],
"confirmed": true
}'{
"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.
curl https://app.getoatmilk.com/api/v1/accounting/tax.financialCounterparts.review \
-H "Authorization: Bearer $OATMILK_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"entryId": "7f0f6c1e-1c1f-4b5e-9c8d-2f5e8e3c1a10",
"expectedEntryRevision": 3,
"expectedRevision": 3,
"sourceFingerprint": "9f2b5c1d7e3a4b6c8d0e2f4a6b8c0d2e4f6a8b0c2d4e6f8a0b2c4d6e8f0a2b4c",
"purpose": "incoming_advance",
"label": "example",
"reason": "Synthetic example from the docs",
"evidence": [
{
"kind": "bank_original",
"id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
"sha256": "9f2b5c1d7e3a4b6c8d0e2f4a6b8c0d2e4f6a8b0c2d4e6f8a0b2c4d6e8f0a2b4c"
}
],
"confirmed": true
}'More in Reports and tax.