---
title: "Unapply a credit memo asynchronously"
method: PUT
path: "/v1/credit-memos/{creditMemoKey}/unapply-async"
tags: ["Credit Memos"]
---

# Unapply a credit memo asynchronously

`PUT /v1/credit-memos/{creditMemoKey}/unapply-async`

## Request

- Base URL: `https://rest.test.zuora.com`
- URL: `https://rest.test.zuora.com/v1/credit-memos/{creditMemoKey}/unapply-async`
- Auth: HTTP bearer

**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.
  Asynchronously Unapplies an applied credit memo from one or more invoices. The full applied amount from invoices is transferred into the unapplied amount of the credit memo. 

You can unapply a credit memo from an invoice only if you have the user permission. See [Billing Roles](https://docs.zuora.com?resourceId=platform-billing-roles)
  When you unapply a credit memo, the total number of credit memo items and the items that credit memo items to be unapplied from must be less than or equal to 300,000.
  The maximum number of invoices that you can specify in the request is 1,000

## Path parameters

- `creditMemoKey` string, required

## Headers

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

## Request body

- AsyncUnapplyCreditMemoRequest
  - `effectiveDate` string, date: The date when the credit memo is unapplied.
  - `invoices` AsyncUnapplyCreditMemoToInvoice[]: Container for invoices that the credit memo is unapplied. The maximum number of invoices is 1,000.
    - `amount` number, required: The credit memo amount to be unapplied from the invoice.
    - `invoiceId` string, required: The unique ID of the invoice that the credit memo is unapplied from.

## Response `200`

- InvoiceSettlementAsyncJobResponse
  - `processId` string: The ID of the process that handles the operation.
  - `reasons` object[]: The container of the error code and message. This field is available only if the `success` field is `false`.
    - `code` string: The error code of response.
    - `message` string: The detail information of the error response
  - `requestId` string, uuid: Unique identifier of the request.
  - `success` boolean: Indicates whether the call succeeded.
  - `id` string: The ID of the operation job.
  - `status` 'Pending' | 'Processing' | 'Processed' | 'Error': Job status of the Invoice Settlement async job.
  - `operationType` 'AsyncCreditMemoApply' | 'AsyncCreditMemoUnapply': Operation type of the Invoice Settlement async job.
  - `referenceId` string: The ID of the business object which is being operated.
  - `referenceType` 'CreditMemo': Reference type of the Invoice Settlement async job.
  - `error` string, nullable: The error message if the operation error out.

## Other responses

- `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.dev/zuora/apis/api-reference/revisions/2deecb0dd041?raw)
