---
search:
  tags:
    - Ledger
    - PATCH
seo:
  description: >-
    Status transitions only, forward-only (open -> acknowledged -> resolved). A…
    Reference for the PATCH /ledger/entries/{entry_id} endpoint in the Sarvex V1
    API.
sidebar:
  label: Change an entry's triage status
  badge: PATCH
title: Change an entry's triage status
type: openapi-operation
---
Status transitions only, forward-only (open -> acknowledged ->
resolved). A reversal, or any other field, is rejected.

`PATCH /ledger/entries/{entry_id}`

**Request body** (`application/json`, required)

- `status` (ledger_entry_status, required)

Request body example:

```json
{
  "status": "open"
}
```

**Responses**

- `200` — Updated entry.
- `403` — Authenticated but not permitted (e.g. non-operator on an operator route).
- `404` — Resource not found within the caller's tenant.
- `409` — The requested status is not forward of the entry's current status.
- `422` — Request body failed validation.

Response example, 200:

```json
{
  "entry_id": "led_01J...",
  "occurred_at": "2019-08-24T14:15:22Z",
  "checkout_id": "string",
  "store_id": "string",
  "surface": "ucp_checkout",
  "stage": "string",
  "failure_code": "string",
  "cause": "payment_handler",
  "recommended_action": "string",
  "lost_revenue_minor": 0,
  "currency": "USD",
  "revenue_unknown": true,
  "status": "open",
  "status_changed_at": "2019-08-24T14:15:22Z",
  "created_at": "2019-08-24T14:15:22Z"
}
```

Response example, 403:

```json
{
  "error": {
    "code": "forbidden",
    "message": "Operator role required.",
    "details": null
  }
}
```

Response example, 404:

```json
{
  "error": {
    "code": "not_found",
    "message": "Resource not found.",
    "details": null
  }
}
```

Response example, 422:

```json
{
  "error": {
    "code": "validation_error",
    "message": "One or more fields are invalid.",
    "details": {
      "fields": {
        "email": "must be a valid email address"
      }
    }
  }
}
```
