entries.place.set
Save where a purchase was made with entryId, lat, lon, a label, an optional address and an idempotencyKey. A place a person set is never replaced by an automatic lookup. Contributors can set only the place of transactions they own.
POST
/api/v1/accounting/entries.place.setPermissions
accounting:readaccounting:write
Who can call it
admin, finance, contributor
Retries
Idempotency key required
MCP
accounting_entries_place_setFields
entryIdstring (ID)RequiredThe ID of an accounting entry, from entries.list or attention.mine.
latnumberRequired-90 to 90
lonnumberRequired-180 to 180
labelstringRequired1–200 characters
addressstring or nullcitystring or nullregionstring or nullcountryCodestring or nullidempotencyKeystringRequiredAny 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.place.set \
-H "Authorization: Bearer $OATMILK_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"entryId": "7f0f6c1e-1c1f-4b5e-9c8d-2f5e8e3c1a10",
"lat": 1,
"lon": 1,
"label": "example"
}'{
"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/entries.place.set
curl https://app.getoatmilk.com/api/v1/accounting/entries.place.set \
-H "Authorization: Bearer $OATMILK_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"entryId": "7f0f6c1e-1c1f-4b5e-9c8d-2f5e8e3c1a10",
"lat": 1,
"lon": 1,
"label": "example"
}'More in Transactions.