> 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.

# 11 · Sectores Educativos

Colegios y universidades con crédito fiscal. La cabecera identifica al
**estudiante** y al **periodo**; sin detalle sectorial. Usa
`invoice_type: "education"`.

## Cabecera (`data`)

| Campo               | Tipo   | Obligatorio | Qué significa                |
| ------------------- | ------ | ----------- | ---------------------------- |
| `nombre_estudiante` | string | Sí          | Estudiante al que se factura |
| `periodo_facturado` | string | Sí          | Periodo, formato `2026-10`   |

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

Sin campos sectoriales.

#### SDK TypeScript

```typescript
const factura = await supay.invoices.emit({
  point_of_sale_id: pos.id,
  customer: {
    document_type: "ci",
    document_number: "9988776",
    name: "Padre de Familia",
  },
  items: [
    {
      sku: "PENSION-OCT",
      description: "Pensión escolar octubre",
      codigo_producto_sin: 5412100,
      unidad_medida: 58,
      quantity: 1,
      price: 900,
    },
  ],

  // Educación: tipo + sector 11 con estudiante y periodo
  invoice_type: "education",
  sector: "11",
  data: {
    nombre_estudiante: "Juan Pérez",
    periodo_facturado: "2026-10",
  },
});
```

#### 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": "9988776",
      "name": "Padre de Familia"
    },
    "items": [
      {
        "sku": "PENSION-OCT",
        "description": "Pensión escolar octubre",
        "codigo_producto_sin": 5412100,
        "unidad_medida": 58,
        "quantity": 1,
        "price": 900
      }
    ],
    "invoice_type": "education",
    "sector": "11",
    "data": {
      "nombre_estudiante": "Juan Pérez",
      "periodo_facturado": "2026-10"
    }
  }' | jq '{id, status}'
```

## Errores típicos

| Situación                                     | Respuesta              |
| --------------------------------------------- | ---------------------- |
| Sin `nombre_estudiante` / `periodo_facturado` | `400 VALIDATION_ERROR` |