Invoicing sandbox
Test your invoices in a separate environment
From the app or through the API, check documents, totals and states before working with real data. Tests have their own company and numbering.
- From Factuarea
- Separate data and numbering
- From your integration
- Net amount
- €300.00
- VAT 21%
- €63.00
- Total
- €363.00
Test document, not a tax invoice
Two companies, separate sequences
A draft uses no number. Issuing only advances the test series.
How you get in
The key decides which company you open
A fact_test_ key opens your test company, with its own clients, documents and numbering. A fact_live_ key opens your real company. The API URL is the same.
fact_test_…24 charactersSame URL in both environmentshttps://api.factuarea.com/v1With the MCP server, the OAuth consent lets you choose Test or Live when you connect.
What really happens
The same request, two outcomes
You send an invoice with the same call. With fact_test_ everything happens inside the test company and your clients receive nothing; with fact_live_ it reaches the real world.
/v1/companies/{company}/invoices/{id}/sendSame code, another keyBearer fact_test_…- Numbered invoiceTest series
F-2026-0007, from your test series. Your real numbering does not move.
- Email to the clientTest inbox
The send goes through its states inside the sandbox. Your client receives nothing.
- VeriFactu recordLocal record
The record is generated the same way and stays in your test company. The AEAT receives nothing.
- Webhook eventEvent log
The event is stored with livemode: false and you read it through the API.
Bearer fact_live_…- Numbered invoiceYour fiscal series
F-2026-0185, from your real series.
- Email to the clientClient's inbox
The email reaches your client.
- VeriFactu recordAEAT
The record is submitted to the AEAT.
- Webhook eventYour endpoint
The event is delivered, signed, to your endpoint.
Validation and results
Check what happens when something fails, too
The sandbox applies the validation rules of available operations. Review invoice totals, correct rejected data and prepare your integration to handle errors.
"lines": [{ "quantity": 2, "unit_price": 150, "tax_rate": 21}]{ "data": { "status": "draft", "number": null, "total": 363, "currency": "EUR" }}You can also test permissions, states and idempotency with the capabilities of your plan.
Understand API errorsAnd more
Everything else you can check
Webhooks, FACe and automations also have their own test behaviour. Each card shows the call and what it returns.
The ping reaches your endpoint
Check your receiver's connection and signature with a real HTTP request. It sends webhook.ping and creates no business event.
POST /v1/companies/{company}/webhook-endpoints/{id}/ping{ "type": "webhook.ping" }Signed delivery to your receiverEvents stay in your log
Every event from a test operation is stored with livemode: false and you can read it whenever you like.
GET /v1/companies/{company}/events{ "type": "invoice.created", "livemode": false }Event storedFACe with its own record
You submit the invoice and get a sandbox registry number, FACE-SANDBOX-…, to run your flow from start to finish.
POST /v1/companies/{company}/invoices/{id}/face-submissions{ "registry_number": "FACE-SANDBOX-…" }Sandbox record createdAutomations you can review
You see the triggers and the runs. Steps with an external effect are marked as sandbox_neutralized.
GET /v1/companies/{company}/automations/runs/{run}/steps{ "discard_reason": "sandbox_neutralized" }Run completedHow you go live
You change the key, not the code
The request has the same shape in both environments: what changes is the key you send.
Prepare your real data
Create or pick the production contacts and series. Their identifiers are different from the sandbox ones.
Generate a fact_live_ key
With the permissions you already validated. The secret is shown only once: store it in your secrets manager.
Swap the key
Change it wherever you read it: environment variable, secrets manager or deployment config. The official SDKs infer the environment from the prefix.
# .envFACTUAREA_API_KEY=fact_live_…Questions
Sandbox questions
Still have a question?
A person on the team answers, on any plan. Write to us the way you would to a colleague.
Monday to Friday, 9:00 to 18:00
No. A fact_test_ key operates on the sandbox company and uses that company's series. The sequence of your production series is neither touched nor consumed.
A more connected business
Test the integration with isolated data
Generate a fact_test_ key in the developer dashboard. Send it to the same API URL with the permissions your application needs.
No card requiredA real person helps you