entries.create
Manually create a receipt entry from preserved evidence when extraction needs correction. Requires the submission revision, exact minor-unit amounts and an idempotency key.
/api/v1/accounting/entries.createPermissions
Who can call it
Retries
MCP
accounting_create_recordFields
submissionIdstring (ID)RequiredThe ID of an upload, returned by uploads.prepare or uploads.inline.
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.
at most 9007199254740991 · greater than 0
merchantstringRequired1–500 characters
datestringRequiredA date, as YYYY-MM-DD.
currencystringRequiredThree-letter currency code, such as CAD or USD.
amountMinorstringRequiredAn amount in cents (the currency's smallest unit), written as a whole-number string such as "1250" for $12.50.
Whole number written as a string
taxMinorstringRequiredAn amount in cents (the currency's smallest unit), written as a whole-number string such as "1250" for $12.50.
Whole number written as a string
taxKnownbooleancategoryIdstring (ID)The ID of a category, from categories.list.
paymentAccountIdstring (ID)The card or account the purchase was paid with, from accounts.list.
typeenumRequiredexpenseincomeincome_refundrefundtransferfeenotesstringNotes kept with the record.
at most 10000 characters · Default ""
sourceFactIndexinteger0 to 19
statusenumOnly include records with this status.
reviewedduplicateDecisionenumkeep_separatetripIdstring (ID)The ID of the related record.
tripRoleenumlodgingholdroom_chargemealtransportotheridempotencyKeystringRequiredAny 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/entries.create \
-H "Authorization: Bearer $OATMILK_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"submissionId": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
"expectedRevision": 3,
"merchant": "example",
"date": "2026-09-30",
"currency": "CAD",
"amountMinor": "1250",
"taxMinor": "1250",
"type": "expense"
}'{
"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/entries.create \
-H "Authorization: Bearer $OATMILK_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"submissionId": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
"expectedRevision": 3,
"merchant": "example",
"date": "2026-09-30",
"currency": "CAD",
"amountMinor": "1250",
"taxMinor": "1250",
"type": "expense"
}'More in Transactions.