Skip to content
Invoicing

FISCALISTO / API

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.

Open in ChatGPTOpen in ClaudeOpen in Cursor

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). For a Payroll 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).

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"
  }'

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:

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

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):

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"
  }'

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

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" }'

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), the date, amount, supplier and payment form come from it:

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" }'

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:

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" }'

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:

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
  }'

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.

Was this page helpful?