# Withdraw a claim

Canonical page: https://docs.ovok.com/api/patient-billing/withdraw-a-claim

`DELETE /v1/patient-billing/claims/{claimId}`

Withdraws a claim the insurer has not adjudicated or paid, for example one built from the wrong charges or rejected by the insurer. It is cancelled, its charges turn `billable` again, and the patient's statement about a rejection is cancelled too, in the same commit.

**Scope:** the caller's project, with `PATIENT_BILLING_ENABLED` on.

## Behaviour

- Your access policy must grant `patient_billing_claims` `update` and let you read the patient, else **403** `PATIENT_BILLING_NOT_ALLOWED` or **404** `CLAIM_NOT_FOUND`.
- A claim with an answer of outcome `complete` or `partial`, or with a payment, answers **409** `CLAIM_ANSWERED`. A rejected claim (outcome `error`) may be withdrawn.
- A claim already withdrawn answers **204** again. Another change to the patient's charges running at the same time answers **409**; send yours again.

## Example

```bash
curl -X DELETE 'https://api.sandbox.ovok.com/v1/patient-billing/claims/<claimId>' \
  -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3NjcyNjg4MDAsImV4cCI6MTc2NzI3MjQwMH0.Ql3B_ztDvctlyZ2z0vp4sl3ExXRQGkzmxdmTAqxNzZk'
```
