tax.treatment.apply
Confirm a whole group of records at once for { period, code, entryIds, idempotencyKey }: each record listed that is still in the group gets the treatment Oatmilk suggests for that reason (for example no tax credit for purchases without a receipt), saved as a tax review in the caller's name and marked as confirmed together. Records that changed or are no longer in the group are skipped and reported. The closed-period and revision guards still apply.
/api/v1/accounting/tax.treatment.applyPermissions
Who can call it
Retries
MCP
Fields
periodobjectRequiredThe period to cover.
No other fields
codeenumRequiredbank_feeexempt_categoryinterestcontractorreceipt_no_taxreceipt_taxforeign_vendorsame_as_beforesmall_no_receiptno_receiptreceipt_unreadrecorded_taxrecorded_sale_taxsale_no_taxentryIdsarray of strings (ID)RequiredIDs of accounting entries, from entries.list or attention.mine.
1–1000 items
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
Example
curl https://app.getoatmilk.com/api/v1/accounting/tax.treatment.apply \
-H "Authorization: Bearer $OATMILK_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"period": {
"from": "2026-09-01",
"to": "2026-09-30",
"kind": "corporate"
},
"code": "bank_fee",
"entryIds": [
"7f0f6c1e-1c1f-4b5e-9c8d-2f5e8e3c1a10"
]
}'{
"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.treatment.apply \
-H "Authorization: Bearer $OATMILK_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"period": {
"from": "2026-09-01",
"to": "2026-09-30",
"kind": "corporate"
},
"code": "bank_fee",
"entryIds": [
"7f0f6c1e-1c1f-4b5e-9c8d-2f5e8e3c1a10"
]
}'More in Reports and tax.