# Credit notes

> Credit notes issued in your accounting provider when a payment is refunded. Read-only.

Source: https://docs.borga.is/api/credit-notes

A succeeded [refund](/api/refunds) against a payment whose invoice was booked in PayDay or DK+ produces a credit note there. Borga records it and emits `credit_note.created`.

**The credit note object**

- `id` (string): Prefixed `cn_`.
- `invoice` (string): The invoice being credited.
- `amount` (integer): - `currency` (string) <Param name="reason" type="enum | null">`duplicate`, `fraudulent`, `order_change`, `product_unsatisfactory` or `other`.
- `status` (enum): `pending`, `issued`, `failed` or `void`.
- `accounting_provider` (enum | null): `payday` or `dk`.
- `external_credit_note_id` (string | null): The provider's id.
- `created_at` (timestamp): ## Retrieve a credit note `GET /v1/credit_notes/:id` ## List credit notes `GET /v1/credit_notes` Returns up to `limit` credit notes without a cursor. **Query parameters** - `invoice` (string) <Param name="limit" type="integer" default="25">Up to 100.

```bash
curl "https://api.borga.is/v1/credit_notes?invoice=inv_3Ef5Gh7Ij9Kl1Mn3Op5Qr7St" \
  -H "Authorization: Bearer sk_test_…"
```
