# Travel and expenses

The expense reports of whoever travels or spends for the issuer: their invoices checked against the law (LISR 28 fr. V) and the policy, the approval, and the advances, reimbursements and returns.

## Endpoints

- [Add a person](https://fiscalisto.com/en/docs/api/referencia/viaticos-y-gastos/create-expense-person.md): `POST /v1/expense_people`
- [List people](https://fiscalisto.com/en/docs/api/referencia/viaticos-y-gastos/list-expense-people.md): `GET /v1/expense_people`
- [Get a person](https://fiscalisto.com/en/docs/api/referencia/viaticos-y-gastos/get-expense-person.md): `GET /v1/expense_people/{id}`
- [Update a person](https://fiscalisto.com/en/docs/api/referencia/viaticos-y-gastos/update-expense-person.md): `POST /v1/expense_people/{id}`
- [Give a person their link](https://fiscalisto.com/en/docs/api/referencia/viaticos-y-gastos/create-expense-person-link.md): `POST /v1/expense_people/{id}/link`
- [Turn off a person's link](https://fiscalisto.com/en/docs/api/referencia/viaticos-y-gastos/delete-expense-person-link.md): `DELETE /v1/expense_people/{id}/link`
- [Open an expense report](https://fiscalisto.com/en/docs/api/referencia/viaticos-y-gastos/create-expense-report.md): `POST /v1/expense_reports`
- [List expense reports](https://fiscalisto.com/en/docs/api/referencia/viaticos-y-gastos/list-expense-reports.md): `GET /v1/expense_reports`
- [Get an expense report](https://fiscalisto.com/en/docs/api/referencia/viaticos-y-gastos/get-expense-report.md): `GET /v1/expense_reports/{id}`
- [Update an expense report](https://fiscalisto.com/en/docs/api/referencia/viaticos-y-gastos/update-expense-report.md): `POST /v1/expense_reports/{id}`
- [Delete an expense report](https://fiscalisto.com/en/docs/api/referencia/viaticos-y-gastos/delete-expense-report.md): `DELETE /v1/expense_reports/{id}`
- [Submit for approval](https://fiscalisto.com/en/docs/api/referencia/viaticos-y-gastos/submit-expense-report.md): `POST /v1/expense_reports/{id}/submit`
- [Approve an expense report](https://fiscalisto.com/en/docs/api/referencia/viaticos-y-gastos/approve-expense-report.md): `POST /v1/expense_reports/{id}/approve`
- [Send back for corrections](https://fiscalisto.com/en/docs/api/referencia/viaticos-y-gastos/return-expense-report.md): `POST /v1/expense_reports/{id}/return`
- [Reopen an expense report](https://fiscalisto.com/en/docs/api/referencia/viaticos-y-gastos/reopen-expense-report.md): `POST /v1/expense_reports/{id}/reopen`
- [Add an expense](https://fiscalisto.com/en/docs/api/referencia/viaticos-y-gastos/create-expense-item.md): `POST /v1/expense_reports/{id}/items`
- [Update an expense](https://fiscalisto.com/en/docs/api/referencia/viaticos-y-gastos/update-expense-item.md): `POST /v1/expense_reports/{id}/items/{item}`
- [Remove an expense](https://fiscalisto.com/en/docs/api/referencia/viaticos-y-gastos/delete-expense-item.md): `DELETE /v1/expense_reports/{id}/items/{item}`
- [Record money given or returned](https://fiscalisto.com/en/docs/api/referencia/viaticos-y-gastos/create-expense-movement.md): `POST /v1/expense_reports/{id}/movements`
- [Undo a movement](https://fiscalisto.com/en/docs/api/referencia/viaticos-y-gastos/delete-expense-movement.md): `DELETE /v1/expense_reports/{id}/movements/{movement}`
- [Get the policy](https://fiscalisto.com/en/docs/api/referencia/viaticos-y-gastos/get-expense-policy.md): `GET /v1/expense_policy`
- [Change the policy](https://fiscalisto.com/en/docs/api/referencia/viaticos-y-gastos/update-expense-policy.md): `POST /v1/expense_policy`

## The ExpensePerson object

Someone who travels or spends for the issuer: an employee (from Nómina) or someone paid by fees. They have their own link to upload their invoices without an account.

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `id` | string | yes | Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_). |
| `livemode` | boolean | yes | true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT. |
| `object` | `"expense_person"` | yes | What kind of object it is («invoice», «customer»…). |
| `issuer` | string | yes | The issuer they spend for. |
| `kind` | `empleado`, `honorarios` | yes | empleado (wages and salaries: exempt travel expenses on their payroll receipt) or honorarios (fees). |
| `employee` | string or null | yes | Their Nómina employee (emp_…), or null if paid by fees. |
| `name` | string | yes | Its name. |
| `tax_id` | string or null | yes | Their RFC, or null. |
| `email` | string or null | yes | Their email, where their link and notices are sent, or null. |
| `base_city` | string or null | yes | Where they work: a trip more than 50 km from there counts as travel. |
| `department` | string or null | yes | Their area, or null. |
| `link_active` | boolean | yes | true if they have a working link to upload their invoices. |
| `archived` | boolean | yes | true if archived. |
| `created_at` | string (date-time) or null | yes | When they were added. |

Example:

```json
{
  "id": "exp_OufpKqnrvx9p3",
  "object": "expense_person",
  "livemode": false,
  "issuer": "iss_OufpKqnrvx9p",
  "kind": "empleado",
  "employee": "emp_OufpKqnrvx9p1",
  "name": "Ana López Ruiz",
  "tax_id": "LORA850101AB1",
  "email": "ana@example.com",
  "base_city": "Monterrey",
  "department": "Ventas",
  "link_active": true,
  "archived": false,
  "created_at": "2026-11-02T09:12:00-06:00"
}
```

## The ExpenseReport object

A travel expense report (one trip) or an expense report for a period: its expenses checked against the law and the policy, and the money given or returned. When it is approved its invoices become deductible and it enters the journal entries through 107.01.

`status` lifecycle:

- `draft`, `rejected` → `submitted`: POST /v1/expense_reports/{id}/submit.
- `submitted` → `approved`: POST /v1/expense_reports/{id}/approve (or the last approval step).
- `submitted` → `rejected`: POST /v1/expense_reports/{id}/return.
- `approved` → `closed`: The balance reaches zero.
- `closed` → `approved`: A movement is undone and there's a balance again.
- `submitted`, `approved`, `closed` → `draft`: POST /v1/expense_reports/{id}/reopen.

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `id` | string | yes | Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_). |
| `livemode` | boolean | yes | true in production (fk_live_ keys), false in test mode (fk_test_). Test objects aren't valid before the SAT. |
| `object` | `"expense_report"` | yes | What kind of object it is («invoice», «customer»…). |
| `issuer` | string | yes | The issuer. |
| `number` | integer | yes | Its number, sequential per issuer. (from -9007199254740991 to 9007199254740991) |
| `label` | string | yes | How it is shown, for example «VIA-0012». |
| `person` | string | yes | Who is reporting it (exp_…). |
| `person_name` | string | yes | That person's name. |
| `kind` | `viaje`, `gastos` | yes | viaje or gastos (office expenses, for a period). |
| `title` | string | yes | Its name. |
| `purpose` | string or null | yes | What it was for, or null. |
| `destination` | string or null | yes | Where to, or null. |
| `abroad` | boolean | yes | true if it was abroad. |
| `far` | boolean | yes | true if it was more than 50 km from where the person works. |
| `start_date` | string or null | yes | The departure or start of the period (YYYY-MM-DD), or null. |
| `end_date` | string or null | yes | The return or end of the period (YYYY-MM-DD), or null. |
| `status` | `draft`, `submitted`, `rejected`, `approved`, `closed` | yes | draft (open), submitted (awaiting approval), rejected (sent back for correction), approved (awaiting settlement) or closed (closed, with a zero balance). |
| `due_date` | string or null | yes | The deadline to report it (the policy), or null. |
| `submitted_at` | string (date-time) or null | yes | When it was submitted for approval, or null. |
| `decided_at` | string (date-time) or null | yes | When it was approved or sent back, or null. |
| `decision_note` | string or null | yes | The note from whoever approved it or sent it back, or null. |
| `closed_at` | string (date-time) or null | yes | When it was closed, or null. |
| `in_payroll` | boolean | yes | true if it was already reported on a payroll receipt (travel expenses 050 and 081). |
| `spent` | number | yes | What was spent, without the rejected expenses. |
| `rejected` | number | yes | The amount of the rejected expenses. |
| `proven` | number | yes | What was backed by an invoice or foreign receipt. |
| `deductible` | number | yes | What is deductible, with the legal caps. |
| `non_deductible` | number | yes | What isn't deductible (exceeds the caps or has no receipt). |
| `advances` | number | yes | What was given to them as advances. |
| `reimbursed` | number | yes | What was reimbursed to them. |
| `returned` | number | yes | What they returned. |
| `balance` | number | yes | Positive, what the person must return; negative, what the company must reimburse them; 0, settled. What was paid with the company card doesn't count. |
| `ready` | boolean | yes | true if it can be submitted or approved: no expense has errors. |
| `issues` | array of object | yes | Warnings for the whole expense report. |
| `issues[].level` | `error`, `warning`, `policy`, `info` | yes | error (prevents submitting it), warning, policy (exceeds the policy) or info. |
| `issues[].code` | string | yes | What it is, as a stable code. |
| `issues[].message` | string | yes | What it is, in words. |
| `payroll` | object or null | yes | For an employee, how it will go on their payroll receipt (or null). |
| `payroll.exempt` | number | yes | Exempt travel expenses backed by receipts (OtroPago/Percepción 050, ImporteExento). |
| `payroll.taxed` | number | yes | What is taxed as wages (050, ImporteGravado): what was spent without receipts. |
| `payroll.adjustment` | number | yes | What is deducted (deduction 081) for what was already given to them and left over. |
| `payroll.net` | number | yes | What they net collect or pay on the receipt for this expense report. |
| `items` | array of object | yes | Its expenses. |
| `items[].id` | string | yes | Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_). |
| `items[].object` | `"expense_item"` | yes | What kind of object it is («invoice», «customer»…). |
| `items[].date` | string | yes | When it was spent (YYYY-MM-DD). |
| `items[].category` | `hospedaje`, `alimentos`, `avion`, `transporte`, `auto`, `combustible`, `comidas`, `papeleria`, `mensajeria`, `software`, `otros` | yes | What it is for: hospedaje, alimentos, avion, transporte, auto, combustible, comidas, papeleria, mensajeria, software or otros. |
| `items[].description` | string or null | yes | What it was (the supplier), or null. |
| `items[].amount` | number | yes | In pesos. |
| `items[].foreign_amount` | number or null | yes | In its currency, or null. |
| `items[].foreign_currency` | string or null | yes | Its currency (USD, EUR…), or null. |
| `items[].people` | integer | yes | How many people ate (for meals the cap is per person). (from -9007199254740991 to 9007199254740991) |
| `items[].payment` | `tarjeta_empresa`, `tarjeta_propia`, `efectivo`, `transferencia`, `otro` or null | yes | How it was paid: tarjeta_empresa, tarjeta_propia, efectivo, transferencia or otro, or null. |
| `items[].receipt` | `cfdi`, `extranjero`, `ticket`, `ninguno` | yes | Its proof: cfdi, extranjero, ticket or ninguno. |
| `items[].uuid` | string or null | yes | The UUID of its invoice, or null. |
| `items[].note` | string or null | yes | The person's note, or null. |
| `items[].rejected` | boolean | yes | true if the approver rejected it. |
| `items[].reject_reason` | string or null | yes | Why it was rejected, or null. |
| `items[].deductible` | number | yes | What is deductible from this expense. |
| `items[].non_deductible` | number | yes | What isn't deductible. |
| `items[].over_policy` | boolean | yes | true if it exceeds a policy cap. |
| `items[].issues` | array of object | yes | Its warnings against the law and the policy. |
| `items[].issues[].level` | `error`, `warning`, `policy`, `info` | yes | error (prevents submitting it), warning, policy (exceeds the policy) or info. |
| `items[].issues[].code` | string | yes | What it is, as a stable code. |
| `items[].issues[].message` | string | yes | What it is, in words. |
| `items[].created_at` | string (date-time) or null | yes | When they were added. |
| `movements` | array of object | yes | The money given to them or returned. |
| `movements[].id` | string | yes | Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_). |
| `movements[].object` | `"expense_movement"` | yes | What kind of object it is («invoice», «customer»…). |
| `movements[].kind` | `anticipo`, `reembolso`, `devolucion` | yes | anticipo, reembolso or devolucion. |
| `movements[].amount` | number | yes | In pesos. |
| `movements[].date` | string | yes | When it was paid (YYYY-MM-DD). |
| `movements[].method` | `transferencia`, `efectivo`, `tarjeta`, `nomina` | yes | transferencia, efectivo, tarjeta or nomina (on their payroll receipt). |
| `movements[].reference` | string or null | yes | Its reference, or null. |
| `movements[].in_payroll` | boolean | yes | true if it was already paid on a payroll receipt. |
| `movements[].created_at` | string (date-time) or null | yes | When it was recorded. |
| `created_at` | string (date-time) or null | yes | When it was opened. |
| `updated_at` | string (date-time) or null | yes | When it last changed. |

Example:

```json
{
  "id": "exr_OufpKqnrvx9p4",
  "object": "expense_report",
  "livemode": false,
  "issuer": "iss_OufpKqnrvx9p",
  "number": 12,
  "label": "VIA-0012",
  "person": "exp_OufpKqnrvx9p3",
  "person_name": "Ana López Ruiz",
  "kind": "viaje",
  "title": "Viaje a Guadalajara",
  "purpose": "Visita a clientes",
  "destination": "Guadalajara",
  "abroad": false,
  "far": true,
  "start_date": "2026-11-03",
  "end_date": "2026-11-05",
  "status": "approved",
  "due_date": "2026-11-15",
  "submitted_at": "2026-11-06T10:00:00-06:00",
  "decided_at": "2026-11-06T12:30:00-06:00",
  "decision_note": null,
  "closed_at": null,
  "in_payroll": false,
  "spent": 4350,
  "rejected": 0,
  "proven": 4350,
  "deductible": 4350,
  "non_deductible": 0,
  "advances": 3000,
  "reimbursed": 0,
  "returned": 0,
  "balance": -1350,
  "ready": true,
  "issues": [],
  "payroll": null,
  "items": [
    {
      "id": "exi_OufpKqnrvx9p5",
      "object": "expense_item",
      "date": "2026-11-03",
      "category": "hospedaje",
      "description": "HOTEL CENTRO HISTORICO SA DE CV",
      "amount": 3480,
      "foreign_amount": null,
      "foreign_currency": null,
      "people": 1,
      "payment": "tarjeta_propia",
      "receipt": "cfdi",
      "uuid": "6F1C2D3E-4A5B-4C6D-8E9F-0A1B2C3D4E5F",
      "note": null,
      "rejected": false,
      "reject_reason": null,
      "deductible": 3480,
      "non_deductible": 0,
      "over_policy": false,
      "issues": [],
      "created_at": "2026-11-05T21:10:00-06:00"
    }
  ],
  "movements": [
    {
      "id": "exm_OufpKqnrvx9p6",
      "object": "expense_movement",
      "kind": "anticipo",
      "amount": 3000,
      "date": "2026-11-02",
      "method": "transferencia",
      "reference": "SPEI 0098123",
      "in_payroll": false,
      "created_at": "2026-11-02T09:30:00-06:00"
    }
  ],
  "created_at": "2026-11-02T09:15:00-06:00",
  "updated_at": "2026-11-06T12:30:00-06:00"
}
```

## The ExpensePolicy object

The issuer's travel and expense policy: caps per category, how much without an invoice and within how many days it must be reported.

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `object` | `"expense_policy"` | 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. |
| `limits` | object | yes | Caps per category (hospedaje, alimentos…): those not listed have no cap. |
| `ticket_limit` | number | yes | Up to how much an expense without an invoice is accepted; 0: all of them require one. |
| `due_days` | integer | yes | Days after the return to submit. (from -9007199254740991 to 9007199254740991) |
| `note_over_limit` | boolean | yes | true if it asks for a note on each expense over a cap. |
| `notify_approvers` | boolean | yes | true if it notifies the approver by email. |
| `notify_people` | boolean | yes | true if it notifies the person when it is approved, sent back or paid. |
| `receipt_formats` | array of `image`, `pdf` | yes | How tickets and receipts are uploaded: image (photo), pdf or both. An invoice's XML is always accepted. |

Example:

```json
{
  "object": "expense_policy",
  "livemode": false,
  "issuer": "iss_OufpKqnrvx9p",
  "limits": {
    "hospedaje": {
      "domestic": 2500,
      "abroad": 4500,
      "per": "dia"
    },
    "alimentos": {
      "domestic": 750,
      "abroad": 1500,
      "per": "dia"
    }
  },
  "ticket_limit": 500,
  "due_days": 10,
  "note_over_limit": true,
  "notify_approvers": true,
  "notify_people": true,
  "receipt_formats": [
    "image",
    "pdf"
  ]
}
```

## The ExpensePersonLink object

A person's link: there they see only their expense reports and upload their invoices from their phone, without an account.

| Field | Type | Always present | Description |
| --- | --- | --- | --- |
| `object` | `"expense_person_link"` | yes | What kind of object it is («invoice», «customer»…). |
| `person` | string | yes | The person (exp_…). |
| `url` | string or null | yes | Their link, or null if it is off. |

Example:

```json
{
  "object": "expense_person_link",
  "person": "exp_OufpKqnrvx9p3",
  "url": "https://fiscalisto.com/comprobar/k3Jd9sQw2LmZ7xYp"
}
```
