---
title: "Admin Void Earning"
method: POST
path: "/api/asclepius/admin/earnings/{earning_id}/void"
tags: ["asclepius-payments"]
---

# Admin Void Earning

`POST /api/asclepius/admin/earnings/{earning_id}/void`

## Request

- Base URL: `https://app.archangelhealth.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://app.archangelhealth.ai/api/asclepius/admin/earnings/{earning_id}/void`
- Auth: none declared

Decline to pay for one case.

Four properties, all of them load-bearing:

1. ``paid`` is a **409**. The money already left; a refund is a treasury
   operation and out of scope here. Voiding it would leave the ledger saying
   we owe nothing for work we have already disbursed.
2. Idempotent on ``earning_id`` — a double-click cannot double-decrement,
   because the store's guarded UPDATE is the arbiter rather than a read.
3. The recomputed total comes back, so the console renders the ledger's
   number instead of subtracting its own.
4. An audit row, because voiding a physician's pay is consequential and must
   be attributable to the person who did it.

## Path parameters

- `earning_id` string, required

## Headers

- `authorization` string, nullable

## Request body

- VoidEarningBody
  - `reason` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/archangelhealth/apis/archangel-health-surgical-patient-platform.md) - [All operations](https://skmtc.dev/archangelhealth/apis/archangel-health-surgical-patient-platform/llms.txt) - [OpenAPI document](https://skmtc.dev/archangelhealth/apis/archangel-health-surgical-patient-platform/revisions/3514f4e119da?raw)
