---
title: "Delete accounting entries in bulk by entry code"
method: DELETE
path: "/accountingentries/accountingentrycode/{companyId}"
tags: ["AccountingEntries"]
---

# Delete accounting entries in bulk by entry code

`DELETE /accountingentries/accountingentrycode/{companyId}`

Deletes every accounting entry whose `accountingEntryCode` or `accountingEntryCodeId` matches one of the given codes. The call returns `200` immediately; matching entries may still briefly appear in `GET` results right after deletion.

## Path parameters

- `companyId` string, required

## Request body

- BulkDeleteAccountingEntriesEntryCodeRequestSchema
  - `data` DeleteAccountingEntriesEntryCodeRequestSchema[], required — Entry codes to delete by.
    - `accountingEntryCode` string, required — Entry code to delete by. Matches entries whose `accountingEntryCode` or `accountingEntryCodeId` equals this value.

## Response `200`

Successful Response

- BulkModifyAccountingEntriesResponseSchema
  - `data` ModifyAccountingEntriesResponseSchema[], required — Result of the bulk operation, one entry per accounting entry.
    - `id` string, required — Embat resource ID

## Other responses

- `401` — Unauthorized. The bearer token is missing, invalid or expired.
- `404` — Not found. The requested resource or `companyId` does not exist.
- `422` — Validation Error
- `500` — Unexpected error. Contact support if it persists.

---

[API](https://skmtc.net/embat/apis/embat-api.md) · [All operations](https://skmtc.net/embat/apis/embat-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/embat/embat-api/revisions/36ca48bf4489/schema)
