---
title: "Retrieve an invoice write-off async job"
method: GET
path: "/v1/invoices/write-off-async-jobs/{asyncJobId}"
tags: ["Invoices"]
---

# Retrieve an invoice write-off async job

`GET /v1/invoices/write-off-async-jobs/{asyncJobId}`

Retrieves information about a specific asynchronous invoice write-off job. 

**Note:** This operation is only available if you have <a href="https://docs.zuora.com/en/zuora-billing/bill-your-customer/adjust-invoice-amounts/invoice-settlement/get-started-with-invoice-settlement/invoice-settlement-overview" 
target="_blank">Invoice Settlement</a> enabled. This feature includes Unapplied Payments, Credit and Debit Memo, and Invoice Item Settlement. If you want to enable Invoice Settlement,
see <a href="https://docs.zuora.com/en/zuora-billing/bill-your-customer/adjust-invoice-amounts/invoice-settlement/invoice-settlement-migration-checklist-and-guide" target=“_blank”>Invoice Settlement Enablement and Checklist Guide</a> for more information.

## Path parameters

- `asyncJobId` string, required

## Headers

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

## Response `200`

OK

- WriteOffInvoiceAsyncJobResponse
  - `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 fails.
  - `creditMemo` WriteOffInvoiceResponseCreditMemo — Container for the credit memo that is automatically generated when writing off invoices.
    - `id` string — The ID of the credit memo that is created when the invoice is written off.

## Other responses

- `500` — Internal Server Error
- `4XX` — Unauthorized

---

[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)
