---
search:
  tags:
    - Billing
    - POST
seo:
  description: >-
    Report a page of the withdrawal queue discarded in one request. Each…
    Reference for the POST /v1/billing/batch/report-discarded endpoint in the
    Hydda One API.
sidebar:
  label: Report up to 200 deleted invoices discarded
  badge: POST
title: Report up to 200 deleted invoices discarded
type: openapi-operation
---
Report a page of the withdrawal queue discarded in one request. Each item names the deleted invoice by `invoiceId`, and an invoice appears at most once. A handled item answers 204, also when it was already off the queue. Each item is handled on its own, in the order sent, exactly as the single route handles it. A refused item changes nothing for the others, and its result carries the status and problem the single route answers, with the same `code`. The request itself answers 200 unless the token, the integration configuration or the body is refused, which happens before any item is handled. On a 429, wait as long as `Retry-After` says, then send the same batch again.

`POST /v1/billing/batch/report-discarded`

**Request body** (`application/json`, required)

- `items` (object[], required) — From 1 to 200 items. They are handled in this order.

Request body example:

```json
{
  "items": [
    {
      "invoiceId": "4f163819-178d-470c-a246-d6768476a6ec"
    }
  ]
}
```

**Responses**

- `200` — One result per item, in the order sent.
- `400` — The request is not valid, or a business rule refused it. \`code\` names the rule.
- `401` — The access token is missing, expired or not valid.
- `403` — The token does not allow this request.
- `429` — Too many requests. Wait and try again.

Response example, 200:

```json
{
  "results": [
    {
      "status": 204
    }
  ]
}
```
