# submissions.retry

Retry preserved receipt processing using submissionId, revision and idempotencyKey.

`POST /api/v1/accounting/submissions.retry`

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

MCP tool: `accounting_retry_processing`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `submissionId` | string (ID) | Yes | The ID of an upload, returned by uploads.prepare or uploads.inline. |
| `revision` | integer | Yes | at most 9007199254740991; greater than 0. |
| `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–160 characters. |

## Example request

```bash
curl https://app.getoatmilk.com/api/v1/accounting/submissions.retry \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "submissionId": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",
  "revision": 3
}'
```

Reference page: https://app.getoatmilk.com/docs/api/submissions.retry
