Skip to content

FISCALISTO / API / REFERENCE

ICSOE and SISUB returns for a four-month period · Payroll

Open in ChatGPTOpen in ClaudeOpen in Cursor
GET
/v1/repse_returns/{period}

What is filed for the four-month period (YYYY-1 January to April, YYYY-2 May to August, YYYY-3 September to December) by the 17th of the following month, or the next business day: per contract, its workers with NSS, CURP and last contribution base salary (ICSOE, LSS art. 15-A), and per worker and two-month period the earnings, the salary capped at 25 UMA, the 5% contribution and their credit's repayment (SISUB, Ley del Infonavit art. 29 Bis), calculated from the stamped receipts. files has the files to upload: the three for SISUB and one ICSOE file per contract. problems says what's missing to file them.

Authorization

bearerAuth
headerAuthorizationBearer <key>

Your secret key: fk_test_… in test mode, fk_live_… in production. Desarrolladores › Llaves.

Path parameters

period*string

The object's id.

Query parameters

issuer?string

The issuer (iss_…). It can be left out if the key or the account has only one.

Response body

OK.

application/json
  1. response

The ICSOE (IMSS, LSS art. 15-A) and the SISUB (Infonavit, Ley del Infonavit art. 29 Bis) of a four-month period, built from the contracts and the stamped receipts. They can't be sent by API: they're uploaded, signed with the e.firma, on each portal.

object*string

What kind of object it is («invoice», «customer»…).

livemode*boolean

true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT.

issuer*string

The issuer (iss_…).

period*string

The four-month period: YYYY-1 (January to April), YYYY-2 or YYYY-3.

start_date*string

First day of the period.

end_date*string

Last day of the period.

due_date*string

Last day to file them: January, May or September 17, or the next business day (CFF art. 12).

contracts*array<>

The contracts in force in the period.

workers*array<>

Each worker per two-month period (the SISUB worker detail).

totals*

What the SISUB obligated-party file adds up.

problems*array<string>

What is missing or wrong before filing them; empty if nothing.

files*array<>

The 3 SISUB CSVs (obligated party, contracts, workers) and one ICSOE worker CSV per contract.

Errors

  • The issuer is archived and no longer stamps. Its documents can still be read and canceled.

  • The account has several issuers and the request doesn't say which: send issuer (iss_…).

  • The object belongs to the other mode: an fk_test_ key only sees test data and an fk_live_ key only live data.

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

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

  • This key can't use that issuer.

  • There is no such issuer in the account (or it belongs to the other mode).

  • There's no object with that id (or it belongs to another issuer or the other mode).

Plus those of any call (key, fields, limits): Errors. They all carry code, message and, when it's about a field, param.

curl -X GET 'https://api.fiscalisto.com/v1/repse_returns/string' \  -H 'Authorization: Bearer fk_test_…'
{  "object": "repse_return",  "livemode": false,  "issuer": "iss_OufpKqnrvx9p",  "period": "2026-3",  "start_date": "2026-09-01",  "end_date": "2026-12-31",  "due_date": "2027-01-18",  "contracts": [    {      "contract": "rpc_OufpKqnrvx9p4Hc8Lw2Tn6Vq0aRzXs3M1d",      "number": "2026001",      "workers": [        {          "employee": "emp_OufpKqnrvx9p7Gm2Kd9Rw4Tn1aZqXs6M3c",          "name": "MARÍA PÉREZ LÓPEZ",          "nss": "12345678903",          "curp": "PELM900101MNLRPR09",          "sbc": 532.5        }      ]    }  ],  "workers": [    {      "employee": "emp_OufpKqnrvx9p7Gm2Kd9Rw4Tn1aZqXs6M3c",      "name": "MARÍA PÉREZ LÓPEZ",      "nss": "12345678903",      "bimester": 5,      "contracts": [        "2026001"      ],      "variable_perceptions": 0,      "fixed_perceptions": 30000,      "disability_days": 0,      "non_integrable_perceptions": 0,      "capped_salary": 532.5,      "infonavit_contribution": 1624.13,      "has_credit": false,      "amortization": 0    }  ],  "totals": {    "contributions_without_credit": 1624.13,    "contributions_with_credit": 0,    "amortizations": 0  },  "problems": [],  "files": [    {      "name": "SISUB_2026-3_sujeto_obligado.csv",      "system": "sisub",      "content": "RFC,Razon social,...\r\n"    }  ]}

Was this page helpful?