# Salary raise

`POST https://api.fiscalisto.com/v1/employee_raises`

A raise for several employees at once, like «Aumento de sueldo» in Nómina › Empleados in the app: percent (percentage), amount (more pesos per day) or daily_salary (a new salary). Each employee keeps their integration factor (SDI ÷ salary), and the new SDI is recorded as a salary change dated effective_date in Movimientos del IMSS, to be filed no later than imss_deadline (5 business days, article 34 of the Ley del Seguro Social). It applies from today or earlier; periods already stamped since then are paid with the back pay in the incidents. If an employee can't get it (it isn't a raise, it falls below the minimum wage, they weren't working that day), it answers 400 and changes no one; dry_run true says how each one would end up, with its error, without saving.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `Idempotency-Key` | header |  | 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). |

## Body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `issuer` | string |  | The issuer (iss_…). It can be left out if the key or the account has only one. |
| `employees` | array of string |  | The employees (emp_…). Without employees, everyone working on effective_date. (up to 5000) |
| `percent` | number |  | Raise as a percentage: 5 is 5%. (greater than 0 and up to 1000) |
| `amount` | number |  | Raise in pesos per day. (greater than 0 and up to 100000) |
| `daily_salary` | number |  | A new daily salary, the same for everyone. (greater than 0 and up to 200000) |
| `effective_date` | string |  | From when it applies, today or earlier (today by default). It's the date of the salary change. |
| `dry_run` | boolean |  | true: says how each employee would end up, without saving anything. (default false) |

Example:

```json
{
  "percent": 5,
  "effective_date": "2026-11-16"
}
```

## With the TypeScript SDK

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

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

const employeeRaise = await fiscalisto.employees.giveRaise({ percent: 5, effective_date: "2026-11-16" }, { idempotencyKey: "pedido-A-1042" });
```

## With the Python SDK

```python
from fiscalisto import Fiscalisto

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

employee_raise = fiscalisto.employees.give_raise({"percent": 5, "effective_date": "2026-11-16"}, idempotency_key="pedido-A-1042")
```

## With the PHP SDK

```php
<?php

use Fiscalisto\Fiscalisto;

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

$employeeRaise = $fiscalisto->employees->giveRaise([
    'percent' => 5,
    'effective_date' => '2026-11-16',
], ['idempotency_key' => 'pedido-A-1042']);
```

## With the .NET SDK

```csharp
using Fiscalisto;

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

var employeeRaise = await fiscalisto.Employees.GiveRaiseAsync(new CreateEmployeeRaiseParams
{
    Percent = 5,
    EffectiveDate = "2026-11-16",
}, new RequestOptions { IdempotencyKey = "pedido-A-1042" });
```

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

	employeeRaise, err := client.Employees.GiveRaise(ctx, &fiscalisto.CreateEmployeeRaiseParams{
		Percent:       fiscalisto.Float64(5),
		EffectiveDate: fiscalisto.String("2026-11-16"),
	}, fiscalisto.WithIdempotencyKey("pedido-A-1042"))
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", *employeeRaise)
}
```

## With the Java SDK

```java
import com.fiscalisto.FiscalistoClient;
import com.fiscalisto.RequestOptions;
import com.fiscalisto.model.CreateEmployeeRaiseParams;

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

var employeeRaise = fiscalisto.employees().giveRaise(new CreateEmployeeRaiseParams()
        .setPercent(5)
        .setEffectiveDate("2026-11-16"), RequestOptions.idempotencyKey("pedido-A-1042"));
System.out.println(employeeRaise);
```

## Response 200

OK.

A `EmployeeRaise` object:

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `object` | `"employee_raise"` | 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 | iss_… |
| `applied` | boolean | yes | false with dry_run: nothing was saved. |
| `effective_date` | string | yes | From when it applies: the date of the salary change. |
| `imss_deadline` | string | yes | The last day to file the changes with the IMSS (5 business days). |
| `employees` | array of object | yes | Each employee in the raise. |
| `employees[].employee` | string | yes | emp_… |
| `employees[].number` | string | yes | Their employee number. |
| `employees[].name` | string | yes | Its name. |
| `employees[].daily_salary_before` | number | yes | Their previous daily salary. |
| `employees[].daily_salary` | number | yes | Their new daily salary. |
| `employees[].integrated_daily_salary_before` | number | yes | Their previous SDI (the fixed part). |
| `employees[].integrated_daily_salary` | number | yes | Their new SDI, with the same integration factor. |
| `employees[].error` | string or null | yes | Why they can't receive the raise, or null. |

```json
{
  "object": "employee_raise",
  "livemode": true,
  "issuer": "iss_OufpKqnrvx9p",
  "applied": true,
  "effective_date": "2026-11-16",
  "imss_deadline": "2026-11-23",
  "employees": [
    {
      "employee": "emp_OufpKqnrvx9p3RxmD1RIDgEHzKYPYnYBlV",
      "number": "7",
      "name": "ANA LÓPEZ PÉREZ",
      "daily_salary_before": 400,
      "daily_salary": 420,
      "integrated_daily_salary_before": 418.36,
      "integrated_daily_salary": 439.28,
      "error": null
    }
  ]
}
```

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