# Get a month's DIOT

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

What was actually paid to each supplier in the month (PUE invoices and payment complements received), with their credit notes as returns, by type of operation. It comes from the received invoices brought by the SAT downloads. From January 2025 (2025 format).

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `month` | query | yes | The month (YYYY-MM). |
| `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 diot = await fiscalisto.accounting.diot({ month: "2026-10" });
```

## With the Python SDK

```python
from fiscalisto import Fiscalisto

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

diot = fiscalisto.accounting.diot({"month": "2026-10"})
```

## With the PHP SDK

```php
<?php

use Fiscalisto\Fiscalisto;

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

$diot = $fiscalisto->accounting->diot(['month' => '2026-10']);
```

## With the .NET SDK

```csharp
using Fiscalisto;

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

var diot = await fiscalisto.Accounting.DiotAsync(new GetDiotParams { Month = "2026-10" });
```

## 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()

	diot, err := client.Accounting.Diot(ctx, &fiscalisto.GetDiotParams{Month: "2026-10"})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", *diot)
}
```

## With the Java SDK

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

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

var diot = fiscalisto.accounting().diot(new GetDiotParams().setMonth("2026-10"));
System.out.println(diot);
```

## Response 200

OK.

A `Diot` object:

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `object` | `"diot"` | yes | What kind of object it is («invoice», «customer»…). |
| `livemode` | boolean | yes | true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT. |
| `issuer` | string | yes | The issuer. |
| `month` | string | yes | The month (YYYY-MM). |
| `proportion` | number | yes | The month's creditable IVA proportion for shared expenses (1 if it doesn't apply it). |
| `lines` | array of object | yes | One line per supplier and operation type, with what was paid in the month. |
| `lines[].tax_id` | string | yes | RFC (Rfc), 12 characters for a persona moral and 13 for a persona física. |
| `lines[].name` | string or null | yes | Name. |
| `lines[].third_party_type` | `15`, `04`, `05` | yes | Third-party type: 04 domestic, 05 foreign, 15 global. |
| `lines[].operation_type` | `85`, `87`, `02`, `03`, `06`, `07` | yes | Operation type: 02 sale of goods, 03 professional services, 06 temporary use or enjoyment, 07 import, 85 other, 87 global operations. |
| `lines[].paid` | object | yes | What was paid in the month per rate, in pesos, with its IVA. |
| `lines[].paid.base_16` | number | yes | Value of acts at 16 %. |
| `lines[].paid.base_8` | number | yes | Value of acts at 8 % (border region). |
| `lines[].paid.base_0` | number | yes | Value of acts at 0 %. |
| `lines[].paid.exempt` | number | yes | Value of exempt acts. |
| `lines[].paid.not_taxable` | number | yes | Value of acts not subject to IVA. |
| `lines[].paid.vat` | number | yes | The IVA on those acts. |
| `lines[].returns` | object | yes | The month's returns (credit notes), per rate. |
| `lines[].returns.base_16` | number | yes | Value of acts at 16 %. |
| `lines[].returns.base_8` | number | yes | Value of acts at 8 % (border region). |
| `lines[].returns.base_0` | number | yes | Value of acts at 0 %. |
| `lines[].returns.exempt` | number | yes | Value of exempt returns. |
| `lines[].returns.not_taxable` | number | yes | Value of acts not subject to IVA. |
| `lines[].returns.vat` | number | yes | The IVA on those acts. |
| `lines[].blacklisted` | boolean | yes | The supplier is on the definitive 69-B list: check whether you deduct its CFDIs. |
| `warnings` | array of string | yes | What is worth checking before filing it. |

```json
{
  "object": "diot",
  "livemode": false,
  "issuer": "iss_OufpKqnrvx9p",
  "month": "2026-09",
  "proportion": 1,
  "lines": [
    {
      "tax_id": "CACX7605101P8",
      "name": "XOCHILT CASAS CHAVEZ",
      "third_party_type": "04",
      "operation_type": "03",
      "paid": {
        "base_16": 12000,
        "base_8": 0,
        "base_0": 0,
        "exempt": 0,
        "not_taxable": 0,
        "vat": 1920
      },
      "returns": {
        "base_16": 0,
        "base_8": 0,
        "base_0": 0,
        "exempt": 0,
        "not_taxable": 0,
        "vat": 0
      },
      "blacklisted": false
    }
  ],
  "warnings": []
}
```

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