Skip to content

FISCALISTO / API / REFERENCE

Net to gross · Payroll

Open in ChatGPTOpen in ClaudeOpen in Cursor
POST
/v1/payroll/net_to_gross

The daily salary and the SDI whose ordinary receipt for a full period pays the net you ask for, with today's ISR and IMSS, like «Calcular desde el neto» on each employee in the app. With employee it takes their pay frequency and benefits; without it, those you send or the legal ones. Without absences, incidents or deductions like Infonavit or loans. It saves nothing: to use it, update the employee.

Authorization

bearerAuth
headerAuthorizationBearer <key>

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

Headers

Idempotency-Key?string

Optional (the SDKs send it on their own). If the response is lost, repeat the request with the same value within 24 hours: it answers the same, with idempotent-replayed: true, and doesn't do it twice (it doesn't create, send emails or charge).

Length1 <= length <= 255

Request body

application/json
  1. body
net*number

The net you want to pay for a full period, in pesos.

Range0 < value <= 10000000
employee?string

An employee (emp_…): takes their pay frequency, zone and benefits (aguinaldo, vacation premium, seniority, vouchers and savings fund), and their SDI ÷ salary factor if they have them.

periodicity?string

02 weekly, 03 every 14 days, 04 every two weeks or 05 monthly. Without employee, required.

One of"02""03""04""05"
border_zone?boolean

In the northern border free zone (its minimum wage).

start_date?string

Hire date: the vacation days for their seniority.

Pattern^\d{4}-\d{2}-\d{2}$
aguinaldo_days?integer

Days of aguinaldo per year (at least 15).

Range15 <= value <= 365
vacation_premium?number

Vacation premium as a fraction (at least 0.25).

Range0.25 <= value <= 5
pantry_vouchers?number

Grocery vouchers per month.

Range0 <= value <= 1000000
savings_fund_rate?number

Savings fund as a fraction of the salary (up to 0.13).

Range0 <= value <= 0.13

Response body

OK.

application/json
  1. response

Net to gross: the daily salary whose ordinary receipt for a full period pays a net, without absences, incidents or deductions such as Infonavit or loans. It saves nothing.

object*string

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

employee*|

The employee (emp_…) whose benefits it used, or null.

periodicity*string

02 weekly, 03 biweekly (14 days), 04 semimonthly or 05 monthly.

net_requested*number

The net requested.

daily_salary*number

The daily salary whose receipt pays at least that net (rounded up to the cent).

integrated_daily_salary*number

Their integrated daily salary (SDI) with their benefits factor.

period*

The period it was calculated with (the current one for the frequency).

days*number

The days paid in a full period.

perceptions*number

The receipt's total earnings.

deductions*number

Total deductions (ISR, IMSS, savings fund).

taxes_withheld*number

ISR withheld.

other_payments*number

Other payments.

net*number

The receipt's net with that salary.

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 POST 'https://api.fiscalisto.com/v1/payroll/net_to_gross' \  -H 'Authorization: Bearer fk_test_…' \  -H 'Idempotency-Key: pedido-A-1042' \  -H 'Content-Type: application/json' \  -d '{  "employee": "emp_OufpKqnrvx9p3RxmD1RIDgEHzKYPYnYBlV",  "net": 8000}'
{  "object": "net_to_gross",  "employee": "emp_OufpKqnrvx9p3RxmD1RIDgEHzKYPYnYBlV",  "periodicity": "04",  "net_requested": 8000,  "daily_salary": 620.46,  "integrated_daily_salary": 652.79,  "period": {    "start": "2026-11-16",    "end": "2026-11-30"  },  "days": 15,  "perceptions": 9306.9,  "deductions": 1306.82,  "taxes_withheld": 1056.21,  "other_payments": 0,  "net": 8000.08}

Was this page helpful?