# View the customers charged IEPS separately

`GET https://api.fiscalisto.com/v1/accounting/ieps_customers`

The quarterly list of the customers the issuer charged IEPS to separately (LIEPS article 19, section II, third paragraph): alcoholic beverages, energy drinks, flavored beverages and high-calorie foods, from its income invoices not cancelled. The general public and foreigners aren't included. It's filed each quarter in the MULTI-IEPS, Annex 1 (RMF 2026 rule 5.2.2), in the month after the quarter.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `year` | query | yes | The year (YYYY), from 2015 to the current one. |
| `quarter` | query |  | Only that quarter (1 to 4); by default, all four. |
| `issuer` | query |  | The issuer (iss_…). It can be left out if the key or the account has only one. |

## With the TypeScript SDK

```ts
import { Fiscalisto } from "fiscalisto";

// La llave viene de FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

const iepsCustomers = await fiscalisto.accounting.iepsCustomers({ year: "2026" });
```

## With the Python SDK

```python
from fiscalisto import Fiscalisto

# La llave viene de FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

ieps_customers = fiscalisto.accounting.ieps_customers({"year": "2026"})
```

## With the PHP SDK

```php
<?php

use Fiscalisto\Fiscalisto;

// La llave viene de FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

$iepsCustomers = $fiscalisto->accounting->iepsCustomers(['year' => '2026']);
```

## With the .NET SDK

```csharp
using Fiscalisto;

// La llave viene de FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var iepsCustomers = await fiscalisto.Accounting.IepsCustomersAsync(new GetIepsCustomersParams { Year = "2026" });
```

## With the Go SDK

```go
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// La llave viene de FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	iepsCustomers, err := client.Accounting.IEPSCustomers(ctx, &fiscalisto.GetIepsCustomersParams{Year: "2026"})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", *iepsCustomers)
}
```

## With the Java SDK

```java
import com.fiscalisto.FiscalistoClient;
import com.fiscalisto.model.GetIepsCustomersParams;

// La llave viene de FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var iepsCustomers = fiscalisto.accounting().iepsCustomers(new GetIepsCustomersParams().setYear("2026"));
System.out.println(iepsCustomers);
```

## Response 200

OK.

A `IepsCustomers` object:

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `object` | `"ieps_customers"` | yes | What kind of object it is («invoice», «customer»…). |
| `livemode` | boolean | yes | false in test mode. |
| `issuer` | string | yes | The issuer (iss_…). |
| `year` | integer | yes | The year. (from -9007199254740991 to 9007199254740991) |
| `quarters` | array of object | yes | Each quarter asked for, also those with no customers. |
| `quarters[].quarter` | integer | yes | The quarter, 1 to 4. (from -9007199254740991 to 9007199254740991) |
| `quarters[].due_month` | string | yes | The month (YYYY-MM) it's filed in the MULTI-IEPS: the one after the quarter. |
| `quarters[].customers` | array of object | yes | The customers, the one with the most IEPS first. |
| `quarters[].customers[].tax_id` | string | yes | The customer's RFC. |
| `quarters[].customers[].name` | string or null | yes | Their name as their invoices show it. |
| `quarters[].customers[].invoices` | integer | yes | How many of the quarter's invoices carry that IEPS. (from -9007199254740991 to 9007199254740991) |
| `quarters[].customers[].ieps` | number | yes | The IEPS charged to them in the quarter, in pesos. |
| `quarters[].total` | number | yes | Everyone's IEPS, in pesos. |

```json
{
  "object": "ieps_customers",
  "livemode": false,
  "issuer": "iss_OufpKqnrvx9p",
  "year": 2026,
  "quarters": [
    {
      "quarter": 1,
      "due_month": "2026-04",
      "customers": [
        {
          "tax_id": "CACX7605101P8",
          "name": "XOCHILT CASAS CHAVEZ",
          "invoices": 3,
          "ieps": 221.64
        }
      ],
      "total": 221.64
    }
  ]
}
```

## Errors

- `feature_not_in_plan` (403): Live, this part of the API (inventario, portal de proveedores, pedidos, comprobación de gastos) follows the empresa's plan, as in the app: it comes with Operaciones (added to any paid plan; included in Corporativo). The books (the /v1/accounting routes except DIOT, cross checks, IVA refunds and fixed assets) come with Contabilidad (added to Independiente, Emprendedor or Negocio; included in Despacho and Corporativo): without it, changing the books answers this error, and reading them works only up to the last month it had it. Add either in Ajustes › Plan y pagos; test mode has everything.
- `issuer_archived` (400): The issuer is archived and no longer stamps. Its documents can still be read and canceled.
- `issuer_linked_empresa` (403): That issuer is an empresa of the app connected to your account: through the API it only offers its Portal de proveedores (/v1/portal_suppliers and /v1/supplier_invoices) and, once someone who may pay suppliers and change Configurar pagos turned them on, its supplier payouts (/v1/payouts and /v1/payroll_payouts). It also stops when whoever connected it (or turned its payouts on) no longer has that permission in the empresa: message_es says which. Do everything else in the app.
- `issuer_missing` (404): There is no such issuer in the account (or it belongs to the other mode).
- `issuer_not_allowed` (403): This key can't use that issuer.
- `issuer_required` (400): The account has several issuers and the request doesn't say which: send `issuer` (iss_…).
- `livemode_mismatch` (400): The object belongs to the other mode: an fk_test_ key only sees test data and an fk_live_ key only live data.

Plus those of any call (key, fields, limits): https://fiscalisto.com/en/docs/api/errores.md.
