# 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.set`

Permissions: `accounting:read`, `accounting:write` · Roles: admin, finance, contributor · Idempotency key required

MCP tool: `accounting_entries_place_set`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `entryId` | string (ID) | Yes | The ID of an accounting entry, from entries.list or attention.mine. |
| `lat` | number | Yes | -90 to 90. |
| `lon` | number | Yes | -180 to 180. |
| `label` | string | Yes | 1–200 characters. |
| `address` | string or null |  |  |
| `city` | string or null |  |  |
| `region` | string or null |  |  |
| `countryCode` | string or null |  |  |
| `idempotencyKey` | string | Yes | 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 request

```bash
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"
}'
```

Reference page: https://app.getoatmilk.com/docs/api/entries.place.set
