# Travel and expenses

> Travel and expense reports of whoever travels or spends for the issuer: their invoices checked against the law and the policy, approval, and advances, reimbursements and returns.

When someone travels or spends for the issuer, each trip (or each month of office expenses) is an **expense report**: the person gathers their invoices, submits it, someone approves it and the balance is settled with a reimbursement or a return. They're the same as **Compras y gastos › Viáticos** in the app: what you do with the API shows there, and what's done there shows here.

Each expense is checked against the law (the caps of LISR art. 28 sec. V for meals, lodging and car rental, payments over $2,000 and gasoline, which can't be in cash, the 20% rule without invoice of RLISR art. 152) and against the issuer's policy. The report says how much is deductible, how much isn't and why, in `issues`.

When approved, its received invoices are deducted in the issuer's taxes and the report goes into the journal entries against account 107.01 **Funcionarios y empleados** (officers and employees; `employee_expenses` in [Accounting](https://fiscalisto.com/en/docs/api/contabilidad)). For a [Payroll](https://fiscalisto.com/en/docs/api/nomina) employee, what's settled «on payroll» goes on their next receipt: the travel expenses accounted for as exempt perception 050 and what they were already given as deduction 081.

## The people

Add whoever travels or spends: a Payroll employee (`employee`) or someone paid by fees (`name` and `tax_id`).

```bash tab="cURL"
curl https://api.fiscalisto.com/v1/expense_people \
  -H "Authorization: Bearer $FISCALISTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "kind": "empleado",
    "employee": "emp_OufpKqnrvx9p1",
    "email": "ana@example.com",
    "base_city": "Monterrey"
  }'
```

```ts tab="TypeScript"
import { Fiscalisto } from "fiscalisto";

// The key comes from FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

const expensePerson = await fiscalisto.expensePeople.create({
  kind: "empleado",
  employee: "emp_OufpKqnrvx9p1",
  email: "ana@example.com",
  base_city: "Monterrey",
});
```

```python tab="Python"
from fiscalisto import Fiscalisto

# The key comes from FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

expense_person = fiscalisto.expense_people.create({
    "kind": "empleado",
    "employee": "emp_OufpKqnrvx9p1",
    "email": "ana@example.com",
    "base_city": "Monterrey",
})
```

```php tab="PHP"
<?php

use Fiscalisto\Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

$expensePerson = $fiscalisto->expensePeople->create([
    'kind' => 'empleado',
    'employee' => 'emp_OufpKqnrvx9p1',
    'email' => 'ana@example.com',
    'base_city' => 'Monterrey',
]);
```

```go tab="Go"
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// The key comes from FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	expensePerson, err := client.ExpensePeople.Create(ctx, &fiscalisto.CreateExpensePersonParams{
		Kind:     "empleado",
		Employee: fiscalisto.String("emp_OufpKqnrvx9p1"),
		Email:    fiscalisto.String("ana@example.com"),
		BaseCity: fiscalisto.String("Monterrey"),
	})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(expensePerson.ID)
}
```

```java tab="Java"
import com.fiscalisto.FiscalistoClient;
import com.fiscalisto.model.CreateExpensePersonParams;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var expensePerson = fiscalisto.expensePeople().create(new CreateExpensePersonParams()
        .setKind("empleado")
        .setEmployee("emp_OufpKqnrvx9p1")
        .setEmail("ana@example.com")
        .setBaseCity("Monterrey"));
System.out.println(expensePerson.getId());
```

```csharp tab="C#"
using Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var expensePerson = await fiscalisto.ExpensePeople.CreateAsync(new CreateExpensePersonParams
{
    Kind = "empleado",
    Employee = "emp_OufpKqnrvx9p1",
    Email = "ana@example.com",
    BaseCity = "Monterrey",
});
```

Returns the person (`exp_…`). `base_city` is where they work: a trip more than 50 km from there is travel (`far` on the report). So they can upload their invoices from their phone, without an account, give them their link:

```bash tab="cURL"
curl https://api.fiscalisto.com/v1/expense_people/exp_OufpKqnrvx9p3/link \
  -H "Authorization: Bearer $FISCALISTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

```ts tab="TypeScript"
import { Fiscalisto } from "fiscalisto";

// The key comes from FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

const expensePersonLink = await fiscalisto.expensePeople.createLink("exp_OufpKqnrvx9p3");
```

```python tab="Python"
from fiscalisto import Fiscalisto

# The key comes from FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

expense_person_link = fiscalisto.expense_people.create_link("exp_OufpKqnrvx9p3")
```

```php tab="PHP"
<?php

use Fiscalisto\Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

$expensePersonLink = $fiscalisto->expensePeople->createLink('exp_OufpKqnrvx9p3');
```

```go tab="Go"
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// The key comes from FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	expensePersonLink, err := client.ExpensePeople.CreateLink(ctx, "exp_OufpKqnrvx9p3", nil)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", *expensePersonLink)
}
```

```java tab="Java"
import com.fiscalisto.FiscalistoClient;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var expensePersonLink = fiscalisto.expensePeople().createLink("exp_OufpKqnrvx9p3");
System.out.println(expensePersonLink);
```

```csharp tab="C#"
using Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var expensePersonLink = await fiscalisto.ExpensePeople.CreateLinkAsync("exp_OufpKqnrvx9p3");
```

`url` is their link: there they see only their reports. With `"renew": true` it gives a new one and the previous one stops working; `DELETE /v1/expense_people/{id}/link` turns it off.

## Open a report

One per trip (`kind` `viaje`, the default) or one per period of office expenses the company reimburses (`gastos`):

```bash tab="cURL"
curl https://api.fiscalisto.com/v1/expense_reports \
  -H "Authorization: Bearer $FISCALISTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "person": "exp_OufpKqnrvx9p3",
    "destination": "Guadalajara",
    "purpose": "Visita a clientes",
    "start_date": "2026-11-03",
    "end_date": "2026-11-05"
  }'
```

```ts tab="TypeScript"
import { Fiscalisto } from "fiscalisto";

// The key comes from FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

const expenseReport = await fiscalisto.expenseReports.create({
  person: "exp_OufpKqnrvx9p3",
  destination: "Guadalajara",
  purpose: "Visita a clientes",
  start_date: "2026-11-03",
  end_date: "2026-11-05",
});
```

```python tab="Python"
from fiscalisto import Fiscalisto

# The key comes from FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

expense_report = fiscalisto.expense_reports.create({
    "person": "exp_OufpKqnrvx9p3",
    "destination": "Guadalajara",
    "purpose": "Visita a clientes",
    "start_date": "2026-11-03",
    "end_date": "2026-11-05",
})
```

```php tab="PHP"
<?php

use Fiscalisto\Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

$expenseReport = $fiscalisto->expenseReports->create([
    'person' => 'exp_OufpKqnrvx9p3',
    'destination' => 'Guadalajara',
    'purpose' => 'Visita a clientes',
    'start_date' => '2026-11-03',
    'end_date' => '2026-11-05',
]);
```

```go tab="Go"
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// The key comes from FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	expenseReport, err := client.ExpenseReports.Create(ctx, &fiscalisto.CreateExpenseReportParams{
		Person:      "exp_OufpKqnrvx9p3",
		Destination: fiscalisto.String("Guadalajara"),
		Purpose:     fiscalisto.String("Visita a clientes"),
		StartDate:   fiscalisto.String("2026-11-03"),
		EndDate:     fiscalisto.String("2026-11-05"),
	})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(expenseReport.ID)
}
```

```java tab="Java"
import com.fiscalisto.FiscalistoClient;
import com.fiscalisto.model.CreateExpenseReportParams;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var expenseReport = fiscalisto.expenseReports().create(new CreateExpenseReportParams()
        .setPerson("exp_OufpKqnrvx9p3")
        .setDestination("Guadalajara")
        .setPurpose("Visita a clientes")
        .setStartDate("2026-11-03")
        .setEndDate("2026-11-05"));
System.out.println(expenseReport.getId());
```

```csharp tab="C#"
using Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var expenseReport = await fiscalisto.ExpenseReports.CreateAsync(new CreateExpenseReportParams
{
    Person = "exp_OufpKqnrvx9p3",
    Destination = "Guadalajara",
    Purpose = "Visita a clientes",
    StartDate = "2026-11-03",
    EndDate = "2026-11-05",
});
```

It stays `draft` (open). If they're given money before the trip, record it as an advance:

```bash tab="cURL"
curl https://api.fiscalisto.com/v1/expense_reports/exr_OufpKqnrvx9p4/movements \
  -H "Authorization: Bearer $FISCALISTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "kind": "anticipo", "amount": 3000, "date": "2026-11-02" }'
```

```ts tab="TypeScript"
import { Fiscalisto } from "fiscalisto";

// The key comes from FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

const expenseReport = await fiscalisto.expenseReports.createMovement("exr_OufpKqnrvx9p4", {
  kind: "anticipo",
  amount: 3000,
  date: "2026-11-02",
});
```

```python tab="Python"
from fiscalisto import Fiscalisto

# The key comes from FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

expense_report = fiscalisto.expense_reports.create_movement("exr_OufpKqnrvx9p4", {
    "kind": "anticipo",
    "amount": 3000,
    "date": "2026-11-02",
})
```

```php tab="PHP"
<?php

use Fiscalisto\Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

$expenseReport = $fiscalisto->expenseReports->createMovement('exr_OufpKqnrvx9p4', [
    'kind' => 'anticipo',
    'amount' => 3000,
    'date' => '2026-11-02',
]);
```

```go tab="Go"
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// The key comes from FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	expenseReport, err := client.ExpenseReports.CreateMovement(ctx, "exr_OufpKqnrvx9p4", &fiscalisto.CreateExpenseMovementParams{
		Kind:   "anticipo",
		Amount: 3000,
		Date:   "2026-11-02",
	})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(expenseReport.ID)
}
```

```java tab="Java"
import com.fiscalisto.FiscalistoClient;
import com.fiscalisto.model.CreateExpenseMovementParams;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var expenseReport = fiscalisto.expenseReports().createMovement("exr_OufpKqnrvx9p4", new CreateExpenseMovementParams()
        .setKind("anticipo")
        .setAmount(3000)
        .setDate("2026-11-02"));
System.out.println(expenseReport.getId());
```

```csharp tab="C#"
using Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var expenseReport = await fiscalisto.ExpenseReports.CreateMovementAsync("exr_OufpKqnrvx9p4", new CreateExpenseMovementParams
{
    Kind = "anticipo",
    Amount = 3000,
    Date = "2026-11-02",
});
```

`method` is `transferencia` (transfer, default), `efectivo` (cash), `tarjeta` (card) or `nomina` (payroll): with `nomina`, the money goes on the employee's next payroll receipt.

## Add the expenses

With the UUID of an invoice the issuer received ([SAT downloads](https://fiscalisto.com/en/docs/api/descargas-del-sat)), the date, amount, supplier and payment form come from it:

```bash tab="cURL"
curl https://api.fiscalisto.com/v1/expense_reports/exr_OufpKqnrvx9p4/items \
  -H "Authorization: Bearer $FISCALISTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "uuid": "6F1C2D3E-4A5B-4C6D-8E9F-0A1B2C3D4E5F", "category": "hospedaje" }'
```

```ts tab="TypeScript"
import { Fiscalisto } from "fiscalisto";

// The key comes from FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

const expenseReport = await fiscalisto.expenseReports.createItem("exr_OufpKqnrvx9p4", {
  uuid: "6F1C2D3E-4A5B-4C6D-8E9F-0A1B2C3D4E5F",
  category: "hospedaje",
});
```

```python tab="Python"
from fiscalisto import Fiscalisto

# The key comes from FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

expense_report = fiscalisto.expense_reports.create_item("exr_OufpKqnrvx9p4", {
    "uuid": "6F1C2D3E-4A5B-4C6D-8E9F-0A1B2C3D4E5F",
    "category": "hospedaje",
})
```

```php tab="PHP"
<?php

use Fiscalisto\Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

$expenseReport = $fiscalisto->expenseReports->createItem('exr_OufpKqnrvx9p4', [
    'uuid' => '6F1C2D3E-4A5B-4C6D-8E9F-0A1B2C3D4E5F',
    'category' => 'hospedaje',
]);
```

```go tab="Go"
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// The key comes from FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	expenseReport, err := client.ExpenseReports.CreateItem(ctx, "exr_OufpKqnrvx9p4", &fiscalisto.CreateExpenseItemParams{
		UUID:     fiscalisto.String("6F1C2D3E-4A5B-4C6D-8E9F-0A1B2C3D4E5F"),
		Category: "hospedaje",
	})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(expenseReport.ID)
}
```

```java tab="Java"
import com.fiscalisto.FiscalistoClient;
import com.fiscalisto.model.CreateExpenseItemParams;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var expenseReport = fiscalisto.expenseReports().createItem("exr_OufpKqnrvx9p4", new CreateExpenseItemParams()
        .setUuid("6F1C2D3E-4A5B-4C6D-8E9F-0A1B2C3D4E5F")
        .setCategory("hospedaje"));
System.out.println(expenseReport.getId());
```

```csharp tab="C#"
using Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var expenseReport = await fiscalisto.ExpenseReports.CreateItemAsync("exr_OufpKqnrvx9p4", new CreateExpenseItemParams
{
    Uuid = "6F1C2D3E-4A5B-4C6D-8E9F-0A1B2C3D4E5F",
    Category = "hospedaje",
});
```

Without an invoice (a receipt, a voucher from abroad), send `category`, `date`, `amount` and `receipt` (`ticket`, `extranjero` or `ninguno`). In `payment` say how it was paid: what was paid with `tarjeta_empresa` (company card) isn't reimbursed to the person. Each response is the checked report: `items[].deductible`, `items[].issues` and the `balance`.

A positive `balance` is what the person must return; negative, what the company must reimburse them.

## Submit, approve and settle

- `POST /v1/expense_reports/{id}/submit` submits it for approval (`submitted`). It returns `expense_report_invalid` if an expense has an error (`issues` with `level` `error`).
- `POST /v1/expense_reports/{id}/items/{item}` with `"rejected": true` and `reject_reason` rejects an expense while reviewing: it's neither paid nor deducted. `false` includes it again.
- `POST /v1/expense_reports/{id}/return` with `note` returns it to the person to correct (`rejected`).
- `POST /v1/expense_reports/{id}/approve` approves it (`approved`). The API can approve what a team member submitted; in the app nobody approves what they submitted themselves. If the issuer has **Pasos de aprobación** (approval steps, in the app under Viáticos › Política), the API approves it in full, every step at once.

With a zero balance it closes on its own (`closed`). Otherwise, record the reimbursement or the return:

```bash tab="cURL"
curl https://api.fiscalisto.com/v1/expense_reports/exr_OufpKqnrvx9p4/movements \
  -H "Authorization: Bearer $FISCALISTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "kind": "reembolso", "amount": 1350, "date": "2026-11-07" }'
```

```ts tab="TypeScript"
import { Fiscalisto } from "fiscalisto";

// The key comes from FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

const expenseReport = await fiscalisto.expenseReports.createMovement("exr_OufpKqnrvx9p4", {
  kind: "reembolso",
  amount: 1350,
  date: "2026-11-07",
});
```

```python tab="Python"
from fiscalisto import Fiscalisto

# The key comes from FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

expense_report = fiscalisto.expense_reports.create_movement("exr_OufpKqnrvx9p4", {
    "kind": "reembolso",
    "amount": 1350,
    "date": "2026-11-07",
})
```

```php tab="PHP"
<?php

use Fiscalisto\Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

$expenseReport = $fiscalisto->expenseReports->createMovement('exr_OufpKqnrvx9p4', [
    'kind' => 'reembolso',
    'amount' => 1350,
    'date' => '2026-11-07',
]);
```

```go tab="Go"
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// The key comes from FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	expenseReport, err := client.ExpenseReports.CreateMovement(ctx, "exr_OufpKqnrvx9p4", &fiscalisto.CreateExpenseMovementParams{
		Kind:   "reembolso",
		Amount: 1350,
		Date:   "2026-11-07",
	})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(expenseReport.ID)
}
```

```java tab="Java"
import com.fiscalisto.FiscalistoClient;
import com.fiscalisto.model.CreateExpenseMovementParams;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var expenseReport = fiscalisto.expenseReports().createMovement("exr_OufpKqnrvx9p4", new CreateExpenseMovementParams()
        .setKind("reembolso")
        .setAmount(1350)
        .setDate("2026-11-07"));
System.out.println(expenseReport.getId());
```

```csharp tab="C#"
using Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var expenseReport = await fiscalisto.ExpenseReports.CreateMovementAsync("exr_OufpKqnrvx9p4", new CreateExpenseMovementParams
{
    Kind = "reembolso",
    Amount = 1350,
    Date = "2026-11-07",
});
```

`DELETE /v1/expense_reports/{id}/movements/{movement}` undoes a movement, and `POST /v1/expense_reports/{id}/reopen` takes an approved one back to open: its invoices are no longer deducted and it leaves the journal entries. One already reported on a payroll receipt can't be reopened.

## The policy

`GET /v1/expense_policy` carries the caps per category (`limits`, per day and per person or per expense, in Mexico and abroad), up to how much is accepted without an invoice (`ticket_limit`) within how many days it must be accounted for (`due_days`) and how tickets and receipts are uploaded (`receipt_formats`: `image`, `pdf` or both; an invoice's XML is always accepted, and a file of another kind answers `invalid_request_error`). `POST /v1/expense_policy` changes only what you send:

```bash tab="cURL"
curl https://api.fiscalisto.com/v1/expense_policy \
  -H "Authorization: Bearer $FISCALISTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "limits": { "alimentos": { "domestic": 750, "abroad": 1500, "per": "dia" } },
    "ticket_limit": 500
  }'
```

```ts tab="TypeScript"
import { Fiscalisto } from "fiscalisto";

// The key comes from FISCALISTO_API_KEY.
const fiscalisto = new Fiscalisto();

const expensePolicy = await fiscalisto.expensePolicy.update({
  limits: {
    alimentos: { domestic: 750, abroad: 1500, per: "dia" },
  },
  ticket_limit: 500,
});
```

```python tab="Python"
from fiscalisto import Fiscalisto

# The key comes from FISCALISTO_API_KEY.
fiscalisto = Fiscalisto()

expense_policy = fiscalisto.expense_policy.update({
    "limits": {
        "alimentos": {
            "domestic": 750,
            "abroad": 1500,
            "per": "dia",
        },
    },
    "ticket_limit": 500,
})
```

```php tab="PHP"
<?php

use Fiscalisto\Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
$fiscalisto = new Fiscalisto();

$expensePolicy = $fiscalisto->expensePolicy->update([
    'limits' => [
        'alimentos' => [
            'domestic' => 750,
            'abroad' => 1500,
            'per' => 'dia',
        ],
    ],
    'ticket_limit' => 500,
]);
```

```go tab="Go"
package main

import (
	"context"
	"fmt"
	"log"

	fiscalisto "fiscalisto.com/go"
)

func main() {
	// The key comes from FISCALISTO_API_KEY.
	client, err := fiscalisto.NewClient("")
	if err != nil {
		log.Fatal(err)
	}
	ctx := context.Background()

	expensePolicy, err := client.ExpensePolicy.Update(ctx, &fiscalisto.UpdateExpensePolicyParams{
		Limits: map[string]any{
			"alimentos": map[string]any{
				"domestic": 750,
				"abroad":   1500,
				"per":      "dia",
			},
		},
		TicketLimit: fiscalisto.Float64(500),
	})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", *expensePolicy)
}
```

```java tab="Java"
import com.fiscalisto.FiscalistoClient;
import com.fiscalisto.model.UpdateExpensePolicyParams;
import java.util.Map;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var expensePolicy = fiscalisto.expensePolicy().update(new UpdateExpensePolicyParams()
        .setLimits(Map.of(
                "alimentos", Map.of(
                        "domestic", 750,
                        "abroad", 1500,
                        "per", "dia"
                )
        ))
        .setTicketLimit(500));
System.out.println(expensePolicy);
```

```csharp tab="C#"
using System.Text.Json;
using Fiscalisto;

// The key comes from FISCALISTO_API_KEY.
var fiscalisto = new FiscalistoClient();

var expensePolicy = await fiscalisto.ExpensePolicy.UpdateAsync(new UpdateExpensePolicyParams
{
    Limits = JsonDocument.Parse("{\"alimentos\":{\"domestic\":750,\"abroad\":1500,\"per\":\"dia\"}}").RootElement,
    TicketLimit = 500,
});
```

An expense over a policy cap isn't refused: it's flagged (`over_policy`) for whoever approves. The law's caps always apply, to the deduction.
