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

# 12 · Comercialización de Hidrocarburos

Estaciones y distribuidoras, con crédito fiscal. La cabecera lleva
**autorización, vehículo y envase**; sin detalle sectorial.

## Cabecera (`data`)

| Campo                    | Tipo   | Obligatorio | Qué significa                  |
| ------------------------ | ------ | ----------- | ------------------------------ |
| `codigo_autorizacion_sc` | string | Ver perfil  | Autorización SC de la estación |
| `codigo_pais`            | string | Ver perfil  | País de la operación           |
| `observacion`            | string | No          | Observación libre              |
| `placa_vehiculo`         | string | Ver perfil  | Placa del vehículo abastecido  |
| `tipo_envase`            | string | Ver perfil  | Tipo de envase                 |

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

Sin campos sectoriales.

#### SDK TypeScript

```typescript
const factura = await supay.invoices.emit({
  point_of_sale_id: pos.id,
  customer: {
    document_type: "nit",
    document_number: "3456789",
    name: "Transporte SRL",
  },
  items: [
    {
      sku: "GASOLINA",
      description: "Gasolina especial",
      codigo_producto_sin: 5113100,
      unidad_medida: 58,
      quantity: 200,
      price: 3.74,
    },
  ],
  sector: "12",
  data: {
    placa_vehiculo: "ABC-123",
    tipo_envase: "Tanque",
  },
});
```

#### 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": "nit",
      "document_number": "3456789",
      "name": "Transporte SRL"
    },
    "items": [
      {
        "sku": "GASOLINA",
        "description": "Gasolina especial",
        "codigo_producto_sin": 5113100,
        "unidad_medida": 58,
        "quantity": 200,
        "price": 3.74
      }
    ],
    "sector": "12",
    "data": {
      "placa_vehiculo": "ABC-123"
    }
  }' | jq '{id, status}'
```