> ## Documentation Index
> Fetch the complete documentation index at: https://alguna.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Credit Note

Retrieve a credit note by its ID.

<ParamField path="id" type="string" required>
  The credit note ID.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl https://api.alguna.io/credit-notes/cn_xyz789 \
    -H "Authorization: Bearer YOUR_API_KEY"
  ```

  ```javascript Node.js theme={null}
  const creditNote = await alguna.creditNotes.get('cn_xyz789');
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "id": "cn_xyz789",
    "accountId": "acc_abc123",
    "invoiceId": "inv_def456",
    "status": "issued",
    "applyDate": "2024-01-20T10:00:00Z",
    "creditDate": "2024-01-20T10:00:00Z",
    "currency": "USD",
    "description": "Service credit for downtime",
    "lineItems": [
      {
        "description": "Service credit",
        "unitPrice": "100.00",
        "quantity": "1",
        "total": "100.00"
      }
    ],
    "subtotal": "100.00",
    "tax": "0.00",
    "total": "100.00",
    "isPdfAvailable": true,
    "createdAt": "2024-01-20T10:00:00Z",
    "updatedAt": "2024-01-20T12:00:00Z"
  }
  ```
</ResponseExample>
