> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.supay.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.supay.dev/_mcp/server.

# 48 · Nota Crédito Débito ICE

Ajustes sobre ICE por DocumentoAjuste. Como el
[47 · Descuentos](/sectores/documentos-de-ajuste/47-nota-descuentos) más los **datos ICE** (marca,
alícuotas y montos por línea). Exige `reference_invoice_id`.

## Cabecera (`data`)

| Campo                            | Tipo       | Obligatorio | Qué significa                  |
| -------------------------------- | ---------- | ----------- | ------------------------------ |
| `monto_total_devuelto`           | number     | Ver perfil  | Total devuelto                 |
| `monto_descuento_credito_debito` | number     | Ver perfil  | Descuento del ajuste           |
| `monto_efectivo_credito_debito`  | number     | No          | Override del crédito calculado |
| `numero_nota_credito_debito`     | string/int | Ver perfil  | Número del documento           |

## Detalle (`items[].data`)

| Campo                                           | Tipo   | Obligatorio | Para qué sirve         |
| ----------------------------------------------- | ------ | ----------- | ---------------------- |
| `marca_ice`                                     | string | Ver perfil  | Marca del producto ICE |
| `cantidad_ice`                                  | number | Ver perfil  | Cantidad base ICE      |
| `precio_neto_venta_ice`                         | number | Ver perfil  | Precio neto base ICE   |
| `alicuota_iva`                                  | number | Ver perfil  | Alícuota IVA           |
| `alicuota_especifica` / `alicuota_porcentual`   | number | Ver perfil  | Alícuotas ICE          |
| `monto_ice_especifico` / `monto_ice_porcentual` | number | Ver perfil  | ICE de la línea        |

#### SDK TypeScript

```typescript
const nota = await supay.invoices.emit({
  point_of_sale_id: pos.id,
  customer: {
    document_type: "CI",
    document_number: "9971522",
    name: "Ramiro",
  },
  invoice_type: "credit_note",
  sector: "48",
  reference_invoice_id: "b61d67ed-7962-4989-958f-8ccc01979d64",

  // Línea con sus datos ICE
  items: [
    {
      sku: "CERVEZA",
      quantity: 48,
      price: 8,
      data: {
        marca_ice: "Marca X",
        monto_ice_porcentual: 30.72,
      },
    },
  ],

});
```

#### REST API

```bash
curl -s -X POST "$BASE/v1/invoices/emit" \
  -H "X-API-Key: $KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "point_of_sale_id": "'$POS'",
    "customer": {
      "document_type": "CI",
      "document_number": "9971522",
      "name": "Ramiro"
    },
    "invoice_type": "credit_note",
    "sector": "48",
    "reference_invoice_id": "b61d67ed-7962-4989-958f-8ccc01979d64",
    "items": [
      {
        "sku": "CERVEZA",
        "quantity": 48,
        "price": 8,
        "data": {
          "marca_ice": "Marca X"
        }
      }
    ]
  }' | jq '{id, status}'
```