---
title: "Reverse a credit memo"
method: PUT
path: "/v1/credit-memos/{creditMemoKey}/reverse"
tags: ["Credit Memos"]
---

# Reverse a credit memo

`PUT /v1/credit-memos/{creditMemoKey}/reverse`

**Note:** This operation is only available if you have [Invoice Settlement](https://docs.zuora.com?resourceId=billing-invoice-settlement) enabled. The Invoice Settlement feature is generally available as of Zuora Billing Release 296 (March 2021). This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement, see [Invoice Settlement Enablement and Checklist Guide](https://docs.zuora.com?resourceId=billing-invoice-settlement-migration-checklist-and-guide) for more information.

Reverses a posted credit memo. See [Reverse credit memos](https://docs.zuora.com?resourceId=billing-reversal-of-credit-memos) for more information.

You can reverse a credit memo only if you have the user permission. See [Billing Roles](https://docs.zuora.com?resourceId=platform-billing-roles) for more information.

**Restrictions**

You cannot reverse credit memos if any of the following conditions is met:

* A credit memo's applied amount is not 0.
* A credit memo is not in Posted status.
* A credit memo contains more than 2,000 items in total, including credit memo items, discount items, and taxation items.

## Path parameters

- `creditMemoKey` string, required

## Headers

- `Accept-Encoding` string
- `Content-Encoding` string
- `Zuora-Track-Id` string
- `Zuora-Entity-Ids` string
- `Zuora-Org-Ids` string
- `Zuora-Version` string

## Request body

- PutReverseCreditMemoType
  - `applyEffectiveDate` string, date — The date when the to-be-reversed credit memo is applied to the newly generated debit memo, in `yyyy-mm-dd` format. The effective date must be later than or equal to the memo date. The default value is the date when you reverse the credit memo and create the debit memo.
  - `comment` string — Comments about the reversal. The comment is used as the comment of the debit memo generated by reversing the specified credit memo.
  - `memoDate` string, date — The date when the debit memo is created, in `yyyy-mm-dd` format. The memo date must be later than or equal to the credit memo's memo date. The default value is the date when you reverse the credit memo and create the debit memo.
  - `reasonCode` string — A code identifying the reason for the reversal. The value must be an existing reason code or empty. The code is used as the reason code of the debit memo generated by reversing the specified credit memo. If you do not specify a value, Zuora uses the default reason code `Credit memo reversal` for the debit memo.

## Response `200`

OK

- PutReverseCreditMemoResponseType
  - `creditMemo` object — Container for the credit memo that is automatically generated during the reversal of the invoice that is related to the credit memo. If no related invoice is reversed, the value is null.
    - `id` string — The ID of the credit memo.
  - `debitMemo` object — Container for the debit memo that is automatically generated during the credit memo reversal.
    - `id` string — The ID of the debit memo.
  - `success` boolean — Returns `true` if the request was processed successfully.

## Other responses

- `500` — Internal Server Error
- `4XX` — Request Errors

---

[API](https://skmtc.dev/zuora/apis/api-reference.md) · [All operations](https://skmtc.dev/zuora/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/zuora/api-reference/revisions/d11e237f3e54/schema)
