Knowledge Center

Knowledge Center > API > REST API > REST API Reference > Chart of Accounts > Delete Accounting Code

Delete Accounting Code

This reference describes how to delete an accounting code through the REST API.

Prerequisites

If you have Z-Finance enabled on your tenant, then you must have the Z-Finance Delete Unused Accounting Code permission. See Z-Finance Roles.

Limitations

You can only delete accounting codes that have never been associated with any transactions. An accounting code must be deactivated before you can delete it.

Request

  • Production: DELETE https://api.zuora.com/rest/v1/accounting-codes/{ac-id}
  • API Sandbox: DELETE https://apisandbox-api.zuora.com/rest/v1/accounting-codes/{ac-id}

Request Header Fields

Specify the following field in the request header.

Accept

optional

Optionally specify application/json. Only JSON is returned.

Request Path Fields

Specify the following field in the path of the request URL.

ac-id

required

ID of the accounting code you want to delete.

Response

Response Body Fields

The following fields are returned in the body of the response.

success

Returns true if the request is successful. Otherwise, returns false.

reasons

Information describing the reason for the result. Returned only if success is false.

code

An eight-digit numeric error code.

message

A description of the error.

Example

Example Request

DELETE https://apisandbox-api.zuora.com/rest/v1/accounting-codes/8a8081ae547aac1e01547efb61f20140

Example Response

{
    "success": true
}

 

Last modified

Tags

Classifications

(not set)