Skip to content

FISCALISTO / API / REFERENCE

Undo a movement · Travel and expenses

Open in ChatGPTOpen in ClaudeOpen in Cursor
DELETE
/v1/expense_reports/{id}/movements/{movement}

Removes it (a closed one goes back to be settled). Not one already paid on payroll.

Before you call

  • Expense reports in the plan of your empresa, if your API account belongs to an empresa: it comes with Operaciones, which is added to any paid plan in Ajustes › Plan y pagos and comes in Corporativo. In test mode you can already use it.

Authorization

bearerAuth
headerAuthorizationBearer <key>

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

Path parameters

id*string

The object's id.

movement*string

The movement (exm_…).

Response body

OK.

application/json
  1. response

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.

id*string

Object identifier, with its prefix (iss_, inv_, ret_, cus_, prd_, emp_, bat_, brn_, whs_, stm_, adj_, evt_, whe_).

livemode*boolean

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

object*string

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

issuer*string

The issuer.

number*integer

Its number, sequential per issuer.

Range-9007199254740991 <= value <= 9007199254740991
label*string

How it is shown, for example «VIA-0012».

person*string

Who is reporting it (exp_…).

person_name*string

That person's name.

kind*string

viaje or gastos (office expenses, for a period).

One of"viaje""gastos"
title*string

Its name.

purpose*|

What it was for, or null.

destination*|

Where to, or null.

abroad*boolean

true if it was abroad.

far*boolean

true if it was more than 50 km from where the person works.

start_date*|

The departure or start of the period (YYYY-MM-DD), or null.

end_date*|

The return or end of the period (YYYY-MM-DD), or null.

status*string

draft (open), submitted (awaiting approval), rejected (sent back for correction), approved (awaiting settlement) or closed (closed, with a zero balance).

One of"draft""submitted""rejected""approved""closed"
due_date*|

The deadline to report it (the policy), or null.

submitted_at*|

When it was submitted for approval, or null.

decided_at*|

When it was approved or sent back, or null.

decision_note*|

The note from whoever approved it or sent it back, or null.

closed_at*|

When it was closed, or null.

in_payroll*boolean

true if it was already reported on a payroll receipt (travel expenses 050 and 081).

spent*number

What was spent, without the rejected expenses.

rejected*number

The amount of the rejected expenses.

proven*number

What was backed by an invoice or foreign receipt.

deductible*number

What is deductible, with the legal caps.

non_deductible*number

What isn't deductible (exceeds the caps or has no receipt).

advances*number

What was given to them as advances.

reimbursed*number

What was reimbursed to them.

returned*number

What they returned.

balance*number

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

true if it can be submitted or approved: no expense has errors.

issues*array<>

Warnings for the whole expense report.

payroll*|

For an employee, how it will go on their payroll receipt (or null).

items*array<>

Its expenses.

movements*array<>

The money given to them or returned.

created_at*|

When it was opened.

updated_at*|

When it last changed.

Errors

  • Viáticos y gastos doesn't allow it right now: the message says why (a gasto with errors when sending it, a reembolso before approval, approving what you sent yourself).

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

  • The issuer can't do that yet: the message says what it's missing (its CSD, or one in force when stamping; its RFC and tax details for viáticos). Upload it and repeat the request with the same Idempotency-Key.

  • 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 DELETE 'https://api.fiscalisto.com/v1/expense_reports/exr_OufpKqnrvx9p4/movements/string' \  -H 'Authorization: Bearer fk_test_…'
{  "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"}

Was this page helpful?