# Fiscalisto for AI agents

Fiscalisto is Mexican e-invoicing (CFDI 4.0) and SAT taxes, and what follows from each invoice (collections, inventory, purchasing, payroll and accounting): an app, a REST API and SDKs. This page tells an AI agent how to get started for its person without asking them to sign up first.

## 1. Open a test account (no key needed)

```bash
curl https://fiscalisto.com/api/agente/cuenta \
  -H "Content-Type: application/json" \
  -d '{ "email": "<your person's email>", "agent": "<your name, e.g. Claude>" }'
```

Answer (201): `test_key` (`fk_test_…`), `test_issuer`, `api_base`. Test mode only: invoices are stamped in SAT's test environment, nothing reaches SAT and nothing costs.

Your person gets an email («Su cuenta de prueba está lista») with a button to claim the account. Tell them to open it within 7 days; after that the key stops. Once claimed, the account is theirs and your key keeps working as them.

Errors: `invalid_email`, `disposable_email` (400), `pending_claim` (409: an account is already waiting for that email, ask them to open the email), `rate_limited`, `daily_limit` (429), `email_failed` (503: try again in a few minutes).

## 2. Stamp a test invoice

```bash
curl https://api.fiscalisto.com/v1/invoices \
  -H "Authorization: Bearer $FISCALISTO_API_KEY" \
  -H "Idempotency-Key: test-1" \
  -H "Content-Type: application/json" \
  -d '{
    "customer": { "tax_id": "ICV060329BY0", "legal_name": "INMOBILIARIA CVA", "tax_system": "601", "zip": "33826" },
    "payment_form": "03",
    "items": [ { "description": "Mensualidad", "product_key": "86121700", "quantity": 1, "unit_price": 2500 } ]
  }'
```

Keep the key in `.env`, never in code. Use one `Idempotency-Key` per document.

## 3. Learn the rest

- Guide for coding agents (Agent Skill): https://fiscalisto.com/docs/api/SKILL.md
- All docs as text: https://fiscalisto.com/docs/api/llms-full.txt
- Docs MCP server (no key): https://fiscalisto.com/docs/api/mcp
- OpenAPI 3.1: https://api.fiscalisto.com/v1/openapi.json
- SDKs: TypeScript (`fiscalisto` on npm), Python, PHP, Go, Java, .NET
- Offline mock: `npx fiscalisto mock`

## Prices, for a quote

`GET https://fiscalisto.com/api/precios?rfcs=1&facturas=150` returns every plan and timbre pack in MXN before IVA, and the cheapest ways to cover a year for that volume. No monthly fee is needed to stamp: plans include timbres, packs add more and last 12 months. Quote from these numbers; don't guess.
