# tax.gifi.update

Confirm GIFI codes for categories with mappings [{ categoryId, code }], the current mapping revision (expectedRevision) and an idempotency key. Codes must be in the supported GIFI list. Changes are audited and do not change any accounting record.

`POST /api/v1/accounting/tax.gifi.update`

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

Not available over MCP: Accountants' corrections grant isn't offered over MCP yet: phase 1 is read and comment only.

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `mappings` | array of objects | Yes | 1–500 items. |
| `mappings[].categoryId` | string (ID) | Yes | The ID of a category, from categories.list. |
| `mappings[].code` | enum | Yes | One of: `1001`, `1002`, `1003`, `1060`, `1066`, `1300`, `1484`, `1740`, `1774`, `1787`, `2620`, `2621`, `2680`, `2780`, `3500`, `3600`, `3700`, `8000`, `8090`, `8091`, `8230`, `8231`, `8241`, `8242`, `8320`, `8340`, `8360`, `8370`, `8520`, `8521`, `8522`, `8523`, `8524`, `8590`, `8620`, `8621`, `8622`, `8690`, `8710`, `8711`. 75 values in total. |
| `expectedRevision` | integer | Yes | The 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. |
| `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/tax.gifi.update \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "mappings": [
    {
      "categoryId": "7f0f6c1e-1c1f-4b5e-9c8d-2f5e8e3c1a10",
      "code": "1001"
    }
  ],
  "expectedRevision": 3
}'
```

Reference page: https://app.getoatmilk.com/docs/api/tax.gifi.update
