FISCALISTO / API
Cost centers
Split an issuer's income and expenses by job site, project, branch or department: put each invoice in a cost center and filter by it.
A cost center is a part of the business the issuer wants to see separately: a job site, a project, a branch, a department or a vehicle. Each invoice, the one you stamp with the API or the one that comes from SAT, can go in one, and in the app Reportes shows how much came in, how much went out and what each one left. It's a Fiscalisto label: it doesn't change the CFDI, its taxes or what SAT sees. They're the same as Ajustes › Centros de costo in the app, including the per-customer or per-supplier rules created there.
Create a cost center
curl https://api.fiscalisto.com/v1/cost_centers \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Obra Norte", "code": "CC-01" }'Returns the cost center (ccn_…) with invoices, how many invoices it has. The name doesn't repeat within the issuer, regardless of case (another equal one returns cost_center_exists); code is optional, for the code your accounting uses. Up to 500 per issuer.
Set it when invoicing
Send cost_center on the invoice:
curl https://api.fiscalisto.com/v1/invoices \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Idempotency-Key: avance-obra-norte-3" \
-H "Content-Type: application/json" \
-d '{
"cost_center": "ccn_OufpKqnrvx9p1",
"customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826" },
"payment_form": "03",
"items": [{ "description": "Avance de obra 3", "product_key": "72141000", "unit_price": 250000 }]
}'The invoice carries cost_center from the moment it's created. Its credit notes (POST /v1/credit_notes) take the same cost center on their own, so they subtract where the sale counted. An archived cost center can't be used: restore it or use another.
Set, change or remove it later
A stamped invoice changes cost center with POST /v1/invoices/{id}; a SAT invoice (for example, an expense the issuer received) with POST /v1/sat_invoices/{id}. null removes it:
curl https://api.fiscalisto.com/v1/sat_invoices/sat_OufpKqnrvx9p7Bq \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "cost_center": "ccn_OufpKqnrvx9p1" }'Payment complements and transfers don't carry a cost center (they return parameter_invalid). Only the label changes: the CFDI stays the same.
Filter by cost center
GET /v1/invoices and GET /v1/sat_invoices accept cost_center: a ccn_…, or none for the ones that don't have one yet.
curl -G https://api.fiscalisto.com/v1/sat_invoices \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-d cost_center=ccn_OufpKqnrvx9p1 \
-d date_gte=2026-10-01Archive, merge or delete
POST /v1/cost_centers/{id} changes name and code; "archived": true archives it (no more invoices go in it, but its own keep it) and false restores it. GET /v1/cost_centers lists the active ones; with include_archived=true, the archived ones too.
DELETE /v1/cost_centers/{id} deletes it. With move_to (another ccn_…) its invoices and rules move to that one, which merges two into one; without it, its invoices are left without a cost center. Deleting can't be undone.
In the app and with agents
What you do through the API shows in the app: Facturas filters by cost center and Reportes has Resultado por centro de costo and Gastos por centro de costo. With the MCP, centros_de_costo lists them, poner_centro_costo puts invoices in one, buscar_facturas filters with centro_costo and correr_reporte groups with por: centro.
Was this page helpful?