---
search:
  tags:
    - Billing
    - POST
seo:
  description: >-
    Report several credit notes in one request. Each item is the… Reference for
    the POST /v1/billing/batch/report-credit-notes endpoint in the Hydda One
    API.
sidebar:
  label: Report up to 200 credit notes your platform issued
  badge: POST
title: Report up to 200 credit notes your platform issued
type: openapi-operation
---
Report several credit notes in one request. Each item is the report-credit-note body plus exactly one of `invoiceId` and `invoiceExternalReference` naming the credited invoice. An invoice may appear several times, once per credit note. Sending the same batch again answers each credit note unchanged. 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-credit-notes`

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

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

Request body example:

```json
{
  "items": [
    {
      "externalReference": "string",
      "issuedInvoiceNumber": "string",
      "issuedInvoiceDate": "2019-08-24",
      "issuedTotalGrossMinorUnits": -9007199254740991,
      "documentUrl": "http://example.com",
      "lines": [
        {
          "invoiceLineId": "01b48345-8495-4ed8-81ba-4399df639395",
          "amountMinorUnits": 1
        }
      ],
      "vatRates": [
        {
          "vatRateBasisPoints": 0,
          "vatTreatment": "exempt",
          "amountMinorUnits": 1,
          "label": "string"
        }
      ],
      "invoiceId": "4f163819-178d-470c-a246-d6768476a6ec",
      "invoiceExternalReference": "string"
    }
  ]
}
```

**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": 200,
      "result": {
        "creditNote": {
          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
          "invoiceRunId": "d023feec-6ce3-4d83-8326-53006f2d50e7",
          "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
          "operationalContextId": "a3f64ce2-1602-4028-b89f-abb2bb8c71bc",
          "contractId": "dbf32426-cf38-4818-9c6e-3230d889fa51",
          "recipientAgentId": "9857c18a-555f-4729-b9ab-629537b29cdc",
          "recipientAgentName": "string",
          "billingAccountId": "56a302e4-9416-417d-adcf-22ac99649ba3",
          "documentKind": "invoice",
          "creditedInvoiceId": "74ebea99-ce39-4315-8d5b-103e18e641e4",
          "billingStream": "contractual",
          "requestedInvoiceDate": "2019-08-24",
          "requestedDueDate": "2019-08-24",
          "paymentTermsDays": 0,
          "invoiceNumber": 1,
          "status": "created",
          "currency": "SEK",
          "totalNetMinorUnits": -9007199254740991,
          "totalVatMinorUnits": -9007199254740991,
          "totalGrossMinorUnits": -9007199254740991,
          "externalReference": "string",
          "issuedInvoiceNumber": "string",
          "issuedInvoiceDate": "2019-08-24",
          "dueDate": "2019-08-24",
          "issuedTotalGrossMinorUnits": -9007199254740991,
          "paymentReference": "string",
          "paymentReferenceType": "ocr",
          "documentUrl": "string",
          "balanceMinorUnits": -9007199254740991,
          "overdue": true,
          "approvedAt": "2019-08-24T14:15:22Z",
          "sentAt": "2019-08-24T14:15:22Z",
          "paidAt": "2019-08-24T14:15:22Z",
          "writtenOffAt": "2019-08-24T14:15:22Z",
          "failedAt": "2019-08-24T14:15:22Z",
          "failureReason": "string",
          "createdAt": "2019-08-24T14:15:22Z",
          "updatedAt": "2019-08-24T14:15:22Z"
        },
        "invoice": {
          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
          "invoiceRunId": "d023feec-6ce3-4d83-8326-53006f2d50e7",
          "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",
          "operationalContextId": "a3f64ce2-1602-4028-b89f-abb2bb8c71bc",
          "contractId": "dbf32426-cf38-4818-9c6e-3230d889fa51",
          "recipientAgentId": "9857c18a-555f-4729-b9ab-629537b29cdc",
          "recipientAgentName": "string",
          "billingAccountId": "56a302e4-9416-417d-adcf-22ac99649ba3",
          "documentKind": "invoice",
          "creditedInvoiceId": "74ebea99-ce39-4315-8d5b-103e18e641e4",
          "billingStream": "contractual",
          "requestedInvoiceDate": "2019-08-24",
          "requestedDueDate": "2019-08-24",
          "paymentTermsDays": 0,
          "invoiceNumber": 1,
          "status": "created",
          "currency": "SEK",
          "totalNetMinorUnits": -9007199254740991,
          "totalVatMinorUnits": -9007199254740991,
          "totalGrossMinorUnits": -9007199254740991,
          "externalReference": "string",
          "issuedInvoiceNumber": "string",
          "issuedInvoiceDate": "2019-08-24",
          "dueDate": "2019-08-24",
          "issuedTotalGrossMinorUnits": -9007199254740991,
          "paymentReference": "string",
          "paymentReferenceType": "ocr",
          "documentUrl": "string",
          "balanceMinorUnits": -9007199254740991,
          "overdue": true,
          "approvedAt": "2019-08-24T14:15:22Z",
          "sentAt": "2019-08-24T14:15:22Z",
          "paidAt": "2019-08-24T14:15:22Z",
          "writtenOffAt": "2019-08-24T14:15:22Z",
          "failedAt": "2019-08-24T14:15:22Z",
          "failureReason": "string",
          "createdAt": "2019-08-24T14:15:22Z",
          "updatedAt": "2019-08-24T14:15:22Z"
        },
        "appliedMinorUnits": 0
      }
    }
  ]
}
```
