---
title: "PATCH /billing/{tenantLocator}/writeOffs/{locator}/reverse"
method: PATCH
path: "/billing/{tenantLocator}/writeOffs/{locator}/reverse"
---

# PATCH /billing/{tenantLocator}/writeOffs/{locator}/reverse

`PATCH /billing/{tenantLocator}/writeOffs/{locator}/reverse`

## Request

- Base URL: `https://docs.socotra.com`
- URL: `https://docs.socotra.com/billing/{tenantLocator}/writeOffs/{locator}/reverse`
- Auth: none declared
- TypeScript: <https://skmtc.dev/socotra/apis/socotra-insurance-suite-openapi/docs/billing/:tenantLocator/writeOffs/:locator/reverse/patch.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `tenantLocator` string, uuid, required
- `locator` string, ulid, required

## Response `200`

OK

- WriteOffResponse
  - `locator` string, ulid, required
  - `creditType` 'writeOff' | 'shortfallWriteOff', required
  - `writeOffState` 'draft' | 'distributed' | 'reversed', required
  - `currency` string, required
  - `amount` number, required
  - `createdAt` string, date-time, required
  - `createdBy` string, uuid, required
  - `accountLocator` string, ulid, required
  - `targets` CreditItem[], required
    - `containerLocator` string, ulid, required
    - `containerType` 'invoice' | 'account' | 'subpayment' | 'invoiceItem', required
    - `amount` number
  - `reversalReason` string
  - `reversedAt` string, date-time

---

[API](https://skmtc.dev/socotra/apis/socotra-insurance-suite-openapi.md) - [All operations](https://skmtc.dev/socotra/apis/socotra-insurance-suite-openapi/llms.txt) - [OpenAPI document](https://skmtc.dev/socotra/apis/socotra-insurance-suite-openapi/revisions/77ee7d8172b9?raw)
