# Vietnam Rooftop Solar ROI API

> Estimate rooftop solar output by province (EVN PVout 2026), bill savings on EVN tariffs, surplus sales up to 50 % (Decree 243/2026), payback, NPV and IRR.

- Endpoint: `GET | POST https://apibox.io.vn/v1/vn-solar-roi`
- Category: Data & JSON
- HTML docs: https://apibox.io.vn/docs/vn-solar-roi/ (Vietnamese: https://apibox.io.vn/vi/docs/vn-solar-roi/)
- Online tool: https://apibox.io.vn/tools/vn-solar-roi/
- Authentication: `Authorization: Bearer <API key>` or `X-API-Key: <API key>` (free key: https://apibox.io.vn/dashboard/#signup)

Give the `province` (34 provinces; old pre-2025 names are mapped), the size (`kwp`, or `roof_m2` at 5.5 m² per kWp) and the consumption (`monthly_kwh` as one number or 12 values, or `monthly_bill` for households). Monthly generation uses EVN’s theoretical PVout coefficients for 2026 (kWh/kWp per month for each province, the values used by law to cap surplus sales), with an `orientation` factor.

Self-consumption is the part of generation used during the day (`daytime_share`, default 35 % of consumption for households, 65 % for businesses). Bill savings come from the vn-electricity engine (5-tier household tariff from 1 November 2026, VAT included; business savings at the normal-hour rate). Surplus is sold up to 50 % of the theoretical output (Decree 58/2025 Article 14 as amended by Decree 243/2026) at the previous year’s average market energy price, 844.8 đ/kWh for 2026 (`surplus_price` to override).

With `cost` (or `cost_per_kwp`; otherwise an assumed 11 million đ/kWp is flagged) the result gives payback, NPV (`discount_percent`, default 8) and IRR over `years` (default 25) with degradation and O&M, plus the notification or registration procedure for the size and connection.

## Parameters

| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
| `province` | body|query | string | yes |  | Province or city (34 after 1/7/2025; old names accepted). |
| `kwp` | body|query | number | no |  | Installed panel capacity (kWp). |
| `roof_m2` | body|query | number | no |  | Usable roof area instead of kwp (`m2_per_kwp`, default 5.5). |
| `monthly_kwh` | body|query | number | no |  | Monthly consumption: one number or an array of 12. |
| `monthly_bill` | body|query | number | no |  | Household monthly bill (VND) instead of monthly_kwh. |
| `customer` | body|query | string | no | `household` | `household`, `business` or `production` (with `voltage`). |
| `orientation` | body|query | string | no | `south` | south, southeast, southwest, east, west, flat, northeast, northwest, north. |
| `daytime_share` | body|query | number | no |  | Share of consumption during sunshine hours (%). |
| `sell_surplus` | body|query | boolean | no | `true` | Sell surplus to the grid. |
| `sell_percent` | body|query | number | no | `50` | Agreed cap of surplus sales (% of theoretical output). |
| `surplus_price` | body|query | number | no | `844.8` | Surplus price (đ/kWh, excl. VAT). |
| `cost` | body|query | number | no |  | Total investment (VND); or `cost_per_kwp`. |
| `connection` | body|query | string | no | `low_voltage` | `low_voltage` or `medium_voltage` (for the procedure); `grid_connected=false` for off-grid. |
| `years` | body|query | number | no | `25` | Analysis period; also `degradation_percent` (0.5), `om_percent` (1), `tariff_escalation_percent` (0), `discount_percent` (8), `cash_flow=true`. |

## Example request

```bash
curl -X POST "https://apibox.io.vn/v1/vn-solar-roi" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"province":"Hà Nội","kwp":5,"monthly_kwh":500,"cost":60000000}'
```

## Example response

```json
{
  "province": "Hà Nội",
  "kwp": 5,
  "orientation": "south",
  "customer": "household",
  "annual": {
    "generation_kwh": 4560,
    "specific_yield_kwh_per_kwp": 912,
    "self_consumed_kwh": 2090,
    "sold_kwh": 2014,
    "curtailed_kwh": 459,
    "bill_saving": 7260689,
    "surplus_revenue": 1701426,
    "total_benefit_year1": 8362115
  },
  "investment": {
    "cost": 60000000,
    "years": 25,
    "payback_years": 7.3,
    "npv": 25449438,
    "discount_percent": 8,
    "irr_percent": 12.8
  },
  "surplus": {
    "allowed": true,
    "sell_percent_cap": 50,
    "price_vnd_per_kwh": 844.8
  },
  "procedure": {
    "en": "Low-voltage connection: file notice form 01 with the commune People’s Committee online (national public service portal or VNeID) at least 10 working days before installation",
    "ref": "NĐ 58/2025 Điều 15 khoản 2, 4 (sửa đổi bởi NĐ 243/2026)"
  },
  "months": [
    {
      "month": 6,
      "pvout_kwh_per_kwp": 105,
      "generation_kwh": 525,
      "self_consumed_kwh": 175,
      "surplus_kwh": 350,
      "sold_kwh": 263,
      "curtailed_kwh": 88,
      "consumption_kwh": 500,
      "grid_kwh_after": 325,
      "bill_before": 1450872,
      "bill_after": 843210,
      "saving": 607662,
      "surplus_revenue": 222182
    },
    "…"
  ],
  "reviewed": "2026-11-11"
}
```

## Use cases

- Quote form for solar installers’ websites
- Green-loan pre-assessment for banks
- Compare selling surplus with self-consumption only
- Explain the 2026 surplus-sale rules to households

## FAQ

### How accurate is the output?

It uses EVN’s province-level theoretical PVout; a real site can differ by ±10–15 % with shading, tilt and equipment.

### How much surplus can I sell?

Up to 50 % of the theoretical monthly output (PVout × kWp) by agreement with the buyer; until 31 December 2030 more is allowed where the grid can take it.

### Do I need a permit?

Low-voltage systems from 1 kW need an online notice to the commune People’s Committee at least 10 working days before installation; medium-voltage systems selling surplus need a registration certificate.
